operator
operator copied to clipboard
Can't create Helm chart serviceAccount annotations
Installing Tekton Operator chart from the release link, I'm trying to set annotations for the serviceAccount but it isn't working as expected. Passing the following values to a helm install won't create the annotations:
rbac:
create: true
annotations:
test: true
the rbac.yaml template expect the annotations to be nested inside rbac.serviceAccount
:
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ include "tekton-operator.serviceAccountName" . }}
labels:
{{- include "tekton-operator.labels" . | nindent 4 }}
{{- with .Values.rbac.serviceAccount.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
Also, changing rbac.serviceAccount.name
here makes the operator fail as the service account name is not readed in the ClusterRoleBinding