2 # Copyright © 2018 AT&T, Amdocs, Bell Canada
4 # Licensed under the Apache License, Version 2.0 (the "License");
5 # you may not use this file except in compliance with the License.
6 # You may obtain a copy of the License at
8 # http://www.apache.org/licenses/LICENSE-2.0
10 # Unless required by applicable law or agreed to in writing, software
11 # distributed under the License is distributed on an "AS IS" BASIS,
12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 # See the License for the specific language governing permissions and
14 # limitations under the License.
19 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
21 selector: {{- include "common.selectors" . | nindent 4 }}
22 replicas: {{ .Values.replicaCount }}
24 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
31 - "cd /config-input && for PFILE in `ls -1 .`; do envsubst <${PFILE} >/config/${PFILE}; done"
34 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "login") | indent 10 }}
36 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "db-user-creds" "key" "password") | indent 10 }}
38 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "http-user-creds" "key" "login") | indent 10 }}
40 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "http-user-creds" "key" "password") | indent 10 }}
41 - name: HTTP_ADMIN_USER
42 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "admin-creds" "key" "login") | indent 10 }}
43 - name: HTTP_ADMIN_PASSWORD
44 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "admin-creds" "key" "password") | indent 10 }}
45 - name: HTTP_NODE_USER
46 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "node-creds" "key" "login") | indent 10 }}
47 - name: HTTP_NODE_PASSWORD
48 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "node-creds" "key" "password") | indent 10 }}
49 - name: REST_CONF_USER
50 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restconf-creds" "key" "login") | indent 10 }}
51 - name: REST_CONF_PASSWORD
52 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "restconf-creds" "key" "password") | indent 10 }}
54 - mountPath: /config-input
58 image: {{ include "repositoryGenerator.image.envsubst" . }}
59 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
60 name: {{ include "common.name" . }}-update-config
65 - {{ .Values.config.dbPodName }}
71 fieldPath: metadata.namespace
72 image: {{ include "repositoryGenerator.image.readiness" . }}
73 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
74 name: {{ include "common.name" . }}-readiness
76 - name: {{ include "common.name" . }}
77 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
78 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
79 command: ["/bin/bash"]
80 args: ["-c", "cd /opt/onap/ccsdk/dgbuilder/ && ./start.sh sdnc1.0 && wait"]
81 ports: {{- include "common.containerPorts" . | indent 10 }}
84 port: {{ .Values.service.internalPort }}
85 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
86 periodSeconds: {{ .Values.readiness.periodSeconds }}
88 - name: SDNC_CONFIG_DIR
89 value: /opt/onap/sdnc/data/properties
91 - mountPath: /etc/localtime
95 mountPath: /opt/app/application.properties
96 subPath: application.properties
98 mountPath: /opt/onap/ccsdk/dgbuilder/releases/sdnc1.0/conf/svclogic.properties
99 subPath: svclogic.properties
101 mountPath: /opt/onap/ccsdk/dgbuilder/svclogic/svclogic.properties
102 subPath: svclogic.properties
104 mountPath: /opt/onap/ccsdk/dgbuilder/releases/sdnc1.0/customSettings.js
105 subPath: customSettings.js
106 resources: {{ include "common.resources" . | nindent 12 }}
107 {{- if .Values.nodeSelector }}
109 {{ toYaml .Values.nodeSelector | indent 10 }}
111 {{- if .Values.affinity }}
113 {{ toYaml .Values.affinity | indent 10 }}
115 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
122 name: {{ include "common.fullname" . }}-config
127 - name: "{{ include "common.namespace" . }}-docker-registry-key"