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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/kubernetes-deploy/kubernetes_resource/bucket.rb +31 -0
- data/lib/kubernetes-deploy/kubernetes_resource/bugsnag.rb +4 -0
- data/lib/kubernetes-deploy/kubernetes_resource/cloudsql.rb +4 -0
- data/lib/kubernetes-deploy/kubernetes_resource/elasticsearch.rb +31 -0
- data/lib/kubernetes-deploy/kubernetes_resource/memcached.rb +4 -0
- data/lib/kubernetes-deploy/kubernetes_resource/redis.rb +4 -0
- data/lib/kubernetes-deploy/kubernetes_resource/statefulservice.rb +31 -0
- data/lib/kubernetes-deploy/kubernetes_resource/topic.rb +31 -0
- data/lib/kubernetes-deploy/runner.rb +4 -0
- data/lib/kubernetes-deploy/version.rb +1 -1
- metadata +6 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1824eeb996c6d82344af3296b3000706ea6f3516
|
4
|
+
data.tar.gz: bd6786d3454f52ac5ac8edf332c62a3a5f7f7164
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
@@ -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
|
@@ -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
|
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.
|
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-
|
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
|