Skip to content

Commit

Permalink
Merge pull request #2618 from qiujian16/fix-bind
Browse files Browse the repository at this point in the history
🐛 Add bind permission for kubernetes apiexport
  • Loading branch information
openshift-merge-robot committed Jan 13, 2023
2 parents f9a3cd8 + 8a4642b commit 150ade7
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
annotations:
bootstrap.kcp.io/create-only: "true"
bootstrap.kcp.io/battery: root-compute-workspace
name: compute:apiexport:kubernetes:bind
rules:
- apiGroups: ["apis.kcp.io"]
resources:
- "apiexports"
resourceNames:
- "kubernetes"
verbs: ["bind"]
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
annotations:
bootstrap.kcp.io/create-only: "true"
bootstrap.kcp.io/battery: root-compute-workspace
name: compute:apiexport:kubernetes:bind
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: compute:apiexport:kubernetes:bind
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: Group
name: system:authenticated

0 comments on commit 150ade7

Please sign in to comment.