awes_cli 0.0.20.1 → 0.0.20.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/deploy_app.rb +1 -1
- data/lib/deploy_config.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 317d18d4cd0256b047d9bf1df3ada8ad5fbaf0729f977fa0814a0eb3ff333bd2
|
4
|
+
data.tar.gz: 0c4ef3b7d8091e32a47e1da30f053332a30b9086c9ee8a9a432517509c161b10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 593e57a190e46a214bddf11396638c45d4f334675a2c55a33f31d19b7a077fe8412270b38d5cb117d75e2ab1ca996a815d52bf161539262ef05b04392f86cc5c
|
7
|
+
data.tar.gz: 78f9aff161a12632079d62cd6c690af2744b245e77598b4930cec6fffc81f03b9edeeec133032c3d15933d37b01dd91358704521c1416a38a12eb27f3f624bc0
|
data/lib/deploy_app.rb
CHANGED
@@ -146,6 +146,6 @@ class DeployApp
|
|
146
146
|
return JSON.parse(json_deploy) if(json_deploy != "")
|
147
147
|
json_statefulset = `kubectl get statefulset -n #{namespace} #{app_name} -o json`
|
148
148
|
return JSON.parse(json_statefulset) if(json_statefulset != "")
|
149
|
-
throw "Workload does not exists "
|
149
|
+
throw "Workload does not exists name: #{app_name} namespace: #{namespace}"
|
150
150
|
end
|
151
151
|
end
|
data/lib/deploy_config.rb
CHANGED
@@ -150,8 +150,6 @@ class DeployConfig
|
|
150
150
|
"--project #{options[:project_id]} "
|
151
151
|
)
|
152
152
|
|
153
|
-
self.workload_hash = fetch_worload_yaml(options[:app_name], options[:namespace])
|
154
|
-
|
155
153
|
spec = app_container_spec(options[:app_name], options[:namespace]) || {}
|
156
154
|
|
157
155
|
override_envs = override_envs(options)
|
@@ -187,6 +185,8 @@ class DeployConfig
|
|
187
185
|
|
188
186
|
shell_cmd("kubectl apply -f ./tmp/final.yaml")
|
189
187
|
|
188
|
+
self.workload_hash = fetch_worload_yaml(options[:app_name], options[:namespace])
|
189
|
+
|
190
190
|
shell_cmd("kubectl rollout status #{workload_hash['kind']}/#{options[:app_name]} -n #{options[:namespace]}")
|
191
191
|
end
|
192
192
|
|