From 9c02c4f0a1d3d07491e1baaf20ec5d04133f5e2c Mon Sep 17 00:00:00 2001 From: Tigran Mkrtchyan Date: Tue, 1 Oct 2024 15:17:31 +0200 Subject: [PATCH] split mage registry and repository --- templates/door.yaml | 2 +- templates/pool.yaml | 2 +- values.yaml | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/templates/door.yaml b/templates/door.yaml index 6772a25..51475bd 100644 --- a/templates/door.yaml +++ b/templates/door.yaml @@ -19,7 +19,7 @@ spec: spec: containers: - name: dcache-door - image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + image: "{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} command: ["/run.sh", "door-svc" ] {{- if .Values.readinessProbe.enabled}} diff --git a/templates/pool.yaml b/templates/pool.yaml index f548dfe..d0d4b93 100644 --- a/templates/pool.yaml +++ b/templates/pool.yaml @@ -19,7 +19,7 @@ spec: fsGroup: 1000 containers: - name: pool - image: "{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}" + image: "{{ $.Values.image.registry }}/{{ $.Values.image.repository }}:{{ $.Values.image.tag | default $.Chart.AppVersion }}" imagePullPolicy: {{ $.Values.image.pullPolicy }} command: ["/run.sh", "pool-{{ . }}-svc"] {{- if $.Values.readinessProbe.enabled}} diff --git a/values.yaml b/values.yaml index 6d19d9c..b804300 100644 --- a/values.yaml +++ b/values.yaml @@ -1,6 +1,7 @@ image: - repository: gitlab.desy.de:5555/dcache/dcache + registry: gitlab.desy.de:5555 + repository: dcache/dcache tag: "" ## Specify a imagePullPolicy ## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'