Skip to content

Commit

Permalink
Added tbot rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
vvondruska committed Nov 15, 2023
1 parent 58d3349 commit c2cbaed
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
26 changes: 26 additions & 0 deletions helm/teleport-operator/templates/tbot-rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: tbot-secrets-admin
namespace: {{ include "resource.default.namespace" . }}
labels:
{{ - include "labels.common" . | nindent 4 }}
rules:
- apiGroups: [""]
resources: ["secrets"]
verbs: ["*"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: tbot-secrets-admin
namespace: {{ include "resource.default.namespace" . }}
labels:
{{ - include "labels.common" . | nindent 4 }}
subjects:
- kind: ServiceAccount
name: tbot
roleRef:
kind: Role
name: tbot-secrets-admin
apiGroup: rbac.authorization.k8s.io
8 changes: 8 additions & 0 deletions helm/teleport-operator/templates/tbot-serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

apiVersion: v1
kind: ServiceAccount
metadata:
name: tbot
namespace: {{ include "resource.default.namespace" . }}
labels:
{{ - include "labels.common" . | nindent 4 }}

0 comments on commit c2cbaed

Please sign in to comment.