Skip to content

fix: render auth checksum as annotation#128

Open
beckcl wants to merge 2 commits intovalkey-io:mainfrom
beckcl:cb-add-secret-checksum
Open

fix: render auth checksum as annotation#128
beckcl wants to merge 2 commits intovalkey-io:mainfrom
beckcl:cb-add-secret-checksum

Conversation

@beckcl
Copy link

@beckcl beckcl commented Jan 23, 2026

Currently changes to the auth secret do not result in a fresh rollout of the Valkey Pods.

We can fix this by rendering an annotation with the secret checksum to the Deployment/StatefulSet similar to what is already being done for ConfigMaps.

This is a common pattern in Helm: https://helm.sh/docs/howto/charts_tips_and_tricks/#automatically-roll-deployments

@beckcl beckcl force-pushed the cb-add-secret-checksum branch from 7431c47 to 591a3eb Compare January 23, 2026 13:34
@beckcl beckcl marked this pull request as draft January 23, 2026 13:53
Add a checksum of the auth secret to the Deployment/Statefulset
to ensure a new rollout of Valkey if the auth secret changed.

This follows the existing pattern for the init and regular
valkey configuration.

Signed-off-by: Clemens Beck <mail@beckcl.dev>
@beckcl beckcl force-pushed the cb-add-secret-checksum branch from 591a3eb to 349f174 Compare January 23, 2026 14:07
@beckcl beckcl marked this pull request as ready for review January 23, 2026 14:07
Copy link
Collaborator

@sgissi sgissi left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, it makes sense. A few comments below.

Signed-off-by: Clemens Beck <mail@beckcl.dev>
@beckcl beckcl force-pushed the cb-add-secret-checksum branch from 19b0aee to 1e86cc2 Compare January 25, 2026 10:41
@beckcl
Copy link
Author

beckcl commented Jan 25, 2026

Thanks for the review @sgissi. I changed the volume mounts and added the missing quote. This should be ready for another look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants