sensu-plugins-kubernetes 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/CHANGELOG.md +12 -2
- data/bin/check-kube-pods-pending.rb +2 -2
- data/bin/check-kube-service-available.rb +2 -2
- data/lib/sensu-plugins-kubernetes/version.rb +1 -1
- metadata +41 -27
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
YzBiMjVlZDBlZjA1OWU1MmRmZTc3NzkzMDU2ZTk3MDZhMmE4Yjg0NQ==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: e7891019bcd4d1ee4a9ee93933dfe027e4059a3b
|
4
|
+
data.tar.gz: 6a530b4917597e3b2aede0e3deeb709a25a9a5bd
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YzUwODBiMzg5ZmZiNmVkMDk5YTljYjIwZjkzMTUzOTA1ZmFiZGJhZDIxYzFj
|
11
|
-
ZGFhMmEzYmNjZjZhNjM2ZTJiZWNiMmVlYjA0MDhlNmUxMDEyYjc=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
OTZiZTZjNjhmNWM2NDBkNmI2ZTdjMDU4YjQwZGQ2ZTBmMThhOGM5MzQyNTll
|
14
|
-
NGFkODAyMTE0NzRiMjdkMzZhM2EzZDk3YjFjNDgwNzg5ZTUzYjY0NGQ2MDE4
|
15
|
-
MmUwMDdhMzA4NmRmYWVhYmE2OGQ4MzZiMDY4ZjdmZTFlOTdjZWY=
|
6
|
+
metadata.gz: 6bfc0e8b53232cbc19061ad115964f8592a1e05be418281ff18e340d74635353a1692f8f2a2c625b17296531d7be4a87271ed98292e9957bef8641e7e0e4484e
|
7
|
+
data.tar.gz: 4a526bc45fcae03e58dd26def4c88dca48331286a87f10836a08aee5f6bfbb6d02959bb241f0945bda4b0e6348b6bfe32808c45aab3fed761af9dac65f0a192b
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,15 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [0.1.2] - 2016-08-07
|
9
|
+
### Fixed
|
10
|
+
- check-kube-service-available.rb: fixed error caused by misspelling of true boolean (@justinhammar)
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- check-kube-pods-pending.rb: Add namespace to output (@ajohnstone)
|
14
|
+
- check-kube-service-available.rb: Add namespace to output (@ajohnstone)
|
15
|
+
- pin `activesupport` to `< 5.0.0` to maintain compatability with Ruby < 2.2 (@eheydrick)
|
16
|
+
|
8
17
|
## [0.1.1] - 2016-05-17
|
9
18
|
### Fixed
|
10
19
|
- cli.rb: Fixed typo in critical call
|
@@ -12,7 +21,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
12
21
|
## [0.1.0] - 2016-05-15
|
13
22
|
### Added
|
14
23
|
- Added flag to ignore namespaces in check-kube-pods-pending
|
15
|
-
- check-kube-service-available.rb: Will not mark a service
|
24
|
+
- check-kube-service-available.rb: Will not mark a service as failed if any needed pod is running and ready
|
16
25
|
- check-kube-service-available.rb: Added options to allow of pod pending for given time to be counted as valid
|
17
26
|
- Factored all checks to share a common base class for connecting to Kubernetes
|
18
27
|
- Added flags to specify certificate authority and Kubernetes bearer token
|
@@ -30,6 +39,7 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
|
|
30
39
|
### Added
|
31
40
|
- initial release
|
32
41
|
|
33
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-kubernetes/compare/0.1.
|
42
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-kubernetes/compare/0.1.2...HEAD
|
43
|
+
[0.1.2]: https://github.com/sensu-plugins/sensu-plugins-kubernetes/compare/0.1.1...0.1.2
|
34
44
|
[0.1.1]: https://github.com/sensu-plugins/sensu-plugins-kubernetes/compare/0.1.0...0.1.1
|
35
45
|
[0.1.0]: https://github.com/sensu-plugins/sensu-plugins-kubernetes/compare/0.0.1...0.1.0
|
@@ -104,14 +104,14 @@ class AllPodsAreReady < Sensu::Plugins::Kubernetes::CLI
|
|
104
104
|
if pod.status.phase == 'Pending'
|
105
105
|
pod_stamp = Time.parse(pod.metadata.creationTimestamp)
|
106
106
|
if (Time.now.utc - pod_stamp.utc).to_i > config[:pending_timeout]
|
107
|
-
failed_pods << pod.metadata.name
|
107
|
+
failed_pods << "#{pod.metadata.namespace}.#{pod.metadata.name}"
|
108
108
|
end
|
109
109
|
end
|
110
110
|
# Check restarts
|
111
111
|
next if pod.status.containerStatuses.nil?
|
112
112
|
pod.status.containerStatuses.each do |container|
|
113
113
|
if container.restartCount.to_i > config[:restart_count]
|
114
|
-
restarted_pods << container.name
|
114
|
+
restarted_pods << "#{pod.metadata.namespace}.#{container.name}"
|
115
115
|
end
|
116
116
|
end
|
117
117
|
end
|
@@ -83,7 +83,7 @@ class AllServicesUp < Sensu::Plugins::Kubernetes::CLI
|
|
83
83
|
when 'Pending'
|
84
84
|
next if p.status.startTime.nil?
|
85
85
|
if (Time.now - Time.parse(p.status.startTime)).to_i < config[:pendingTime]
|
86
|
-
pod_available =
|
86
|
+
pod_available = true
|
87
87
|
break
|
88
88
|
end
|
89
89
|
when 'Running'
|
@@ -96,7 +96,7 @@ class AllServicesUp < Sensu::Plugins::Kubernetes::CLI
|
|
96
96
|
break if pod_available
|
97
97
|
end
|
98
98
|
end
|
99
|
-
failed_services << p.metadata.name if pod_available == false
|
99
|
+
failed_services << "#{p.metadata.namespace}.#{p.metadata.name}" if pod_available == false
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-kubernetes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sensu-Plugins and contributors
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.2'
|
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
26
|
version: '1.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -38,134 +38,148 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 1.1.3
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "<"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 5.0.0
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "<"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 5.0.0
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: bundler
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - ~>
|
59
|
+
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
61
|
version: '1.7'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - ~>
|
66
|
+
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
68
|
version: '1.7'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: codeclimate-test-reporter
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - ~>
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
75
|
version: '0.4'
|
62
76
|
type: :development
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - ~>
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
82
|
version: '0.4'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: github-markup
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - ~>
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
89
|
version: '1.3'
|
76
90
|
type: :development
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - ~>
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
96
|
version: '1.3'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: pry
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - ~>
|
101
|
+
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
103
|
version: '0.10'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - ~>
|
108
|
+
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
110
|
version: '0.10'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rake
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
100
114
|
requirements:
|
101
|
-
- - ~>
|
115
|
+
- - "~>"
|
102
116
|
- !ruby/object:Gem::Version
|
103
117
|
version: '10.5'
|
104
118
|
type: :development
|
105
119
|
prerelease: false
|
106
120
|
version_requirements: !ruby/object:Gem::Requirement
|
107
121
|
requirements:
|
108
|
-
- - ~>
|
122
|
+
- - "~>"
|
109
123
|
- !ruby/object:Gem::Version
|
110
124
|
version: '10.5'
|
111
125
|
- !ruby/object:Gem::Dependency
|
112
126
|
name: redcarpet
|
113
127
|
requirement: !ruby/object:Gem::Requirement
|
114
128
|
requirements:
|
115
|
-
- - ~>
|
129
|
+
- - "~>"
|
116
130
|
- !ruby/object:Gem::Version
|
117
131
|
version: '3.2'
|
118
132
|
type: :development
|
119
133
|
prerelease: false
|
120
134
|
version_requirements: !ruby/object:Gem::Requirement
|
121
135
|
requirements:
|
122
|
-
- - ~>
|
136
|
+
- - "~>"
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: '3.2'
|
125
139
|
- !ruby/object:Gem::Dependency
|
126
140
|
name: rubocop
|
127
141
|
requirement: !ruby/object:Gem::Requirement
|
128
142
|
requirements:
|
129
|
-
- - ~>
|
143
|
+
- - "~>"
|
130
144
|
- !ruby/object:Gem::Version
|
131
145
|
version: 0.40.0
|
132
146
|
type: :development
|
133
147
|
prerelease: false
|
134
148
|
version_requirements: !ruby/object:Gem::Requirement
|
135
149
|
requirements:
|
136
|
-
- - ~>
|
150
|
+
- - "~>"
|
137
151
|
- !ruby/object:Gem::Version
|
138
152
|
version: 0.40.0
|
139
153
|
- !ruby/object:Gem::Dependency
|
140
154
|
name: rspec
|
141
155
|
requirement: !ruby/object:Gem::Requirement
|
142
156
|
requirements:
|
143
|
-
- - ~>
|
157
|
+
- - "~>"
|
144
158
|
- !ruby/object:Gem::Version
|
145
159
|
version: '3.4'
|
146
160
|
type: :development
|
147
161
|
prerelease: false
|
148
162
|
version_requirements: !ruby/object:Gem::Requirement
|
149
163
|
requirements:
|
150
|
-
- - ~>
|
164
|
+
- - "~>"
|
151
165
|
- !ruby/object:Gem::Version
|
152
166
|
version: '3.4'
|
153
167
|
- !ruby/object:Gem::Dependency
|
154
168
|
name: yard
|
155
169
|
requirement: !ruby/object:Gem::Requirement
|
156
170
|
requirements:
|
157
|
-
- - ~>
|
171
|
+
- - "~>"
|
158
172
|
- !ruby/object:Gem::Version
|
159
173
|
version: '0.8'
|
160
174
|
type: :development
|
161
175
|
prerelease: false
|
162
176
|
version_requirements: !ruby/object:Gem::Requirement
|
163
177
|
requirements:
|
164
|
-
- - ~>
|
178
|
+
- - "~>"
|
165
179
|
- !ruby/object:Gem::Version
|
166
180
|
version: '0.8'
|
167
|
-
description:
|
168
|
-
email: <sensu-users@googlegroups.com>
|
181
|
+
description: Provides monitoring for Kubernetes via Sensu
|
182
|
+
email: "<sensu-users@googlegroups.com>"
|
169
183
|
executables:
|
170
184
|
- check-kube-apiserver-available.rb
|
171
185
|
- check-kube-nodes-ready.rb
|
@@ -205,17 +219,17 @@ require_paths:
|
|
205
219
|
- lib
|
206
220
|
required_ruby_version: !ruby/object:Gem::Requirement
|
207
221
|
requirements:
|
208
|
-
- -
|
222
|
+
- - ">="
|
209
223
|
- !ruby/object:Gem::Version
|
210
224
|
version: 2.0.0
|
211
225
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
212
226
|
requirements:
|
213
|
-
- -
|
227
|
+
- - ">="
|
214
228
|
- !ruby/object:Gem::Version
|
215
229
|
version: '0'
|
216
230
|
requirements: []
|
217
231
|
rubyforge_project:
|
218
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.5.1
|
219
233
|
signing_key:
|
220
234
|
specification_version: 4
|
221
235
|
summary: Sensu plugins for kubernetes
|