[ROBOT] Uses new tpls for repos / images 38/116238/1
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 9 Dec 2020 07:13:09 +0000 (08:13 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Wed, 9 Dec 2020 07:14:23 +0000 (08:14 +0100)
This commit makes Robot chart to use the new generator for repositories and
images.

Issue-ID: OOM-2364
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I7e29b4178a84b27c2fa98d1ae3de6f2635f3b19a

kubernetes/robot/requirements.yaml
kubernetes/robot/templates/deployment.yaml

index cac9ba5..1e08aaf 100644 (file)
@@ -19,4 +19,6 @@ dependencies:
     # a part of this chart's package and will not
     # be published independently to a repo (at this point)
     repository: '@local'
-
+  - name: repositoryGenerator
+    version: ~7.x-0
+    repository: '@local'
index a466189..7d588e4 100644 (file)
@@ -47,7 +47,7 @@ spec:
         - "so-monitoring"
       containers:
       - name: {{ include "common.name" . }}
-        image: "{{ include "common.repository" . }}/{{ .Values.image }}"
+        image: "{{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         ports:
         - containerPort: {{ .Values.service.internalPort }}