diff --git a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml index 36f3d347b..0c51f4a5f 100644 --- a/cmd/k8s-operator/deploy/chart/templates/deployment.yaml +++ b/cmd/k8s-operator/deploy/chart/templates/deployment.yaml @@ -49,7 +49,7 @@ spec: {{- toYaml . | nindent 12 }} {{- end }} {{- $operatorTag:= printf ":%s" ( .Values.operatorConfig.image.tag | default .Chart.AppVersion )}} - image: {{ .Values.operatorConfig.image.repo }}{{- if .Values.operatorConfig.image.digest -}}{{ printf "@%s" .Values.operatorConfig.image.digest}}{{- else -}}{{ printf "%s" $operatorTag }}{{- end }} + image: {{ coalesce .Values.operatorConfig.image.repo .Values.operatorConfig.image.repository }}{{- if .Values.operatorConfig.image.digest -}}{{ printf "@%s" .Values.operatorConfig.image.digest}}{{- else -}}{{ printf "%s" $operatorTag }}{{- end }} imagePullPolicy: {{ .Values.operatorConfig.image.pullPolicy }} env: - name: OPERATOR_INITIAL_TAGS @@ -70,7 +70,7 @@ spec: value: /oauth/client_secret {{- $proxyTag := printf ":%s" ( .Values.proxyConfig.image.tag | default .Chart.AppVersion )}} - name: PROXY_IMAGE - value: {{ .Values.proxyConfig.image.repo }}{{- if .Values.proxyConfig.image.digest -}}{{ printf "@%s" .Values.proxyConfig.image.digest}}{{- else -}}{{ printf "%s" $proxyTag }}{{- end }} + value: {{ coalesce .Values.proxyConfig.image.repo .Values.proxyConfig.image.repository }}{{- if .Values.proxyConfig.image.digest -}}{{ printf "@%s" .Values.proxyConfig.image.digest}}{{- else -}}{{ printf "%s" $proxyTag }}{{- end }} - name: PROXY_TAGS value: {{ .Values.proxyConfig.defaultTags }} - name: APISERVER_PROXY diff --git a/cmd/k8s-operator/deploy/chart/values.yaml b/cmd/k8s-operator/deploy/chart/values.yaml index 074ccd822..9862ed5f7 100644 --- a/cmd/k8s-operator/deploy/chart/values.yaml +++ b/cmd/k8s-operator/deploy/chart/values.yaml @@ -23,7 +23,7 @@ operatorConfig: - "tag:k8s-operator" image: - repo: tailscale/k8s-operator + repository: tailscale/k8s-operator # Digest will be prioritized over tag. If neither are set appVersion will be # used. tag: "" @@ -57,7 +57,7 @@ operatorConfig: # https://tailscale.com/kb/1236/kubernetes-operator#cluster-resource-customization-using-proxyclass-custom-resource proxyConfig: image: - repo: tailscale/tailscale + repository: tailscale/tailscale # Digest will be prioritized over tag. If neither are set appVersion will be # used. tag: ""