lib/configgin.rb in configgin-0.20.1.1 vs lib/configgin.rb in configgin-0.20.2
- old
+ new
@@ -116,23 +116,17 @@
# initial values because the helm chart doesn't include any annotations, and we don't
# want to trigger a pod restart by adding them.
encoded_digest = Base64.strict_encode64(digests[name])
if new_tag
secret.data["skiff-initial-digest-#{name}"] = encoded_digest
- secret.data["skiff-initial-properties-#{name}"] = secret.data["skiff-exported-properties-#{name}"]
end
if secret.data["skiff-initial-digest-#{name}"] == encoded_digest
digests[name] = nil
end
end
kube_client.update_secret(secret)
- warn "new_tag=#{new_tag}"
- secret.data.to_h.each_pair do |key, value|
- warn "secret.data[#{key}]=#{value}"
- end
-
# Some pods might depend on the properties exported by this pod; add annotations
# to the template spec of the stateful sets so that the pods will be restarted if
# the exported values have changed from the initial values.
expected_annotations(@job_configs, digests).each_pair do |instance_group_name, digests|
# Avoid restarting our own pod
@@ -159,14 +153,12 @@
# Update annotations to match digests for current property values. The stateful set will
# only restarts pods when the checksum of the pod spec changes, so no-op "updates" are ok.
annotations = {}
sts.spec.template.metadata.annotations.each_pair do |key, value|
- warn "Copying old annotation #{key}=#{value}"
annotations[key] = value
end
digests.each_pair do |key, value|
- warn "Setting new annotation #{key}=#{value}"
annotations[key] = value
end
kube_client_stateful_set.merge_patch_stateful_set(
instance_group_name,