kubernetes-deploy 0.9.1 → 0.9.2
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d94a22a6a4282f8185775bc7bdf68e7278992071
|
4
|
+
data.tar.gz: ea8088bedce06afec59ffaa60c89ab6afdb0de33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7ae78edcf9a256b84d20e437ed69897582fd25da17a87a97dbdf537fd463509a4405e69430faaec6008c6bc3f31b58fd0b25764423a3c957a1920ee7147aac4
|
7
|
+
data.tar.gz: 7ccfe566c8a801968517cce5f160e2862f68d223380dcebb05c646265b1306a72331e8b940b51ecdecd101f17a00cb6de0a05e61be122d3b642985bfbd3762f5
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
module KubernetesDeploy
|
3
|
+
class ServiceAccount < KubernetesResource
|
4
|
+
TIMEOUT = 30.seconds
|
5
|
+
|
6
|
+
def sync
|
7
|
+
_, _err, st = kubectl.run("get", type, @name, "--output=json")
|
8
|
+
@status = st.success? ? "Created" : "Unknown"
|
9
|
+
@found = st.success?
|
10
|
+
end
|
11
|
+
|
12
|
+
def deploy_succeeded?
|
13
|
+
exists?
|
14
|
+
end
|
15
|
+
|
16
|
+
def deploy_failed?
|
17
|
+
false
|
18
|
+
end
|
19
|
+
|
20
|
+
def exists?
|
21
|
+
@found
|
22
|
+
end
|
23
|
+
|
24
|
+
def timeout_message
|
25
|
+
UNUSUAL_FAILURE_MESSAGE
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kubernetes-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katrina Verey
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-07-
|
12
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|
@@ -222,6 +222,7 @@ files:
|
|
222
222
|
- lib/kubernetes-deploy/kubernetes_resource/redis.rb
|
223
223
|
- lib/kubernetes-deploy/kubernetes_resource/replica_set.rb
|
224
224
|
- lib/kubernetes-deploy/kubernetes_resource/service.rb
|
225
|
+
- lib/kubernetes-deploy/kubernetes_resource/service_account.rb
|
225
226
|
- lib/kubernetes-deploy/resource_watcher.rb
|
226
227
|
- lib/kubernetes-deploy/restart_task.rb
|
227
228
|
- lib/kubernetes-deploy/runner.rb
|