-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "feat: Remove ClusterRole (#169)"
This reverts commit 2c53130.
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
charts/authentik-remote-cluster/templates/cluster-role-binding.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: {{ include "authentik-remote-cluster.fullname" . }}-{{ .Release.Namespace }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" . | nindent 4 }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: {{ include "authentik-remote-cluster.fullname" . }}-{{ .Release.Namespace }} | ||
subjects: | ||
- kind: ServiceAccount | ||
name: {{ include "authentik-remote-cluster.fullname" . }} | ||
namespace: {{ .Release.Namespace }} |
18 changes: 18 additions & 0 deletions
18
charts/authentik-remote-cluster/templates/cluster-role.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: {{ include "authentik-remote-cluster.fullname" . }}-{{ .Release.Namespace }} | ||
labels: | ||
{{- include "authentik-remote-cluster.labels" . | nindent 4 }} | ||
{{- with .Values.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
rules: | ||
- apiGroups: | ||
- apiextensions.k8s.io | ||
resources: | ||
- customresourcedefinitions | ||
verbs: | ||
- list |