You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dc33ab6
Browse filesBrowse the repository at this point in the historyBrowse files
This annotation selects what counts as a change of a referenced ConfigMap or Secret:
67
67
68
-
`resource-version` (default):: Every write to the object counts as a change, including writes that only touch its metadata (labels, annotations, managed fields) or that write identical content.
68
+
`resource-version` (default, deprecated):: Every write to the object counts as a change, including writes that only touch its metadata (labels, annotations, managed fields) or that write identical content.
69
+
This mechanism is deprecated and will be removed in the next release, see <<change-tracking-deprecation>>.
69
70
`data-hash`:: Only a change of the content (`data` and `binaryData` of a ConfigMap, `data` of a Secret) counts as a change.
70
71
Writes by third parties that leave the content as it is do not restart the Pods.
71
72
To hash the content, the operator reads a referenced object whenever its resource version changes.
@@ -93,6 +94,18 @@ metadata:
93
94
...
94
95
----
95
96
97
+
[#change-tracking-deprecation]
98
+
==== Deprecation of `resource-version`
99
+
100
+
The next release removes the `resource-version` mechanism and uses `data-hash` for every StatefulSet.
101
+
It ignores the value of the annotation `restarter.stackable.tech/change-tracking-mechanism`, and logs a warning if it is `resource-version`.
102
+
The operator already logs this warning in this release, once per StatefulSet after each operator start.
103
+
104
+
The switch works as described above and does not restart any Pods by itself.
105
+
To try `data-hash` before that, set the annotation on individual StatefulSets.
106
+
107
+
If you rely on writes to a ConfigMap or Secret restarting the Pods, for example by changing a label or annotation of it, use `kubectl rollout restart statefulset \{name\}` instead.
108
+
96
109
==== Pod template annotations
97
110
98
111
To detect changes, the operator adds an annotation for every referenced ConfigMap and Secret to the Pod template of the StatefulSet.
0 commit comments