aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2-services/common
diff options
context:
space:
mode:
authorJack Lucas <jflos@sonoris.net>2022-08-02 09:39:34 -0400
committerJack Lucas <jflos@sonoris.net>2022-09-20 10:26:10 -0400
commit47c0745489940e5ba5c6dab7f4c75da3d9390d6e (patch)
tree62169a78f3249006ee2fd56488b7c787038b9f5d /kubernetes/dcaegen2-services/common
parent740cb1c679b52e3d4597c1211ff9b0a02bde84d4 (diff)
[DCAEGEN2-SVCS] Allow image repo override
Allow overriding the default image repository for the DCAE microservice image. Issue-ID: OOM-2978 Signed-off-by: Jack Lucas <jflos@sonoris.net> Change-Id: I7dab36db8eca6917411c8366c388082d5280e506
Diffstat (limited to 'kubernetes/dcaegen2-services/common')
-rw-r--r--kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl11
1 files changed, 9 insertions, 2 deletions
diff --git a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl
index 6c742c07de..0b076ad08b 100644
--- a/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl
+++ b/kubernetes/dcaegen2-services/common/dcaegen2-services-common/templates/_deployment.tpl
@@ -173,7 +173,14 @@ The exact content of the Deployment generated from this template
depends on the content of .Values.
The Deployment always includes a single Pod, with a container that uses
-the DCAE microservice image.
+the DCAE microservice image. The image name and tag are specified by
+.Values.image. By default, the image comes from the ONAP repository
+(registry) set up by the common repositoryGenerator template. A different
+repository for the microservice image can be set using
+.Values.imageRepositoryOverride. Note that this repository must not
+require authentication, because there is no way to specify credentials for
+the override repository. imageRepositoryOverride is intended primarily
+for testing purposes.
The Deployment Pod may also include a logging sidecar container.
The sidecar is included if .Values.log.path is set. The
@@ -271,7 +278,7 @@ spec:
{{- end }}
{{ include "dcaegen2-services-common._certPostProcessor" . | nindent 4 }}
containers:
- - image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
+ - image: {{ default ( include "repositoryGenerator.repository" . ) .Values.imageRepositoryOverride }}/{{ .Values.image }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
name: {{ include "common.name" . }}
env: