awes_cli 0.0.20.1 → 0.0.20.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
  SHA256:
3
- metadata.gz: 3275174a80e5f3d18a32e2769363accdb03b48f536cf8d3d7996a0685749db23
4
- data.tar.gz: ce31d146d9cbae8e71d5f804ead89707b9100f92cf3bcb4c694c1c19a4587257
3
+ metadata.gz: 317d18d4cd0256b047d9bf1df3ada8ad5fbaf0729f977fa0814a0eb3ff333bd2
4
+ data.tar.gz: 0c4ef3b7d8091e32a47e1da30f053332a30b9086c9ee8a9a432517509c161b10
5
5
  SHA512:
6
- metadata.gz: bc2acf535f5e01c844584be94b967e0936a420ab5b0094b025904d8c6cf58fc32caeac7b0e6b10df1477068a33a9d2ce2b804bad4c99bb2ce0d40484d8d0fda1
7
- data.tar.gz: 7047d21562e67412e82e3dbb424ee840f73e024af7eaecc34b58154d74f6a94eb495d71ea85105da318322815a5bc1e52375ad6bfc0670a35aa6b89ea6da6ed9
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awes_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.20.1
4
+ version: 0.0.20.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umar Siddiqui