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 a34fd3f648410fe70257fac52ac3529bd1b1e1af Author: Antonin Stefanutti <[email protected]> AuthorDate: Mon Mar 22 15:04:11 2021 +0100 fix(e2e): Fix Nodes read permission --- .github/workflows/openshift.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/openshift.yml b/.github/workflows/openshift.yml index fdf73ac..22aa6a1 100644 --- a/.github/workflows/openshift.yml +++ b/.github/workflows/openshift.yml @@ -168,7 +168,7 @@ jobs: kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: camel-k:eviction + name: camel-k-test:eviction labels: app: "camel-k" rbac.authorization.k8s.io/aggregate-to-admin: "true" @@ -183,15 +183,25 @@ jobs: kind: ClusterRole apiVersion: rbac.authorization.k8s.io/v1 metadata: - name: camel-k:node - labels: - app: "camel-k" - rbac.authorization.k8s.io/aggregate-to-admin: "true" + name: camel-k-test:nodes rules: - apiGroups: [""] resources: ["nodes"] verbs: ["get","list"] EOF + cat <<EOF | oc apply -f - + kind: ClusterRoleBinding + apiVersion: rbac.authorization.k8s.io/v1 + metadata: + name: camel-k-test:nodes + subjects: + - kind: User + name: developer + roleRef: + kind: ClusterRole + name: camel-k-test:nodes + apiGroup: rbac.authorization.k8s.io + EOF # Login as normal user oc login -u developer
