operator icon indicating copy to clipboard operation
operator copied to clipboard

Can't create Helm chart serviceAccount annotations

Open cizara opened this issue 1 year ago • 1 comments

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 }}

cizara avatar Sep 13 '22 10:09 cizara

Also, changing rbac.serviceAccount.name here makes the operator fail as the service account name is not readed in the ClusterRoleBinding

cizara avatar Sep 13 '22 16:09 cizara