This commit makes A1 Policy Management 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: I862bb425b05e152c669f8ff6ecbe34c96af4f6e7
- name: common
version: ~6.x-0
repository: '@local'
- name: common
version: ~6.x-0
repository: '@local'
+ - name: repositoryGenerator
+ version: ~6.x-0
+ repository: '@local'
\ No newline at end of file
spec:
initContainers:
- name: {{ include "common.name" . }}-bootstrap-config
spec:
initContainers:
- name: {{ include "common.name" . }}-bootstrap-config
- image: "{{ .Values.global.envsubstImage }}"
+ image: {{ include "repositoryGenerator.image.envsubst" . }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
- sh
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
command:
- sh
- mountPath: /config
name: config
- name: {{ include "common.name" . }}
- mountPath: /config
name: config
- name: {{ include "common.name" . }}
- image: {{ include "common.repository" . }}/{{ .Values.image }}
+ image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
ports: {{ include "common.containerPorts" . | nindent 10 }}
readinessProbe:
imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
ports: {{ include "common.containerPorts" . | nindent 10 }}
readinessProbe:
# Declare variables to be passed into your templates.
global:
# Declare variables to be passed into your templates.
global:
- nodePortPrefix: 300
- envsubstImage: dibi/envsubst:1
secrets:
- uid: controller-secret
secrets:
- uid: controller-secret
password: '{{ .Values.a1controller.password }}'
passwordPolicy: required
password: '{{ .Values.a1controller.password }}'
passwordPolicy: required
-repository: nexus3.onap.org:10001
image: onap/ccsdk-oran-a1policymanagementservice:1.0.1
userID: 1000 #Should match with image-defined user ID
groupID: 999 #Should match with image-defined group ID
image: onap/ccsdk-oran-a1policymanagementservice:1.0.1
userID: 1000 #Should match with image-defined user ID
groupID: 999 #Should match with image-defined group ID