Repository navigation
Conversation
sweb
force-pushed
the
chore/reproduce-unnecessary-sts-restarts
branch
2 times, most recently
from
August 13, 2026 19:14
e3bc00a to
124d17c
Compare
sweb
force-pushed
the
chore/reproduce-unnecessary-sts-restarts
branch
2 times, most recently
from
August 14, 2026 13:53
8be0274 to
0b0483c
Compare
sweb
marked this pull request as ready for review
August 14, 2026 14:04
sbernauer
reviewed
Aug 17, 2026
Comment on lines
+109
to
+110
| cms: DelayedInit<Store<ContentDigest<ConfigMap>>>, | ||
| secrets: DelayedInit<Store<ContentDigest<Secret>>>, |
Member
There was a problem hiding this comment.
I didn't look at the code but I think we should check memory usage here. commons-op stores all CM/Secrets in memory, so that can be big for big k8s clusters. We now need to store more? We should not introduce a regression by raising it (thus OOM-ing existing Pods)
Member
Author
There was a problem hiding this comment.
I'll take a look - my first thought on this is that it potentially reduces stored memory as this is more explicit about what to keep from the configmap / secret and the digest is small. I'll test it - also what this means for memory spikes as we need to read the whole content which is definitely more.
Member
|
I like the general idea! Left some remarks but didn't have the time to look at the code 🙈 |
sweb
force-pushed
the
chore/reproduce-unnecessary-sts-restarts
branch
10 times, most recently
from
November 24, 2026 16:29
0367dfa to
6d85309
Compare
sweb
force-pushed
the
chore/reproduce-unnecessary-sts-restarts
branch
from
November 24, 2026 17:05
6d85309 to
dc33ab6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a keyed digest of the configmap / secret's content to use for detecting required restarts instead of using
resourceVersionwhich gets bumped by e.g. metadata changes. This new digest is not used as default - the intention is to allow switching over to it via changing the annotationrestarter.stackable.tech/change-tracking-mechanismtodata-hashon desired statefulsets after the next release and provide a deprecation notice for the old mechanic. The following release will then move over to the new mechanic and remove the old one.The digest is computed using a key that is stored in a new secret. This is done by the operator. The approach was chosen to make sure low entropy secret values cannot be retrieved via brute force.
Switching from
resource-versiontodata-hashdoes not restart the Pods: the previous value is kept until the object is next written. Switching back restarts them once.Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker