Skip to content

Commit f919b5d

Browse files
committed
Ensure operator or webhook have permission to list and update custom resources
1 parent e7bc6e7 commit f919b5d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

kubernetes/charts/weblogic-operator/templates/_operator-role.tpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2018, 2022, Oracle and/or its affiliates.
1+
# Copyright (c) 2018, 2025, Oracle and/or its affiliates.
22
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.
33

44
{{- define "operator.operatorRole" }}
@@ -17,4 +17,7 @@ rules:
1717
- apiGroups: ["admissionregistration.k8s.io"]
1818
resources: ["validatingwebhookconfigurations"]
1919
verbs: ["get", "create", "update", "patch", "delete"]
20+
- apiGroups: ["weblogic.oracle"]
21+
resources: ["domains", "clusters"]
22+
verbs: ["get", "list", "watch", "create", "update", "patch", "delete", "deletecollection"]
2023
{{- end }}

0 commit comments

Comments
 (0)