awes_cli 0.0.20.2 → 0.0.20.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/deploy_config.rb +1 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 317d18d4cd0256b047d9bf1df3ada8ad5fbaf0729f977fa0814a0eb3ff333bd2
4
- data.tar.gz: 0c4ef3b7d8091e32a47e1da30f053332a30b9086c9ee8a9a432517509c161b10
3
+ metadata.gz: d2f0c454abcbc8dfa7d838ddf2a3e192f0eb550ac5162a68a3ff4a54ecdc5768
4
+ data.tar.gz: 8345bc37c27f70320f109219272849d0a51cee4d8df3b66d44fba871c01d70c2
5
5
  SHA512:
6
- metadata.gz: 593e57a190e46a214bddf11396638c45d4f334675a2c55a33f31d19b7a077fe8412270b38d5cb117d75e2ab1ca996a815d52bf161539262ef05b04392f86cc5c
7
- data.tar.gz: 78f9aff161a12632079d62cd6c690af2744b245e77598b4930cec6fffc81f03b9edeeec133032c3d15933d37b01dd91358704521c1416a38a12eb27f3f624bc0
6
+ metadata.gz: 7fc3e5003cde68db1f8c8a96cbf470003ad9f3d3d281cc5c006aae8eb7e19bff0bc4fafaeb237dde2561228e8cb39c6a23196a8ab12b72bb27a374f360e9c054
7
+ data.tar.gz: a1132bee963af57ba68494b79c21c10afa4f303e6bac92de38646ea49807fc60c76be62e100779170ce863f57a0d7d93f426f705638b8ba95ab435d5c9ef2661
data/lib/deploy_config.rb CHANGED
@@ -219,6 +219,7 @@ class DeployConfig
219
219
  end
220
220
 
221
221
  def app_container_spec(app_name, namespace)
222
+ return nil if workload_hash.nil?
222
223
  deploy_containers = `kubectl get #{workload_hash['kind']} -n #{namespace} #{app_name} --output=jsonpath={.spec.template.spec.containers}`
223
224
  return nil if deploy_containers == ''
224
225
  JSON.parse(deploy_containers, symbolize_names: true).find { |container| container[:name] == app_name }
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.2
4
+ version: 0.0.20.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Umar Siddiqui