Skip to content

Commit

Permalink
Merge pull request #15 from Onlineberatung/5736-fix-backups-for-ldap
Browse files Browse the repository at this point in the history
fix: prod backups for openldap
  • Loading branch information
tkuzynow authored Aug 24, 2023
2 parents e5d18b8 + 68e083b commit 3407d71
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/backup/templates/backup-cluster-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: backup-reader-binding
subjects:
- kind: ServiceAccount
name: default
namespace: backup
roleRef:
kind: ClusterRole
name: backup-cluster-reader
apiGroup: rbac.authorization.k8s.io
18 changes: 18 additions & 0 deletions charts/backup/templates/backup-cluster-role.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
# "namespace" omitted since ClusterRoles are not namespaced
name: backup-cluster-reader
rules:
- apiGroups: [""]
#
# at the HTTP level, the name of the resource for accessing Secret
# objects is "secrets"
resources: ["pods"]
verbs: ["get", "list"]
- apiGroups: [ "" ]
#
# at the HTTP level, the name of the resource for accessing Secret
# objects is "secrets"
resources: [ "pods/exec" ]
verbs: [ "create" ]

0 comments on commit 3407d71

Please sign in to comment.