kubernetes-deploy 0.12.11 → 0.12.12

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: aa5be0538d73c03f9c281407bdd3cf586eb4cde9
4
- data.tar.gz: 350c47e0cc23c058f8bf25561bd4499641f727a9
3
+ metadata.gz: 1824eeb996c6d82344af3296b3000706ea6f3516
4
+ data.tar.gz: bd6786d3454f52ac5ac8edf332c62a3a5f7f7164
5
5
  SHA512:
6
- metadata.gz: 3b67e883b22032d548e08df5f4c81a7f8b10173e67f96075bfe23019c7475583da8584c31e8e7ef1d1e7931974d31875b922ea254f8ea81635d504085dbaf2d8
7
- data.tar.gz: 8ae04db87d62fc8ac31d401005583867a11220162e03ac61defc4afc534b79b69a00e0f2293fc6d462745b187b609145dc65e9da98a3ea5d6fe5e0f63db38648
6
+ metadata.gz: 07442fae42d0982d81f9d48a684afb59330124a62680ccb00e9b51b93422f60340e8a48b799f43b7b048dcb084f5d3a8daba93229818e00e9d71f7bafb765731
7
+ data.tar.gz: f3acaaa7d676ee0c286d800232b96f6232e04fbb2ee2187a31156f217008705a7b87d6152a030a6d524e548905d3dd7bb93d012232dc375137c1e2b0d27936a2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 0.12.12
2
+ *Bug Fixes*
3
+ - Fix an issue deploying Shopify's internal custom resources.
4
+
1
5
  ### 0.12.11
2
6
  *Bug Fixes*
3
7
  - Stop appending newlines to the base64-encoded values of secrets created from ejson. These extra newlines were preventing the ejson->k8s secret feature from working with v1.8 (https://github.com/Shopify/kubernetes-deploy/pull/196).
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ module KubernetesDeploy
3
+ class Bucket < KubernetesResource
4
+ def sync
5
+ _, _err, st = kubectl.run("get", type, @name)
6
+ @found = st.success?
7
+ end
8
+
9
+ def deploy_succeeded?
10
+ return false unless @deploy_started
11
+
12
+ unless @success_assumption_warning_shown
13
+ @logger.warn("Don't know how to monitor resources of type #{type}. Assuming #{id} deployed successfully.")
14
+ @success_assumption_warning_shown = true
15
+ end
16
+ true
17
+ end
18
+
19
+ def exists?
20
+ @found
21
+ end
22
+
23
+ def deploy_failed?
24
+ false
25
+ end
26
+
27
+ def deploy_method
28
+ :replace
29
+ end
30
+ end
31
+ end
@@ -25,5 +25,9 @@ module KubernetesDeploy
25
25
  def exists?
26
26
  @found
27
27
  end
28
+
29
+ def deploy_method
30
+ :replace
31
+ end
28
32
  end
29
33
  end
@@ -27,6 +27,10 @@ module KubernetesDeploy
27
27
  @found
28
28
  end
29
29
 
30
+ def deploy_method
31
+ :replace
32
+ end
33
+
30
34
  private
31
35
 
32
36
  def cloudsql_proxy_deployment_exists?
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ module KubernetesDeploy
3
+ class Elasticsearch < KubernetesResource
4
+ def sync
5
+ _, _err, st = kubectl.run("get", type, @name)
6
+ @found = st.success?
7
+ end
8
+
9
+ def deploy_succeeded?
10
+ return false unless @deploy_started
11
+
12
+ unless @success_assumption_warning_shown
13
+ @logger.warn("Don't know how to monitor resources of type #{type}. Assuming #{id} deployed successfully.")
14
+ @success_assumption_warning_shown = true
15
+ end
16
+ true
17
+ end
18
+
19
+ def exists?
20
+ @found
21
+ end
22
+
23
+ def deploy_failed?
24
+ false
25
+ end
26
+
27
+ def deploy_method
28
+ :replace
29
+ end
30
+ end
31
+ end
@@ -30,6 +30,10 @@ module KubernetesDeploy
30
30
  @found
31
31
  end
32
32
 
33
+ def deploy_method
34
+ :replace
35
+ end
36
+
33
37
  private
34
38
 
35
39
  def memcached_deployment_exists?
@@ -29,6 +29,10 @@ module KubernetesDeploy
29
29
  @found
30
30
  end
31
31
 
32
+ def deploy_method
33
+ :replace
34
+ end
35
+
32
36
  private
33
37
 
34
38
  def redis_deployment_exists?
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ module KubernetesDeploy
3
+ class Statefulservice < KubernetesResource
4
+ def sync
5
+ _, _err, st = kubectl.run("get", type, @name)
6
+ @found = st.success?
7
+ end
8
+
9
+ def deploy_succeeded?
10
+ return false unless @deploy_started
11
+
12
+ unless @success_assumption_warning_shown
13
+ @logger.warn("Don't know how to monitor resources of type #{type}. Assuming #{id} deployed successfully.")
14
+ @success_assumption_warning_shown = true
15
+ end
16
+ true
17
+ end
18
+
19
+ def exists?
20
+ @found
21
+ end
22
+
23
+ def deploy_failed?
24
+ false
25
+ end
26
+
27
+ def deploy_method
28
+ :replace
29
+ end
30
+ end
31
+ end
@@ -0,0 +1,31 @@
1
+ # frozen_string_literal: true
2
+ module KubernetesDeploy
3
+ class Topic < KubernetesResource
4
+ def sync
5
+ _, _err, st = kubectl.run("get", type, @name)
6
+ @found = st.success?
7
+ end
8
+
9
+ def deploy_succeeded?
10
+ return false unless @deploy_started
11
+
12
+ unless @success_assumption_warning_shown
13
+ @logger.warn("Don't know how to monitor resources of type #{type}. Assuming #{id} deployed successfully.")
14
+ @success_assumption_warning_shown = true
15
+ end
16
+ true
17
+ end
18
+
19
+ def exists?
20
+ @found
21
+ end
22
+
23
+ def deploy_failed?
24
+ false
25
+ end
26
+
27
+ def deploy_method
28
+ :replace
29
+ end
30
+ end
31
+ end
@@ -23,6 +23,10 @@ require 'kubernetes-deploy/kubernetes_resource'
23
23
  service_account
24
24
  daemon_set
25
25
  resource_quota
26
+ elasticsearch
27
+ statefulservice
28
+ topic
29
+ bucket
26
30
  ).each do |subresource|
