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 +4 -4
- data/README.md +28 -9
- data/lib/train-kubernetes/version.rb +1 -1
- data/train-kubernetes.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8054d36cd7aa95b6c66500cc6e2ef5a3a046a2953e909dcae9c28af25cceac27
|
4
|
+
data.tar.gz: 8c34f5e7e0ef77c1c14363a862188839587c15037138920aae89b68769b7cfe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
42
|
+
First, run:
|
43
43
|
|
44
44
|
```
|
45
|
-
|
45
|
+
gem install train-kubernetes
|
46
46
|
```
|
47
47
|
|
48
|
-
|
48
|
+
Next, run:
|
49
49
|
|
50
50
|
```
|
51
|
-
|
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.
|
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
|
-
*
|
65
|
-
* Ensure
|
66
|
-
|
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
|
|
data/train-kubernetes.gemspec
CHANGED
@@ -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-
|
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.
|
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:
|
11
|
+
date: 2020-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: k8s-
|
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.
|
76
|
+
rubygems_version: 3.1.2
|
77
77
|
signing_key:
|
78
78
|
specification_version: 4
|
79
79
|
summary: Train Kubernetes
|