Skip to content

Commit

Permalink
Merge pull request #100 from cschwede/edpm-configmap-role
Browse files Browse the repository at this point in the history
Add role and binding to update inventory configmap
  • Loading branch information
cschwede authored Jan 25, 2024
2 parents 9e09937 + eb4cfce commit 3bd566f
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/rbac/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ resources:
- role_binding.yaml
- leader_election_role.yaml
- leader_election_role_binding.yaml
- swift_configmap_update.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
29 changes: 29 additions & 0 deletions config/rbac/swift_configmap_update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: openstack
name: configmap-update
rules:
- apiGroups:
- ""
resources:
- configmaps
resourceNames:
- swift-edpm-inventory
verbs:
- update

---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: configmap-update
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: configmap-update
subjects:
- kind: ServiceAccount
name: default
namespace: openstack

0 comments on commit 3bd566f

Please sign in to comment.