Add teleport agent update

This commit is contained in:
Jonny Ervine
2024-08-15 22:45:43 +08:00
parent c0d65a0afb
commit b76e232ac2
143 changed files with 15355 additions and 676 deletions
@@ -0,0 +1,16 @@
{{- if .Values.updater.enabled -}}
{{- $updater := mustMergeOverwrite (mustDeepCopy .Values) .Values.updater -}}
{{- if $updater.serviceAccount.create -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: {{ template "teleport-kube-agent-updater.serviceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- if $updater.extraLabels.serviceAccount }}
labels: {{- toYaml $updater.extraLabels.serviceAccount | nindent 4 }}
{{- end }}
{{- if $updater.annotations.serviceAccount }}
annotations: {{- toYaml $updater.annotations.serviceAccount | nindent 4 }}
{{- end -}}
{{- end -}}
{{- end -}}