diff --git a/charts/flagger/templates/rbac.yaml b/charts/flagger/templates/rbac.yaml index cfb07ef2f..e6e048fc9 100644 --- a/charts/flagger/templates/rbac.yaml +++ b/charts/flagger/templates/rbac.yaml @@ -299,6 +299,10 @@ metadata: app.kubernetes.io/name: {{ template "flagger.name" . }} app.kubernetes.io/managed-by: {{ .Release.Service }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.rbac.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole diff --git a/charts/flagger/values.yaml b/charts/flagger/values.yaml index 5cd966a0d..e020bbd1a 100644 --- a/charts/flagger/values.yaml +++ b/charts/flagger/values.yaml @@ -129,6 +129,8 @@ rbac: create: true # rbac.pspEnabled: `true` if PodSecurityPolicy resources should be created pspEnabled: false + # rbac.annotations: Set annotations on ClusterRoleBinding + annotations: {} crd: # crd.create: `true` if custom resource definitions should be created