2022-09-29 17:26:47 +02:00
|
|
|
{{- if .Values.rbac.create -}}
|
|
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
|
|
kind: ClusterRole
|
|
|
|
metadata:
|
|
|
|
name: {{ template "common.names.fullname" . }}
|
|
|
|
namespace: {{ .Release.Namespace | quote }}
|
|
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
|
|
{{- if .Values.commonLabels }}
|
|
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if .Values.commonAnnotations }}
|
|
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
|
|
{{- end }}
|
|
|
|
rules:
|
|
|
|
- apiGroups:
|
|
|
|
- kustomize.toolkit.fluxcd.io
|
|
|
|
resources:
|
|
|
|
- kustomizations
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- delete
|
|
|
|
- get
|
|
|
|
- patch
|
|
|
|
- create
|
|
|
|
- apiGroups:
|
|
|
|
- helm.toolkit.fluxcd.io
|
|
|
|
resources:
|
|
|
|
- helmreleases
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- delete
|
|
|
|
- get
|
|
|
|
- patch
|
|
|
|
- create
|
|
|
|
- apiGroups:
|
|
|
|
- ""
|
|
|
|
resources:
|
|
|
|
- secrets
|
|
|
|
- configmaps
|
|
|
|
verbs:
|
|
|
|
- list
|
|
|
|
- get
|
|
|
|
- patch
|
|
|
|
- delete
|
2022-10-12 16:21:26 +02:00
|
|
|
- create
|
2022-09-29 17:26:47 +02:00
|
|
|
{{- end }}
|