bugfix: 支持使用runtime单实例 (#118)

* bugfix: 支持使用runtime单实例
This commit is contained in:
hhhhsc701
2025-12-01 19:05:50 +08:00
committed by GitHub
parent bb3345268e
commit f730bd5b0c
15 changed files with 435 additions and 33 deletions

View File

@@ -18,7 +18,7 @@ Return the proper image name
{{- $termination = .imageRoot.digest | toString -}}
{{- end -}}
{{- if $registryName }}
{{- printf "%s/%s%s%s" $registryName $repositoryName $separator $termination -}}
{{- printf "%s/%s%s%s" ($registryName | trimSuffix "/") $repositoryName $separator $termination -}}
{{- else -}}
{{- printf "%s%s%s" $repositoryName $separator $termination -}}
{{- end -}}

View File

@@ -15,7 +15,8 @@ spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels: {{- include "common.labels.matchLabels" . | nindent 6 }}
strategy: {{- include "common.tplvalues.render" (dict "value" .Values.updateStrategy "context" $ ) | nindent 4 }}
strategy:
type: Recreate
template:
metadata:
labels: {{- include "common.labels.standard" . | nindent 8 }}