Problem with Dgraph helm chart serviceAccount creation

I have tested this feature using IRSA (thus the annotation) with the most recent chart (example below). What Kubernetes version are you using?

Let me try this out with those versions and see if I can find anything.

For example, here’s an installation I did recently.

cat <<-EOF > my_dgraph_config.yaml
fullnameOverride: my-dgraph
image:
  tag: v23.1.0
serviceAccount:
  create: true
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::$ACCOUNT_ID:role/$ROLE_NAME
  name: dgraph
  automountServiceAccountToken: false
zero:
  automountServiceAccountToken: false
  persistence:
    storageClass: $DGRAPH_STORAGE_CLASS
    size: 32Gi
alpha:
  automountServiceAccountToken: true
  persistence:
    storageClass: $DGRAPH_STORAGE_CLASS
  resources:
    limits:
      memory: 32Gi
    requests:
      cpu: 13600m
      memory: 29Gi
  configFile:
    config.yaml: |
      security:
        whitelist: ${EKS_CIDR}
EOF

helm install my-dgraph --namespace dgraph \
  --create-namespace --values my_dgraph_config.yaml dgraph/dgraph