diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2020-06-02 11:50:12 +0200 |
---|---|---|
committer | Konrad Banka <k.banka@samsung.com> | 2020-06-03 05:22:11 +0000 |
commit | ce0d76b9c1997d1173280e238fed7e586af7fc26 (patch) | |
tree | f532a0dd8093bc2882b32dcff876f940b9bfcece /kubernetes/common | |
parent | 189997b63f16b12cbb9534b37da42339a2c5f955 (diff) |
[common] Make sure that we declare repository in certInitializer
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
(cherry picked from commit 1b6861577c9b0a67e14ce70b1ddecc2e70db88ca)
Diffstat (limited to 'kubernetes/common')
-rw-r--r-- | kubernetes/common/certInitializer/templates/_certInitializer.yaml | 2 | ||||
-rw-r--r-- | kubernetes/common/certInitializer/values.yaml | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/kubernetes/common/certInitializer/templates/_certInitializer.yaml b/kubernetes/common/certInitializer/templates/_certInitializer.yaml index 33f06495cc..7cf3ba6795 100644 --- a/kubernetes/common/certInitializer/templates/_certInitializer.yaml +++ b/kubernetes/common/certInitializer/templates/_certInitializer.yaml @@ -62,7 +62,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 }} diff --git a/kubernetes/common/certInitializer/values.yaml b/kubernetes/common/certInitializer/values.yaml index b55ba5e2f3..fdee4c9bd2 100644 --- a/kubernetes/common/certInitializer/values.yaml +++ b/kubernetes/common/certInitializer/values.yaml @@ -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 |