kubernetes-deploy 0.7.5 → 0.7.7
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: 736dcd89768f7d52df6c38968e10dcb19b05f08c
|
4
|
+
data.tar.gz: 95592ab3302c663f8144b191b951e7dc11debd4d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c7be904670a6dbffb98f9252e5d0d5c804b91958ac723505882c9edcde01a54f68753cc47b8a085bfe02118b006911805ce995e7b29c84669bdd18ea41bde30
|
7
|
+
data.tar.gz: 5c973ed3573aa46a155c982f1f780b64ba47a391fc5d970f5d9b255d8bce1c17bbfdac1b6e3a1aa56433cf602a589bf689c2cb743aa48178120bcfeaf1b21be7
|
@@ -34,7 +34,7 @@ module KubernetesDeploy
|
|
34
34
|
private
|
35
35
|
|
36
36
|
def cloudsql_proxy_deployment_exists?
|
37
|
-
deployment, _err, st = kubectl.run("get", "deployments", "cloudsql
|
37
|
+
deployment, _err, st = kubectl.run("get", "deployments", "cloudsql-#{cloudsql_resource_uuid}", "-o=json")
|
38
38
|
|
39
39
|
if st.success?
|
40
40
|
parsed = JSON.parse(deployment)
|
@@ -62,5 +62,16 @@ module KubernetesDeploy
|
|
62
62
|
|
63
63
|
false
|
64
64
|
end
|
65
|
+
|
66
|
+
def cloudsql_resource_uuid
|
67
|
+
return @cloudsql_resource_uuid if defined?(@cloudsql_resource_uuid) && @cloudsql_resource_uuid
|
68
|
+
|
69
|
+
redis, _err, st = kubectl.run("get", "cloudsqls", @name, "-o=json")
|
70
|
+
if st.success?
|
71
|
+
parsed = JSON.parse(redis)
|
72
|
+
|
73
|
+
@cloudsql_resource_uuid = parsed.fetch("metadata", {}).fetch("uid", nil)
|
74
|
+
end
|
75
|
+
end
|
65
76
|
end
|
66
77
|
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.7.
|
4
|
+
version: 0.7.7
|
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-06-
|
12
|
+
date: 2017-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|