chore(e2e): Aggregate finalizers permission to the default admin role
@@ -170,7 +170,6 @@ jobs:
metadata:
name: camel-k-test:eviction
labels:
- app: "camel-k"
rbac.authorization.k8s.io/aggregate-to-admin: "true"
rules:
- apiGroups: [""]
@@ -178,7 +177,7 @@ jobs:
verbs: ["create"]
EOF
- # Aggregate nodes permission to the default admin role
+ # Grant nodes permission to the default developer user
cat <<EOF | oc apply -f -
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
@@ -203,6 +202,20 @@ jobs:
apiGroup: rbac.authorization.k8s.io
EOF
+ # Aggregate finalizers permission to the default admin role
+ cat <<EOF | oc apply -f -
+ kind: ClusterRole
+ apiVersion: rbac.authorization.k8s.io/v1
+ metadata:
+ name: camel-k-test:finalizers
+ labels:
+ rbac.authorization.k8s.io/aggregate-to-admin: "true"
+ rules:
+ - apiGroups: ["camel.apache.org"]
+ resources: ["*/finalizers"]
+ verbs: ["update"]
+ EOF
+
# Login as normal user
oc login -u developer
