This is an automated email from the ASF dual-hosted git repository. astefanutti pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit b4078230bf1bc0fb02643caae5bcefe811128db3 Author: Antonin Stefanutti <[email protected]> AuthorDate: Mon Feb 22 14:26:47 2021 +0100 chore(e2e): Create aggregated ClusterRole for pod eviction on OpenShift --- .github/workflows/openshift.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/openshift.yml b/.github/workflows/openshift.yml index 0e570d3..adb6bee 100644 --- a/.github/workflows/openshift.yml +++ b/.github/workflows/openshift.yml @@ -159,6 +159,21 @@ jobs: echo "installing camel k cluster resources" ./kamel install --cluster-setup + # Aggregate pod eviction permission to the default admin role + cat <<EOF | oc apply -f - + kind: ClusterRole + apiVersion: rbac.authorization.k8s.io/v1 + metadata: + name: camel-k:eviction + labels: + app: "camel-k" + rbac.authorization.k8s.io/aggregate-to-admin: "true" + rules: + - apiGroups: [""] + resources: ["pods/eviction"] + verbs: ["create"] + EOF + # Login as normal user oc login -u developer
