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
Copy file name to clipboardExpand all lines: manifests/0000_30_cluster-api_09_admission-policies.yaml
+113-6Lines changed: 113 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -254,8 +254,8 @@ data:
254
254
!(k in variables.newLabels)
255
255
)
256
256
)
257
-
message: "Cannot add, modify or delete any machine.openshift.io/*or kubernetes.io/* label. This is because status.authoritativeAPI is set to Cluster API."
258
-
257
+
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 Cluster API."
258
+
259
259
# Guard machine.openshift.io/* and cluster(s).x-k8s.io annotations
260
260
- expression: >
261
261
!(
@@ -268,16 +268,16 @@ data:
268
268
!(k in variables.newAnn)
269
269
)
270
270
)
271
-
message: "Cannot add, modify or delete any machine.openshift.io/* annotation. This is because status.authoritativeAPI is set to Cluster API."
272
-
271
+
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 Cluster API."
272
+
273
273
# Param-controlled labels (labels on the CAPI machine) may change only to match the value on the CAPI Machine
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."
280
+
message: "Cannot modify a Cluster API controlled label except to match the Cluster API mirrored MachineSet. This is because status.authoritativeAPI is set to Cluster API."
281
281
---
282
282
apiVersion: admissionregistration.k8s.io/v1
283
283
kind: ValidatingAdmissionPolicyBinding
@@ -375,7 +375,7 @@ data:
375
375
!(k in variables.newAnn)
376
376
)
377
377
)
378
-
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."
378
+
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."
379
379
380
380
# Param-controlled labels (labels on the MAPI machine) may change only to match the value on the MAPI Machine
381
381
- expression: >
@@ -391,6 +391,113 @@ data:
391
391
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."
476
+
477
+
# 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."
490
+
491
+
# 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 MachineSet. This is because status.authoritativeAPI is set to Machine API."
0 commit comments