kubernetes-deploy 0.11.0 → 0.11.1

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: 1fcb28df3ae43f68d38b30177c5131f59c45c602
4
- data.tar.gz: 26f3440846640400f726ef6fe9acc95460ddef3d
3
+ metadata.gz: 0614c3851898f064ec1dfbae1f25fdd1fda70740
4
+ data.tar.gz: 973f4a9d5007d95b10771b3dcc5e42564d36744e
5
5
  SHA512:
6
- metadata.gz: 6e6d10b5aea6ffacfacf466d7d3255e7f22709432ea49924cee5ef173f371b13b9f7d04cfb86b9182610e7cb3207e2f526fefca37cd864bc83ffdd1fc559869a
7
- data.tar.gz: 7909b9c4475a6151b4b1d286601b49188d4797e0d0174f9526ade8afa67134ecfff07e793b42392d004c2eb145b075b986556dd7f35e1f812e9414737c89924f
6
+ metadata.gz: a5b60bf891dfd6aef2edb0b7ec7f7df576c56eb93a4c04747d705e1ff4b2e476e26725e6f21ed0e4ab04e594f1a20019b21f571870b4d25e9b11377c323eaac2
7
+ data.tar.gz: 683b10bf4f0dd1794fd819d53f8871623a75d0f4bb2fb7185584bf4b5113fa7d0e3022bf60e2a1d32d6e1523b16b7b95be5291fc3494b74ec2d4c0ae8a307a63
@@ -97,7 +97,8 @@ module KubernetesDeploy
97
97
 
98
98
  all_pods = JSON.parse(raw_json)["items"]
99
99
  all_pods.each_with_object([]) do |pod_data, relevant_pods|
100
- next unless pod_data["metadata"]["ownerReferences"].any? { |ref| ref["uid"] == rs_data["metadata"]["uid"] }
100
+ next unless owners = pod_data.dig("metadata", "ownerReferences")
101
+ next unless owners.any? { |ref| ref["uid"] == rs_data["metadata"]["uid"] }
101
102
  pod = Pod.new(
102
103
  namespace: namespace,
103
104
  context: context,
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module KubernetesDeploy
3
- VERSION = "0.11.0"
3
+ VERSION = "0.11.1"
4
4
  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.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Katrina Verey