2020-10-16 19:36:12 +00:00
|
|
|
{{- if .Values.kubernetesIntegration }}
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
2020-12-05 21:08:42 +00:00
|
|
|
name: {{ include "authentik.fullname" . }}-sa-role
|
2020-10-16 19:36:12 +00:00
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- secrets
|
|
|
|
- services
|
|
|
|
verbs:
|
|
|
|
- "get"
|
|
|
|
- "create"
|
|
|
|
- "delete"
|
|
|
|
- "read"
|
|
|
|
- "patch"
|
|
|
|
- apiGroups:
|
|
|
|
- "extensions"
|
|
|
|
- "apps"
|
|
|
|
resources:
|
|
|
|
- "deployments"
|
|
|
|
verbs:
|
|
|
|
- "get"
|
|
|
|
- "create"
|
|
|
|
- "delete"
|
|
|
|
- "read"
|
|
|
|
- "patch"
|
2020-10-18 15:13:44 +00:00
|
|
|
- apiGroups:
|
|
|
|
- "extensions"
|
2020-10-19 12:55:14 +00:00
|
|
|
- "networking.k8s.io"
|
2020-10-18 15:13:44 +00:00
|
|
|
resources:
|
2020-10-19 12:55:14 +00:00
|
|
|
- "ingresses"
|
2020-10-18 15:13:44 +00:00
|
|
|
verbs:
|
|
|
|
- "get"
|
|
|
|
- "create"
|
|
|
|
- "delete"
|
|
|
|
- "read"
|
|
|
|
- "patch"
|
2020-10-16 19:36:12 +00:00
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- namespaces
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ServiceAccount
|
|
|
|
metadata:
|
2020-12-05 21:08:42 +00:00
|
|
|
name: {{ include "authentik.fullname" . }}-sa
|
2020-10-16 19:36:12 +00:00
|
|
|
---
|
|
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
|
|
kind: ClusterRoleBinding
|
|
|
|
metadata:
|
2020-12-05 21:08:42 +00:00
|
|
|
name: {{ include "authentik.fullname" . }}-sa-role-binding
|
2020-10-16 19:36:12 +00:00
|
|
|
roleRef:
|
|
|
|
apiGroup: rbac.authorization.k8s.io
|
|
|
|
kind: ClusterRole
|
2020-12-05 21:08:42 +00:00
|
|
|
name: {{ include "authentik.fullname" . }}-sa-role
|
2020-10-16 19:36:12 +00:00
|
|
|
subjects:
|
|
|
|
- kind: ServiceAccount
|
2020-12-05 21:08:42 +00:00
|
|
|
name: {{ include "authentik.fullname" . }}-sa
|
2020-10-16 19:36:12 +00:00
|
|
|
namespace: {{ .Release.Namespace }}
|
|
|
|
{{- end }}
|