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
- Adds CAPI Machine VAP, similar to the MAPI one, but for when MAPI is
autoritative.
- Adds tests
- Updates machine sync reconciler to requeue after 2s of
AuthoritativeAPI is empty (rather than the 10m default)
message: "You may only modify spec.authoritativeAPI. Any other change inside .spec is not allowed. This is because status.authoritativeAPI is set to Cluster API."
117
117
118
-
# Guard machine.openshift.io/* and kubernetes.io/* labels
118
+
# Guard machine.openshift.io/*, kubernetes.io/* and cluster.x-k8s.io labels
message: "Cannot add, modify or delete any machine.openshift.io/* or kubernetes.io/* label. This is because status.authoritativeAPI is set to Cluster API."
131
131
132
-
# Guard machine.openshift.io/* annotations
132
+
# Guard machine.openshift.io/* and cluster(s).x-k8s.io annotations
message: "Cannot modify a Cluster API controlled label except to match the Cluster API mirrored machine. This is because status.authoritativeAPI is set to Cluster API."
154
+
155
+
# Don't allow setting the 'machine-template-hash' label. It should only be set by the CAPI controllers.
156
+
- expression: "!('machine-template-hash' in variables.newLabels)"
157
+
message: "Setting the 'machine-template-hash' label is forbidden.'"
message: "Cannot add, modify or delete any machine.openshift.io/*, kubernetes.io/* or cluster.x-k8s.io/* label. This is because status.authoritativeAPI is set to Machine API."
242
+
243
+
# Guard machine.openshift.io/* and cluster.x-k8s.io/* and clusters.x-k8s.io/* annotations
message: "Cannot add, modify or delete any machine.openshift.io/* or cluster.x-k8s.io or clusters.x-k8s.io annotation. This is because status.authoritativeAPI is set to Machine API."
256
+
257
+
# Param-controlled labels (labels on the MAPI machine) may change only to match the value on the MAPI Machine
message: "Cannot modify a Machine API controlled label except to match the Machine API mirrored machine. This is because status.authoritativeAPI is set to Machine API."
265
+
266
+
# Don't allow setting the 'machine-template-hash' label. It should only be set by the CAPI controllers.
267
+
- expression: "!('machine-template-hash' in variables.newLabels)"
268
+
message: "Setting the 'machine-template-hash' label is forbidden.'"
logger.Info("Deleting the corresponding Cluster API infra machine as it is out of date, it will be recreated", "diff", fmt.Sprintf("%+v", capiInfraMachinesDiff))
0 commit comments