Skip to content

Commit

Permalink
followup openyurtio#386: update the ClusterRole for yurt-controller-m…
Browse files Browse the repository at this point in the history
…anager
  • Loading branch information
SataQiu committed Aug 6, 2021
1 parent 131c435 commit b0ddc13
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
27 changes: 26 additions & 1 deletion config/setup/yurt-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,32 @@ rules:
verbs:
- list
- watch

- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/approval
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- certificates.k8s.io
resources:
- signers
resourceNames:
- "kubernetes.io/legacy-unknown"
verbs:
- approve
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
26 changes: 26 additions & 0 deletions config/yaml-template/yurt-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,32 @@ rules:
verbs:
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/approval
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- certificates.k8s.io
resources:
- signers
resourceNames:
- "kubernetes.io/legacy-unknown"
verbs:
- approve
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
Expand Down
26 changes: 26 additions & 0 deletions pkg/yurtctl/constants/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,32 @@ rules:
verbs:
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests
verbs:
- get
- list
- watch
- apiGroups:
- certificates.k8s.io
resources:
- certificatesigningrequests/approval
verbs:
- get
- list
- watch
- update
- patch
- apiGroups:
- certificates.k8s.io
resources:
- signers
resourceNames:
- "kubernetes.io/legacy-unknown"
verbs:
- approve
`
YurtControllerManagerClusterRoleBinding = `
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit b0ddc13

Please sign in to comment.