Repository navigation
Conversation
bf49a84 to
9efe76a
Compare
There was a problem hiding this comment.
I gave this a try locally and got the annotation secret.restarter.stackable.tech/trino-spooling-secret: 9bde3f80-3d82-460b-860d-33883b7788b9/d00e1cb9a57b70d22ab8f3408c128d17.
I'm wonder why we are "still" including the UID in here? I would have expected secret.restarter.stackable.tech/trino-spooling-secret: d00e1cb9a57b70d22ab8f3408c128d17.
That has the benefit, that re-creating the Secret with the same content doesn't cause a restart
|
A small feature idea: |
sbernauer
left a comment
There was a problem hiding this comment.
Basically LGTM, I only recommend to remove the UID prefix
|
|
||
| To detect changes, the operator adds an annotation for every referenced ConfigMap and Secret to the Pod template of the StatefulSet. | ||
| Its key is `configmap.restarter.stackable.tech/\{name\}` or `secret.restarter.stackable.tech/\{name\}`, its value is the UID and resource version of the referenced object. | ||
| Its key is `configmap.restarter.stackable.tech/\{name\}` or `secret.restarter.stackable.tech/\{name\}`, its value is the UID of the referenced object, followed by a hash of its content (or by its resource version, as described above for upgrades). |
There was a problem hiding this comment.
needs to be updated when we remove the UID
9efe76a to
f2db3a4
Compare
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Co-authored-by: Sebastian Bernauer <sebastian.bernauer@stackable.de>
Description
Adds a keyed digest of the configmap / secret's content to use for detecting required restarts instead of using resourceVersion which gets bumped by e.g. metadata changes.
Definition of Done Checklist
Author
Reviewer
Acceptance
type/deprecationlabel & add to the deprecation scheduletype/experimentallabel & add to the experimental features tracker