Is it possible to prevent helm from creating/upgrading a resource (e.g a serviceAccount) if it has been already created? I am trying to deploy multiple versions of my chart helm (using variable substitution), but this service account is generic and should be used by all versions.
apiVersion: v1
kind: ServiceAccount
metadata:
annotations:
iam.gke.io/gcp-service-account: my-k8s-cluster@my-gcp-project.iam.gserviceaccount.com
labels:
app: {{ template "app.name" . }}
name: {{ template "app.name" . }}-{{ .Values.environment }}-service-account
namespace: {{ template "app.name" . }}
I am getting and error because I named the deployment after a specific version so meta.helm.sh/release-name what has been already deployed before.