fix: 修正初始化镜像

This commit is contained in:
吴小白
2024-07-05 17:48:41 +08:00
parent 0780190f7f
commit 2b9151c3b0

View File

@@ -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