27
31
  require "kubernetes-deploy/kubernetes_resource/#{subresource}"
28
32
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module KubernetesDeploy
3
- VERSION = "0.12.11"
3
+ VERSION = "0.12.12"
4
4
  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.12.11
4
+ version: 0.12.12
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-10-31 00:00:00.000000000 Z
12
+ date: 2017-11-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -217,11 +217,13 @@ files:
217
217
  - lib/kubernetes-deploy/kubeclient_builder/google_friendly_config.rb
218
218
  - lib/kubernetes-deploy/kubectl.rb
219
219
  - lib/kubernetes-deploy/kubernetes_resource.rb
220
+ - lib/kubernetes-deploy/kubernetes_resource/bucket.rb
220
221
  - lib/kubernetes-deploy/kubernetes_resource/bugsnag.rb
221
222
  - lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb
222
223
  - lib/kubernetes-deploy/kubernetes_resource/config_map.rb
223
224
  - lib/kubernetes-deploy/kubernetes_resource/daemon_set.rb
224
225
  - lib/kubernetes-deploy/kubernetes_resource/deployment.rb
226
+ - lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb
225
227
  - lib/kubernetes-deploy/kubernetes_resource/ingress.rb
226
228
  - lib/kubernetes-deploy/kubernetes_resource/memcached.rb
227
229
  - lib/kubernetes-deploy/kubernetes_resource/persistent_volume_claim.rb
@@ -233,6 +235,8 @@ files:
233
235
  - lib/kubernetes-deploy/kubernetes_resource/resource_quota.rb
234
236
  - lib/kubernetes-deploy/kubernetes_resource/service.rb
235
237
  - lib/kubernetes-deploy/kubernetes_resource/service_account.rb
238
+ - lib/kubernetes-deploy/kubernetes_resource/statefulservice.rb
239
+ - lib/kubernetes-deploy/kubernetes_resource/topic.rb
236
240
  - lib/kubernetes-deploy/resource_watcher.rb
237
241
  - lib/kubernetes-deploy/restart_task.rb
238
242
  - lib/kubernetes-deploy/runner.rb