diff --git a/deploy/templates/deployment_manager.yaml b/deploy/templates/deployment_manager.yaml index 1f0a68fa..b1f39f9c 100644 --- a/deploy/templates/deployment_manager.yaml +++ b/deploy/templates/deployment_manager.yaml @@ -33,7 +33,11 @@ spec: {{- if not .Values.registry.tls.enabled }} - --oci-registry-insecure-skip-verify {{- end }} + {{- if .Values.manager.image.fullyQualifiedImageName }} + image: "{{ .Values.manager.image.fullyQualifiedImageName }}" + {{- else }} image: "{{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag | default .Chart.AppVersion }}" + {{- end }} name: manager imagePullPolicy: {{ .Values.manager.image.pullPolicy }} {{- if .Values.registry.tls.enabled }} diff --git a/deploy/templates/deployment_registry.yaml b/deploy/templates/deployment_registry.yaml index 47376647..a795e555 100644 --- a/deploy/templates/deployment_registry.yaml +++ b/deploy/templates/deployment_registry.yaml @@ -19,7 +19,11 @@ spec: enableServiceLinks: true containers: - name: registry + {{- if .Values.registry.image.fullyQualifiedImageName }} + image: "{{ .Values.registry.image.fullyQualifiedImageName }}" + {{- else }} image: "{{ .Values.registry.image.repository }}:{{ .Values.registry.image.tag }}" + {{- end }} imagePullPolicy: {{ .Values.registry.image.pullPolicy }} ports: - containerPort: 5000 diff --git a/deploy/values.yaml b/deploy/values.yaml index a5692d74..a31d9592 100644 --- a/deploy/values.yaml +++ b/deploy/values.yaml @@ -21,6 +21,9 @@ registry: pullPolicy: IfNotPresent tag: 3 imagePullSecrets: + # A fully qualified image should be with format [registry_hostname[:port]/][namespace/]repository_name[:tag|@digest] + # If set, it will override the repository and tag above + fullyQualifiedImageName: "" address: registry.ocm-system.svc.cluster.local:5000 tls: enabled: true @@ -59,6 +62,9 @@ manager: # Overrides the image tag whose default is the chart appVersion. tag: "" imagePullSecrets: + # A fully qualified image should be with format [registry_hostname[:port]/][namespace/]repository_name[:tag|@digest] + # If set, it will override the repository and tag above + fullyQualifiedImageName: "" volumeMounts: - mountPath: "/etc/ssl/certs/registry-root.pem" subPath: "registry-root.pem"