train-kubernetes 0.1.3 → 0.1.4

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: 6fbe688d0a20359346f4e84d170d86c43268a223e35ad2dee125c9c320261628
4
- data.tar.gz: 912cac425f33e0c5e44fa3d9de77f0488f12c240379e236f2c595a2428d5ecf7
3
+ metadata.gz: 8054d36cd7aa95b6c66500cc6e2ef5a3a046a2953e909dcae9c28af25cceac27
4
+ data.tar.gz: 8c34f5e7e0ef77c1c14363a862188839587c15037138920aae89b68769b7cfe9
5
5
  SHA512:
6
- metadata.gz: 9af1cb2e4c7606b27f6cb4193c6eaf2102a948c44aaade11aebc12a664c0d60ee89e9538322cd5bd2d8567ae73d18350acbf315609d59d5fe50e9bee180be964
7
- data.tar.gz: aa6b501350c53f795eb8513e450ef99daa88633d97f01966337a439c5f116bf64b97739d8a47ba8ff3cc1cbff34c877abde7f6fa684a28e76a493c5fcb8ffd89
6
+ metadata.gz: 6e8ecdf58177aa1629142c518c7a8d7808be54469db423a1e6557c8bd9623fe3611fc50f58e6e171a0a32e68caf3eea404b48d0f4ce0955e41fce0c265605734
7
+ data.tar.gz: 5989ed4276cd050ef76f0bc0e1cfef17c2e3a2ed3df5c37dc49caa53d4afbba88f1b1f9f24a9743209fb78c351844b53060c5ba6cdd8b35467adcc4027f93168
data/README.md CHANGED
@@ -30,7 +30,7 @@ end
30
30
 
31
31
  ## Preconditions
32
32
 
33
- - InSpec 3 or later.
33
+ - InSpec 3.7+ or 4.x+
34
34
  - Ruby 2.4+
35
35
  - You have set the env var KUBECONFIG or have a valid ~/.kube/config
36
36
 
@@ -39,31 +39,50 @@ end
39
39
 
40
40
  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.
41
41
 
42
- Simply run:
42
+ First, run:
43
43
 
44
44
  ```
45
- $ inspec plugin install train-kubernetes
45
+ gem install train-kubernetes
46
46
  ```
47
47
 
48
- Verify the plugin
48
+ Next, run:
49
49
 
50
50
  ```
51
- $ inspec detect -t k8s://
51
+ inspec plugin install train-kubernetes
52
+ ```
53
+
54
+ Next, view the `plugins.json`:
55
+
56
+ ```
57
+ vi ~/.inspec/plugins.json
58
+ ```
59
+
60
+ If it has the version set to `"= 0.1.3"`, modify it to `"0.1.3"` and save the file.
61
+
62
+ Verify the plugin:
63
+
64
+ ```
65
+ inspec plugins list
66
+ ```
67
+
68
+ ```
69
+ inspec detect -t k8s://
52
70
 
53
71
  == Platform Details
54
72
 
55
73
  Name: k8s
56
74
  Families: cloud, api
57
- Release: 0.1.0
75
+ Release: 0.1.3
58
76
  ```
59
77
 
60
78
  ## Troubleshooting
61
79
 
62
80
  If you run into issues installing via `inspec plugin install train-kubernetes`, try:
63
81
 
64
- * Ensure you can cleanly install the `k8s-client` gem version `0.10.0` or greater. e.g. `gem install k8s-client -v 0.10.0`
65
- * Ensure that only one version of the `excon` gem is installed. e.g. `gem list | grep excon`. If you see two versions, `gem uninstall -v 0.62.0` and
66
- remove the older version.
82
+ * Try running `gem install train-kubernetes` before `inspec plugin install train-kubernetes`.
83
+ * Ensure the `~/.inspec/plugins.json` has `"0.1.3"` and not `"= 0.1.3"` for the `version` value. Modify it by hand if needed.
84
+ * Ensure you can cleanly install the `k8s-client` gem version `0.10.4` or greater. e.g. `gem install k8s-client -v 0.10.4`
85
+ * 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.
67
86
 
68
87
  ## Reporting Issues
69
88
 
@@ -5,6 +5,6 @@
5
5
 
6
6
  module TrainPlugins
7
7
  module TrainKubernetes
8
- VERSION = '0.1.3'.freeze
8
+ VERSION = '0.1.4'.freeze
9
9
  end
10
10
  end
@@ -42,6 +42,6 @@ Gem::Specification.new do |spec|
42
42
  # Do not list inspec as a dependency of the train plugin.
43
43
 
44
44
  # All plugins should mention train, > 1.4
45
- spec.add_dependency 'k8s-client', '~> 0.10'
45
+ spec.add_dependency 'k8s-ruby', '~> 0.10'
46
46
  spec.add_dependency 'train', '~> 3.0'
47
47
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: train-kubernetes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Geesaman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-27 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: k8s-client
14
+ name: k8s-ruby
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  requirements: []
76
- rubygems_version: 3.0.6
76
+ rubygems_version: 3.1.2
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Train Kubernetes