external-secrets/kubernetes-external-secrets

how to define service account annotations in values file

vspherewithtanzu opened this issue · 4 comments

values.yaml file content
annotations:
"eks.amazonaws.com/role-arn":'arn:aws:iam::1111111:role/k8s-external-secrets'

I am getting following error:-

Error: failed to parse values.yaml: error converting YAML to JSON: yaml: line 118: did not find expected key

Should be under serviceAccount.annotations, double check the indentation

serviceAccount:
# Specifies whether a service account should be created
create: true
# Specifies annotations for this service account
annotations: {}

this section doesn't work

  annotations: 
    iam.gke.io/gcp-service-account: cluster-sa@gke2-318614.iam.gserviceaccount.com
  

in template it work,

` helm template charts/kubernetes-external-secrets/ -f values/external-secret.yaml | grep -6  cluster
apiVersion: v1
kind: ServiceAccount
metadata:
  name: RELEASE-NAME-kubernetes-external-secrets
  namespace: "kube-infra"
  annotations: 
    iam.gke.io/gcp-service-account: cluster-sa@gke2-318614.iam.gserviceaccount.com
  labels:
    app.kubernetes.io/name: kubernetes-external-secrets
    helm.sh/chart: kubernetes-external-secrets-8.2.2
    app.kubernetes.io/instance: RELEASE-NAME
    app.kubernetes.io/managed-by: Helm

---`

but on account nothing.

metadata:
  annotations:
    meta.helm.sh/release-name: esm
    meta.helm.sh/release-namespace: kube-infra
  creationTimestamp: "2021-08-13T09:58:06Z"
  labels:
    app.kubernetes.io/instance: esm
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: kubernetes-external-secrets
    helm.sh/chart: kubernetes-external-secrets-8.2.3
  name: esm-kubernetes-external-secrets
  namespace: kube-infra

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 30 days.

This issue was closed because it has been stalled for 30 days with no activity.