lib/configgin.rb in configgin-0.19.5 vs lib/configgin.rb in configgin-0.19.6

- old
+ new

@@ -124,12 +124,10 @@ end end kube_client.update_secret(secret) - return if new_tag - # Some pods might have depended on the properties exported by this pod; given # the annotations expected on the pods (keyed by the instance group name), # patch the StatefulSets such that they will be restarted. expected_annotations(@job_configs, digests).each_pair do |instance_group_name, digests| # Avoid restarting our own pod @@ -153,10 +151,13 @@ warn "Error patching #{instance_group_name}: #{response.to_json}" raise end end - annotations = sts.spec.template.metadata.annotations + annotations = {} + sts.spec.template.metadata.annotations.each_pair do |key, value| + annotations[key] = value + end digests.each_pair do |key, value| annotations[key] = value end kube_client_stateful_set.merge_patch_stateful_set(