Skip to content

Commit

Permalink
operator: envoyfleet manager role (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
dobegor authored Nov 18, 2021
1 parent f38bccc commit 9d15203
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1 deletion.
33 changes: 33 additions & 0 deletions config/rbac/envoyfleet_manager_role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# permissions to do manage Envoy Fleets
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: envoyfleet-manager-role
rules:
- apiGroups:
- "apps"
resources:
- deployments
- services
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
- apiGroups:
- ""
resources:
- services
- configmaps
verbs:
- create
- delete
- get
- list
- patch
- update
- watch
12 changes: 12 additions & 0 deletions config/rbac/envoyfleet_manager_role_binding.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: envoyfleet-manager-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: envoyfleet-manager-role
subjects:
- kind: ServiceAccount
name: controller-manager
namespace: system
2 changes: 2 additions & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ resources:
- role_binding.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- envoyfleet_manager_role.yaml
- envoyfleet_manager_role_binding.yaml
# Comment the following 4 lines if you want to disable
# the auth proxy (https://github.com/brancz/kube-rbac-proxy)
# which protects your /metrics endpoint.
Expand Down
2 changes: 1 addition & 1 deletion config/rbac/role_binding.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
name: manager-role
subjects:
- kind: ServiceAccount
name: controller-manager
Expand Down

0 comments on commit 9d15203

Please sign in to comment.