Bug: Custom created ServiceAccount does not get Helm annotations
Problem
We create a service account via .gitlab/auto-deploy-values.yaml
with the following content:
serviceAccount:
name: custom-295-serviceaccount-production
createNew: true
annotations:
eks.amazonaws.com/role-arn: "arn:aws:iam::XXXX:role/product-role
When running the staging job we get an error because the newly created sa custom-295-serviceaccount-production
does not have the correct Helm label and annotations.
When adding the annotations to the .gitlab/auto-deploy.vales.yaml
we get the same error.
When inspecting the sa via kubectl we can infact see that no annotations are applied.
I'd expect the created SA to have the Helm specific annotations and labels, when created through helm via the auto deploy chart.
Current used Version: 2.16.0
Proposal
Add a metadata.labels
with {{ include "sharedlabels" . | indent 4 }}
in serviceaccount.yaml
.
Edited by Hordur Freyr Yngvason