Add support for image.digest #444

Merged
pat-s merged 13 commits from refs/pull/444/head into main 2023-09-09 15:36:20 +00:00
Showing only changes of commit 2179ba4ef8 - Show all commits

View File

@@ -39,12 +39,12 @@ Create image name and tag used by the deployment.
{{- $repository := .Values.image.repository -}}
{{- $separator := ":" -}}
{{- $tag := .Values.image.tag | default .Chart.AppVersion -}}
{{- if .Values.image.digest -}}
{{- if .Values.image.digest }}
{{- $separator = "@" -}}
{{- $tag = .Values.image.digest | toString -}}
{{- end -}}
{{- $rootless := ternary "-rootless" "" (.Values.image.rootless) -}}
{{- if $registry -}}
{{- if $registry }}
{{- printf "%s/%s%s%s%s" $registry $repository $separator $tag $rootless -}}
{{- else -}}
{{- printf "%s%s%s%s" $repository $separator $tag $rootless -}}
@@ -83,7 +83,7 @@ Common labels
helm.sh/chart: {{ include "gitea.chart" . }}
app: {{ include "gitea.name" . }}
{{ include "gitea.selectorLabels" . }}
{{- if .Values.image.digest -}}
{{- if .Values.image.digest }}
app.kubernetes.io/version: {{ .Values.image.digest | default .Chart.AppVersion | quote }}
version: {{ .Values.image.digest | default .Chart.AppVersion | quote }}
{{- else -}}