From bd3e8b0d09fcf943b500920347070ec42ff4bf92 Mon Sep 17 00:00:00 2001 From: sausrivastava Date: Tue, 17 Sep 2024 12:19:51 +0530 Subject: [PATCH 1/2] Support global.imageRegistry for reloader image --- .../kubernetes/chart/reloader/templates/deployment.yaml | 4 ++++ deployments/kubernetes/chart/reloader/values.yaml | 2 ++ 2 files changed, 6 insertions(+) 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..258c7be7a 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: @@ -91,6 +92,7 @@ reloader: annotations: {} labels: provider: stakater + base: stakater/reloader group: com.stakater.platform version: v1.0.121 image: From 3981623ec2b5c706475eb1760d883dada439d0a7 Mon Sep 17 00:00:00 2001 From: sausrivastava Date: Thu, 24 Oct 2024 09:48:21 +0530 Subject: [PATCH 2/2] Update values.yaml for base --- deployments/kubernetes/chart/reloader/values.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deployments/kubernetes/chart/reloader/values.yaml b/deployments/kubernetes/chart/reloader/values.yaml index 258c7be7a..ae6ff466e 100644 --- a/deployments/kubernetes/chart/reloader/values.yaml +++ b/deployments/kubernetes/chart/reloader/values.yaml @@ -92,11 +92,11 @@ reloader: annotations: {} labels: provider: stakater - base: stakater/reloader group: com.stakater.platform version: v1.0.121 image: name: ghcr.io/stakater/reloader + base: stakater/reloader tag: v1.0.121 pullPolicy: IfNotPresent # Support for extra environment variables.