Skip to content

Commit 74959d0

Browse files
authored
Fix ClusterExtension Finalizer RBAC for upgrade-e2e (#1139)
The default kind config for e2e was updated with OwnerReferencesPermissionEnforcement and the setup script for the upgrade-e2e test was missing the required permissions on the installer clusterrole. This adds the required fields as detailed in our docs. Signed-off-by: dtfranz <[email protected]>
1 parent 83d24c5 commit 74959d0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

hack/test/pre-upgrade-setup.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,14 @@ rules:
102102
- "watch"
103103
- "bind"
104104
- "escalate"
105+
- apiGroups:
106+
- "olm.operatorframework.io"
107+
resources:
108+
- "clusterextensions/finalizers"
109+
verbs:
110+
- "update"
111+
resourceNames:
112+
- "${TEST_CLUSTER_EXTENSION_NAME}"
105113
EOF
106114

107115
kubectl apply -f - <<EOF

0 commit comments

Comments
 (0)