Skip to content

Commit b59711e

Browse files
Adds delete and create verbs to validating webhook
When manual approval is shiped in operator, webhook gives an error as it cannot set an ownerRef on a resource which it can't delete Hence this patch fixes this by adding missing verbs Signed-off-by: PuneetPunamiya <[email protected]>
1 parent 89b1dde commit b59711e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/openshift/201-clusterrole.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ rules:
9393
resourceNames: ["webhook.manual.approval.dev"]
9494
# When there are changes to the configs or secrets, knative updates the validatingwebhook config
9595
# with the updated certificates or the refreshed set of rules.
96-
verbs: ["get", "list", "update", "patch", "watch"]
96+
verbs: ["get", "list", "update", "patch", "watch", "delete", "create"]
9797
- apiGroups: [ "openshift-pipelines.org" ]
9898
resources: [ "approvaltasks" ]
9999
verbs: [ "get", "list", "create", "update", "delete", "patch", "watch" ]

0 commit comments

Comments
 (0)