Skip to content

Commit 680ea6f

Browse files
committed
install: grant Cilium operator permissions to update ingress finalizers
This is required when the OwnerReferencesPermissionEnforcement admission plugin is set, because the operator creates CiliumEnvoyConfig resources owned by the corresponding ingress, with the blockOwnerDeletion flag set. Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
1 parent 410fad6 commit 680ea6f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

install/kubernetes/cilium/templates/cilium-operator/clusterrole.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,10 @@ rules:
323323
- networking.k8s.io
324324
resources:
325325
- ingresses/status # To update ingress status with load balancer IP.
326+
# The controller needs to be able to set ingress finalizers to be able to create a CiliumEnvoyConfig
327+
# resource that is owned by the ingress, and set blockOwnerDeletion=true in its ownerRef.
328+
# This is required when the admission plugin OwnerReferencesPermissionEnforcement is activated.
329+
- ingresses/finalizers
326330
verbs:
327331
- update
328332
{{- end }}

0 commit comments

Comments
 (0)