[common] Make sure that we declare repository in certInitializer 59/108659/1
authorKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 2 Jun 2020 09:50:12 +0000 (11:50 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 2 Jun 2020 09:50:12 +0000 (11:50 +0200)
Not all components declare repository in the global section which may
lead to some error when processing just a single component instead of
whole onap. To avoid this let's make sure that cerInitializer sets
repository url internally.

Issue-ID: OOM-2416
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Change-Id: I4fd2a235b188c7ee09d0173dbaa873141187a077

kubernetes/common/certInitializer/templates/_certInitializer.yaml
kubernetes/common/certInitializer/values.yaml

index eddc7bc..9c744f3 100644 (file)
@@ -61,7 +61,7 @@
         apiVersion: v1
         fieldPath: metadata.namespace
 - name: {{ include "common.name" $dot }}-aaf-config
-  image: {{ (default $subchartDot.Values.repository $subchartDot.Values.global.repository) }}/{{ $subchartDot.Values.global.aafAgentImage }}
+  image: {{ include "common.repository" $subchartDot }}/{{ $subchartDot.Values.global.aafAgentImage }}
   imagePullPolicy: {{ $subchartDot.Values.global.pullPolicy | default $subchartDot.Values.pullPolicy }}
   volumeMounts:
   - mountPath: {{ $initRoot.mountPath }}
index b55ba5e..fdee4c9 100644 (file)
@@ -15,6 +15,7 @@
 global:
   readinessRepository: oomk8s
   readinessImage: readiness-check:2.0.2
+  repository: nexus3.onap.org:10001
   aafAgentImage: onap/aaf/aaf_agent:2.1.20
   aafEnabled: true