[SNIRO] Uses new tpls for repos / images 31/115131/3
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>
Thu, 19 Nov 2020 16:42:15 +0000 (17:42 +0100)
committerSylvain Desbureaux <sylvain.desbureaux@orange.com>
Sat, 21 Nov 2020 16:43:32 +0000 (16:43 +0000)
This commit makes SNIRO emulator 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: I3dac5500ce44920bf686f4ff3ea8e9ffb430bf75

kubernetes/sniro-emulator/requirements.yaml
kubernetes/sniro-emulator/templates/deployment.yaml
kubernetes/sniro-emulator/values.yaml

index e85005b..a72069f 100644 (file)
@@ -19,3 +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: ~6.x-0
+    repository: '@local'
index ed07bb6..0dff4eb 100644 (file)
@@ -38,7 +38,7 @@ spec:
     spec:
       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 }}
index e81481d..81ce818 100644 (file)
@@ -19,7 +19,6 @@ global: # global defaults
   nodePortPrefix: 302
 
 # application image
-repository: nexus3.onap.org:10001
 image: onap/sniroemulator:1.0.0
 pullPolicy: IfNotPresent