UPdate teleport to version 17
This commit is contained in:
@@ -6,10 +6,48 @@ if serviceAccount is not defined or serviceAccount.name is empty, use .Release.N
|
||||
{{- coalesce .Values.serviceAccount.name .Release.Name -}}
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use in the auth config check hook.
|
||||
|
||||
If the chart is creating service accounts, we know we can create new arbitrary service accounts.
|
||||
We cannot reuse the same name as the deployment SA because the non-hook service account might
|
||||
not exist yet. We tried being smart with hooks but ArgoCD doesn't differentiate between install
|
||||
and upgrade, causing various issues on update and eventually forcing us to use a separate SA.
|
||||
|
||||
If the chart is not creating service accounts, for backward compatibility we don't want
|
||||
to force new service account names to existing chart users. We know the SA should already exist,
|
||||
so we can use the same SA for deployments and hooks.
|
||||
*/}}
|
||||
{{- define "teleport-cluster.auth.hookServiceAccountName" -}}
|
||||
{{- include "teleport-cluster.auth.serviceAccountName" . -}}
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
-hook
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "teleport-cluster.proxy.serviceAccountName" -}}
|
||||
{{- coalesce .Values.serviceAccount.name .Release.Name -}}-proxy
|
||||
{{- end -}}
|
||||
|
||||
{{/*
|
||||
Create the name of the service account to use in the proxy config check hook.
|
||||
|
||||
If the chart is creating service accounts, we know we can create new arbitrary service accounts.
|
||||
We cannot reuse the same name as the deployment SA because the non-hook service account might
|
||||
not exist yet. We tried being smart with hooks but ArgoCD doesn't differentiate between install
|
||||
and upgrade, causing various issues on update and eventually forcing us to use a separate SA.
|
||||
|
||||
If the chart is not creating service accounts, for backward compatibility we don't want
|
||||
to force new service account names to existing chart users. We know the SA should already exist,
|
||||
so we can use the same SA for deployments and hooks.
|
||||
*/}}
|
||||
{{- define "teleport-cluster.proxy.hookServiceAccountName" -}}
|
||||
{{- include "teleport-cluster.proxy.serviceAccountName" . -}}
|
||||
{{- if .Values.serviceAccount.create -}}
|
||||
-hook
|
||||
{{- end -}}
|
||||
{{- end -}}
|
||||
|
||||
{{- define "teleport-cluster.version" -}}
|
||||
{{- coalesce .Values.teleportVersionOverride .Chart.Version }}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user