Skip to content

Commit 4921db8

Browse files
committed
Update chart unit-test
1 parent f919b5d commit 4921db8

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

kubernetes/src/test/java/oracle/kubernetes/operator/create/CreateOperatorGeneratedFilesTestBase.java

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) 2018, 2024, 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
package oracle.kubernetes.operator.create;
@@ -722,7 +722,21 @@ private V1Role getExpectedWeblogicOperatorRole() {
722722
"delete",
723723
"deletecollection")))
724724
.addRulesItem(
725-
newPolicyRuleForValidatingWebhookConfiguration());
725+
newPolicyRuleForValidatingWebhookConfiguration())
726+
.addRulesItem(
727+
newPolicyRule()
728+
.addApiGroupsItem("weblogic.oracle")
729+
.resources(asList("domains", "clusters"))
730+
.verbs(
731+
asList(
732+
"get",
733+
"list",
734+
"watch",
735+
"create",
736+
"update",
737+
"patch",
738+
"delete",
739+
"deletecollection")));
726740
}
727741

728742
private V1PolicyRule newPolicyRuleForValidatingWebhookConfiguration() {

0 commit comments

Comments
 (0)