diff --git a/deployments/kubernetes/chart/reloader/templates/deployment.yaml b/deployments/kubernetes/chart/reloader/templates/deployment.yaml index 6e44f7d6b..9dd4f9d4d 100644 --- a/deployments/kubernetes/chart/reloader/templates/deployment.yaml +++ b/deployments/kubernetes/chart/reloader/templates/deployment.yaml @@ -73,7 +73,11 @@ spec: priorityClassName: {{ .Values.reloader.deployment.priorityClassName }} {{- end }} containers: + {{- if $.Values.global.imageRegistry }} + - image: "{{ $.Values.global.imageRegistry }}/{{ .Values.reloader.deployment.image.base }}:{{ .Values.reloader.deployment.image.tag }}" +{{- else }} - image: "{{ .Values.reloader.deployment.image.name }}:{{ .Values.reloader.deployment.image.tag }}" +{{- end }} imagePullPolicy: {{ .Values.reloader.deployment.image.pullPolicy }} name: {{ template "reloader-fullname" . }} env: diff --git a/deployments/kubernetes/chart/reloader/values.yaml b/deployments/kubernetes/chart/reloader/values.yaml index a3eb5959a..ae6ff466e 100644 --- a/deployments/kubernetes/chart/reloader/values.yaml +++ b/deployments/kubernetes/chart/reloader/values.yaml @@ -3,6 +3,7 @@ global: ## Reference to one or more secrets to be used when pulling images ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ ## + imageRegistry: "" imagePullSecrets: [] kubernetes: @@ -95,6 +96,7 @@ reloader: version: v1.0.121 image: name: ghcr.io/stakater/reloader + base: stakater/reloader tag: v1.0.121 pullPolicy: IfNotPresent # Support for extra environment variables.