train-kubernetes 0.1.12 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcca2f4cc7de5b099cb5a3ee64e8ec7e935fdb986234d4ca9a3659d73efa874e
4
- data.tar.gz: 15006a25d2cc0a823e21025d0b9f02cdd75bcefcac6965a28b17735147c1a4df
3
+ metadata.gz: f788de94eac3afedbc4427c3eae60e65993db25a5ce55e8797218f580f7a080a
4
+ data.tar.gz: 34a3701bdd160f580ac711b7cbfd61373205327431d90f617de7e566f0c4d6a6
5
5
  SHA512:
6
- metadata.gz: 17df60f7afdf0948ea15ce899b97b3aa33ba2173e87715c2b736783644a48aae037112188c570aab65f2cc3f40978e16c43c716c489623a7f556757b9204bfa6
7
- data.tar.gz: 47f38cc6b1b41873f411da7a6fc3be723d2ead3cf5a0b225367a5bd6bfe518a57eb06f1805e1557d708d8e3c161881a4b4dbc6747aaaf0e760573795c5a43f38
6
+ metadata.gz: 337bd696715b5da5c78788eaa2d896d36275d43106c929376bfb8515ec7aeaf86b2a0581f360462762a7c42187e73178fbe031cf58f77513a87ad184653635b7
7
+ data.tar.gz: d50c0cd6308a3dc2d4fd5cd7b0648797e74d6f908146f725454639d9f670c8252705fe9f045931964c9a2d81274731583c166352f37804b6d7ddb2897e843ad7
data/README.md CHANGED
@@ -4,7 +4,7 @@ This plugin allows applications that rely on Train to communicate with the Kuber
4
4
 
5
5
  ## Usage
6
6
 
7
- When used in combination with the [InSpec Kubernetes Resource Pack](https://github.com/bgeesaman/inspec-k8s) you can validate the spec of any Kubernetes resource you have access to:
7
+ When used in combination with the [InSpec Kubernetes Resource Pack](https://github.com/inspec/inspec-k8s) you can validate the spec of any Kubernetes resource you have access to:
8
8
 
9
9
  ```ruby
10
10
  describe k8sobjects(api: 'v1', type: 'pods', namespace: 'default', labelSelector: 'run=nginx') do
@@ -41,9 +41,10 @@ Currently it supports only Linux based containers
41
41
  - Ruby 2.4+
42
42
  - You have set the env var KUBECONFIG or have a valid ~/.kube/config
43
43
 
44
-
45
44
  ## Installation
46
45
 
46
+ **_NOTE:_** **_The train-kubernetes plugin now comes included with InSpec 5.22.0 and later, and does not require installation separately._**
47
+
47
48
  Train plugins are distributed as gems. You may choose to manage the gem yourself, but if you are an InSpec user, InSPec can handle it for you.
48
49
 
49
50
  First, run:
@@ -82,18 +83,18 @@ Families: cloud, api
82
83
  Release: 0.1.3
83
84
  ```
84
85
 
85
- ## Troubleshooting
86
+ ## Troubleshooting (Only applicable for InSpec version 5.21.* and earlier)
86
87
 
87
88
  If you run into issues installing via `inspec plugin install train-kubernetes`, try:
88
89
 
89
90
  * Try running `gem install train-kubernetes` before `inspec plugin install train-kubernetes`.
90
- * Ensure the `~/.inspec/plugins.json` has `"0.1.3"` and not `"= 0.1.3"` for the `version` value. Modify it by hand if needed.
91
+ * Ensure the `~/.inspec/plugins.json` has `"0.1.3"` and not `"= 0.1.3"` for the `version` value. Modify it by hand if needed.
91
92
  * Ensure you can cleanly install the `k8s-ruby` gem version `0.10.4` or greater. e.g. `gem install k8s-ruby -v 0.10.4`
92
93
  * Ensure that only one version of the `excon` gem is installed. e.g. `gem list | grep excon`. If you see two versions, `gem uninstall excon` and remove the older version.
93
94
 
94
95
  ## Reporting Issues
95
96
 
96
- Bugs, typos, limitations, and frustrations are welcome to be reported through the [GitHub issues page for the train-kubernetes project](https://github.com/bgeesaman/train-kubernetes/issues).
97
+ Bugs, typos, limitations, and frustrations are welcome to be reported through the [GitHub issues page for the train-kubernetes project](https://github.com/inspec/train-kubernetes/issues).
97
98
 
98
99
  You may also ask questions in the #inspec channel of the Chef Community Slack team. However, for an issue to get traction, please report it as a github issue.
99
100
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module TrainPlugins
7
7
  module TrainKubernetes
8
- VERSION = '0.1.12'.freeze
8
+ VERSION = "0.2.1".freeze
9
9
  end
10
10
  end
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.email = ['bradgeesaman@gmail.com']
20
20
  spec.summary = 'Train Kubernetes'
21
21
  spec.description = 'A Train "transport" plugin for Chef Inspec that allows testing of all Kubernetes API resources'
22
- spec.homepage = 'https://github.com/bgeesaman/train-kubernetes'
22
+ spec.homepage = 'https://github.com/inspec/train-kubernetes'
23
23
  spec.license = 'Apache-2.0'
24
24
 
25
25
  spec.required_ruby_version = '>= 2.4'
@@ -44,7 +44,7 @@ Gem::Specification.new do |spec|
44
44
  # Do not list inspec as a dependency of the train plugin.
45
45
 
46
46
  # All plugins should mention train, > 1.4
47
- # pinning k8s-ruby to 0.10.5 to avoid broken dry-type gem upgrades from k8s-ruby
48
- spec.add_dependency 'k8s-ruby', '~> 0.14.0'
47
+ # pinning k8s-ruby to 0.16.0 since it has support for Ruby version 3.2
48
+ spec.add_dependency 'k8s-ruby', '~> 0.16.0'
49
49
  spec.add_dependency 'train', '~> 3.0'
50
50
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-kubernetes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Geesaman
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-14 00:00:00.000000000 Z
11
+ date: 2024-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: k8s-ruby
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.14.0
19
+ version: 0.16.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.14.0
26
+ version: 0.16.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: train
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,11 +58,11 @@ files:
58
58
  - lib/train-kubernetes/transport.rb
59
59
  - lib/train-kubernetes/version.rb
60
60
  - train-kubernetes.gemspec
61
- homepage: https://github.com/bgeesaman/train-kubernetes
61
+ homepage: https://github.com/inspec/train-kubernetes
62
62
  licenses:
63
63
  - Apache-2.0
64
64
  metadata: {}
65
- post_install_message:
65
+ post_install_message:
66
66
  rdoc_options: []
67
67
  require_paths:
68
68
  - lib
@@ -77,8 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  - !ruby/object:Gem::Version
78
78
  version: '0'
79
79
  requirements: []
80
- rubygems_version: 3.3.7
81
- signing_key:
80
+ rubygems_version: 3.1.4
81
+ signing_key:
82
82
  specification_version: 4
83
83
  summary: Train Kubernetes
84
84
  test_files: []