argocd-helm/charts/argo-rollouts/templates/controller/clusterrole.yaml
Aikawa 4f4fb956d3
fix(argo-rollouts): Align permissions for controller's ClusterRole / Role (#2830)
* fix(argo-rollouts): Align permissions for controller's ClusterRole / Role

Signed-off-by: yu-croco <yu.croco@gmail.com>

* fix(argo-rollouts): correct typo

Signed-off-by: yu-croco <yu.croco@gmail.com>

---------

Signed-off-by: yu-croco <yu.croco@gmail.com>
2024-08-12 10:58:01 +02:00

11 lines
412 B
YAML

{{- if and .Values.clusterInstall .Values.controller.createClusterRole }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: {{ include "argo-rollouts.fullname" . }}
labels:
app.kubernetes.io/component: {{ .Values.controller.component }}
{{- include "argo-rollouts.labels" . | nindent 4 }}
rules:
{{- include "argo-rollouts.controller.roleRules" . | nindent 2 }}
{{- end }}