diff --git a/charts/vantage-kubernetes-agent/templates/serviceaccount.yaml b/charts/vantage-kubernetes-agent/templates/serviceaccount.yaml index 5f6b6de..d620b1a 100644 --- a/charts/vantage-kubernetes-agent/templates/serviceaccount.yaml +++ b/charts/vantage-kubernetes-agent/templates/serviceaccount.yaml @@ -1,3 +1,4 @@ +{{- if .Values.serviceAccount.create }} apiVersion: v1 kind: ServiceAccount metadata: @@ -9,3 +10,4 @@ metadata: annotations: {{- toYaml . | nindent 4 }} {{- end }} +{{- end }} diff --git a/charts/vantage-kubernetes-agent/values.schema.json b/charts/vantage-kubernetes-agent/values.schema.json index c45aa06..015033c 100644 --- a/charts/vantage-kubernetes-agent/values.schema.json +++ b/charts/vantage-kubernetes-agent/values.schema.json @@ -209,6 +209,9 @@ "serviceAccount": { "type": "object", "properties": { + "create": { + "type": "boolean" + }, "annotations": { "type": "object" }, diff --git a/charts/vantage-kubernetes-agent/values.yaml b/charts/vantage-kubernetes-agent/values.yaml index 7d2e035..291b834 100644 --- a/charts/vantage-kubernetes-agent/values.yaml +++ b/charts/vantage-kubernetes-agent/values.yaml @@ -100,6 +100,7 @@ fullnameOverride: "" serviceAccount: + create: true annotations: {} # The name of the service account to use. # If not set and create is true, a name is generated using the fullname template