Skip to content

Commit

Permalink
Merge pull request #390 from equinix/service-account-permissions
Browse files Browse the repository at this point in the history
Update cluster role permissions to work with MetalLB 0.13.2+
  • Loading branch information
cprivitere committed Mar 9, 2023
2 parents a0eacb2 + 0814e3f commit a36a014
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
13 changes: 13 additions & 0 deletions deploy/chart/templates/clusterrole.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,17 @@ rules:
- watch
- update
- patch
- apiGroups:
- metallb.io
resources:
- ipaddresspools
- bgppeers
- bgpadvertisements
verbs:
- get
- list
- create
- update
- patch
- delete
{{- end }}
16 changes: 15 additions & 1 deletion deploy/template/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ rules:
- update
- watch
- apiGroups:
# reason: so ccm can read and update configmap/metallb-system:config
# reason: so ccm can read and update configmap for MetalLB <= 0.12.1
- ""
resources:
- configmaps
Expand Down Expand Up @@ -185,6 +185,20 @@ rules:
- watch
- update
- patch
- apiGroups:
# reason: so ccm can manage CRDs for MetalLB v0.13.2+
- metallb.io
resources:
- ipaddresspools
- bgppeers
- bgpadvertisements
verbs:
- get
- list
- create
- update
- patch
- delete
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down

0 comments on commit a36a014

Please sign in to comment.