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

Fix chart rendering when annotations specified #38

Merged
merged 2 commits into from
Jan 7, 2022
Merged

Conversation

willholley
Copy link
Member

@willholley willholley commented Aug 5, 2020

What this PR does / why we need it:

Commit 70b2777 caused user-provided
annotations to break the checksum StatefulSet annotations. The
{{ with .Values.annotations }} instruction changes the scope
under which the checksum is calculated when user annotations are present.

This removes the {{ with .Values.annotations }} and instead just
writes out the user-provided annotations directly.

I've also added a user-provided annotation to the values.yaml used
in the smoke test to verify the fix.

Which issue this PR fixes

Special notes for your reviewer:

Checklist

[Place an '[x]' (no spaces) in all applicable fields. Please remove unrelated fields.

  • Chart Version bumped
  • e2e tests pass
  • Variables are documented in the README.md
  • Chart tgz added to /docs and index updated

@willholley
Copy link
Member Author

@kocolosk are you able to review?

@meringu
Copy link

meringu commented Nov 2, 2020

I just ran into this. 👍 on getting it merged in.

Are you able to fix the merge conflict @willholley?

@wohali wohali changed the base branch from master to main November 5, 2020 17:11
@N8th8n8el
Copy link

Status?

@flyte
Copy link

flyte commented Oct 28, 2021

I do apologise for the bump, but it would be rather helpful to be able to use these annotations if somebody has some time to review this PR?

Copy link
Member

@kocolosk kocolosk left a comment

Choose a reason for hiding this comment

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

This looks good, pending a rebase of the chart publishing metadata.

Side comment: I hadn't actually noticed the checksum/config automatic update mechanism before. It seems to me that if we're automatically rolling deployments on general config changes we should also do it when secrets.yaml changes. In fact I'd think that would be the higher priority one to address.

willholley and others added 2 commits January 7, 2022 09:57
Commit 70b2777 caused user-provided
annotations to break the `checksum` StatefulSet annotations. The
`{{ with .Values.annotations }}` instruction changes the scope
under which the checksum is calculated when user annotations are present.

This removes the `{{ with .Values.annotations }}` and instead just
writes out the user-provided annotations directly.

I've also added a user-provided annotation to the `values.yaml` used
in the smoke test to verify the fix.

Fixes #37
@kocolosk kocolosk merged commit 024f2cd into main Jan 7, 2022
@kocolosk kocolosk deleted the annotations_fix branch January 7, 2022 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
5 participants