diff --git a/charts/jumpserver/templates/pre-install-initdb.yaml b/charts/jumpserver/templates/pre-install-initdb.yaml index decef63..1aff33a 100644 --- a/charts/jumpserver/templates/pre-install-initdb.yaml +++ b/charts/jumpserver/templates/pre-install-initdb.yaml @@ -3,9 +3,10 @@ {{- $containerName := "jms-init-db" }} {{- $registryName := $.Values.global.imageRegistry | default .image.registry }} {{- $imageOwner := $.Values.global.imageOwner | default "jumpserver" }} -{{- $imageName := $.Values.xpack.enabled | ternary "core-ee" "core-ce" }} +{{- $imageName := "core" }} {{- $imageTag := $.Chart.AppVersion }} -{{- $imageWithTag := printf "%s/%s/%s:%s" $registryName $imageOwner $imageName $imageTag | quote }} +{{- $imageSuffix := $.Values.xpack.enabled | ternary "ee" "ce" }} +{{- $imageWithTag := printf "%s/%s/%s:v%s-%s" $registryName $imageOwner $imageName $imageTag $imageSuffix | quote }} apiVersion: batch/v1 kind: Job