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: 10f350d410bd5c15f27b68c18e35c63d8a8ac361
4
- data.tar.gz: b1dea0ec0e6638bb91b38f73dcf06eae69435ad2
3
+ metadata.gz: d94a22a6a4282f8185775bc7bdf68e7278992071
4
+ data.tar.gz: ea8088bedce06afec59ffaa60c89ab6afdb0de33
5
5
  SHA512:
6
- metadata.gz: 44d974d7f3c78403c43fa8682a1177a806fe675836733412d5ca59d7bb732decce7b38a4fe32c6f8e49bf41eb396265a61b50dd53cadf570677dabd404dd4148
7
- data.tar.gz: 765a27bf59e8575df9e8cd469535935f74c538d7a4d543ccdb2c695b189300f8403d2019cc5edfa3c2cf29ef137cff4e7e17bf12cbe8d2096a15f56cbaace1ea
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
@@ -19,6 +19,7 @@ require 'kubernetes-deploy/kubernetes_resource'
19
19
  bugsnag
20
20
  pod_disruption_budget
21
21
  replica_set
22
+ service_account
22
23
  ).each do |subresource|
23
24
  require "kubernetes-deploy/kubernetes_resource/#{subresource}"
24
25
  end
@@ -1,3 +1,3 @@
1
1
  module KubernetesDeploy
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
3
3
  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.1
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-17 00:00:00.000000000 Z
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