Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always include annotations in the Deployment object #37

Merged
merged 1 commit into from
Jan 26, 2024

Conversation

pablovigo
Copy link

Checksum in annotations ensures that the pod restart when an object is updated. Previosuly, checksums were not included when there were no other annotations on the object, so they had no effect.
Instead, always include annotations with at least the checksums, so they are be used regardless.

Fixes: 45bed51a ("Ensure the pod restarts when the K8s secret with the config is updated")

Checksum in annotations ensures that the pod restart when an object is
updated. Previosuly, checksums were not included when there were no other
annotations on the object, so they had no effect.
Instead, always include annotations with at least the checksums, so they
are be used regardless.

Fixes: 45bed51a ("Ensure the pod restarts when the K8s secret with the config is updated")
Signed-off-by: Pablo Vigo <[email protected]>
Copy link
Collaborator

@em- em- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

annotations:
checksum/secret: {{ include (print $.Template.BasePath "/lava-token-secret.yaml") . | sha256sum }}
{{- with .Values.podAnnotations }}
Copy link
Collaborator

@em- em- Jan 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hope @sjoerdsimons will not mind the weird indentation here, but in that case we can fix it later, doing the patch this way makes it as clear as possible. :)

@em- em- added this pull request to the merge queue Jan 26, 2024
Merged via the queue into collabora:main with commit 800fa14 Jan 26, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants