Skip to content

Hash environments and annotate to trigger pod restarts on changes#239

Open
vshntea wants to merge 9 commits intomasterfrom
restart_pods
Open

Hash environments and annotate to trigger pod restarts on changes#239
vshntea wants to merge 9 commits intomasterfrom
restart_pods

Conversation

@vshntea
Copy link

@vshntea vshntea commented Feb 12, 2026

Summary

This PR introduces a new annotation k8ify.restart-trigger-config which holds a hash of the secrets that are used in any of the containers in a pod.
A change in the environments will result in a new hash, which will result in an annotation change which will trigger a restart when applied.

Note that this change will initially trigger a restart on pods that have not been annotated yet.

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@vshntea vshntea added the enhancement New feature or request label Feb 12, 2026
@vshntea vshntea marked this pull request as ready for review February 13, 2026 14:40
@vshntea vshntea marked this pull request as draft February 13, 2026 14:46
Copy link
Contributor

@BacLuc BacLuc left a comment

Choose a reason for hiding this comment

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

I did not tests it, but it looks good except for the hashing.

@vshntea vshntea marked this pull request as ready for review February 16, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants