2 #============LICENSE_START========================================================
3 # ================================================================================
4 # Copyright (c) 2019-2021 AT&T Intellectual Property. All rights reserved.
5 # ================================================================================
6 # Licensed under the Apache License, Version 2.0 (the "License");
7 # you may not use this file except in compliance with the License.
8 # You may obtain a copy of the License at
10 # http://www.apache.org/licenses/LICENSE-2.0
12 # Unless required by applicable law or agreed to in writing, software
13 # distributed under the License is distributed on an "AS IS" BASIS,
14 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 # See the License for the specific language governing permissions and
16 # limitations under the License.
17 # ============LICENSE_END=========================================================
22 metadata: {{- include "common.resourceMetadata" . | nindent 2 }}
25 selector: {{- include "common.selectors" . | nindent 4 }}
27 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
30 - name: {{ include "common.name" . }}
31 image: {{ include "repositoryGenerator.repository" . }}/{{ .Values.image }}
32 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
33 ports: {{ include "common.containerPorts" . | nindent 12 }}
34 {{- if eq .Values.liveness.enabled true }}
37 port: {{ .Values.liveness.port }}
38 initialDelaySeconds: {{ .Values.liveness.initialDelaySeconds }}
39 periodSeconds: {{ .Values.liveness.periodSeconds }}
43 port: {{ .Values.readiness.port }}
44 initialDelaySeconds: {{ .Values.readiness.initialDelaySeconds }}
45 periodSeconds: {{ .Values.readiness.periodSeconds }}
46 resources: {{ include "common.resources" . | nindent 12 }}
48 - mountPath: {{ .Values.config.basehelmchartlocation }}/base/values.yaml
50 name: dcae-helmgen-base
51 - mountPath: {{ .Values.config.basehelmchartlocation }}/base/Chart.yaml
53 name: dcae-helmgen-base
54 - mountPath: {{ .Values.config.basehelmchartlocation }}/base/templates
55 name: dcae-helmgen-templates
56 - mountPath: {{ .Values.config.basehelmchartlocation }}/addons/templates
57 name: dcae-helmgen-addon-templates
60 value: {{ .Values.config.dashboardURL }}
61 - name: DASHBOARD_USERNAME
62 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dashsecret" "key" "login") | indent 14 }}
63 - name: DASHBOARD_PASSWORD
64 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "dashsecret" "key" "password") | indent 14 }}
66 value: {{ .Values.config.mrTopicURL }}
67 - name: ONAP_IMPORT_CLOUDIFYPLUGIN
68 value: {{ .Values.config.importCloudify }}
69 - name: ONAP_IMPORT_K8SPLUGIN
70 value: {{ .Values.config.importK8S }}
71 - name: ONAP_IMPORT_POLICYPLUGIN
72 value: {{ .Values.config.importPolicy }}
73 - name: ONAP_IMPORT_POSTGRESPLUGIN
74 value: {{ .Values.config.importPostgres }}
75 - name: ONAP_IMPORT_CLAMPPLUGIN
76 value: {{ .Values.config.importClamp }}
77 - name: ONAP_IMPORT_DMAAPPLUGIN
78 value: {{ .Values.config.importDMaaP }}
79 - name: ONAP_USEDMAAPPLUGIN
80 value: {{ .Values.config.useDmaapPlugin | quote }}
81 - name: BP_RESOURCES_CPU_LIMIT
82 value: {{ .Values.config.bpResourcesCpuLimit }}
83 - name: BP_RESOURCES_MEMORY_LIMIT
84 value: {{ .Values.config.bpResourcesMemoryLimit }}
86 value: {{ .Values.config.artifactType }}
87 - name: CHARTMUSEUM_BASEURL
88 value: {{ .Values.config.registryBaseurl }}
89 - name: HELM_BASE_CHART_TEMPLATE_LOCATION
90 value: {{ .Values.config.basehelmchartlocation }}
91 - name: CHARTMUSEUM_AUTH_BASIC_USERNAME
92 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "registrycred" "key" "login") | indent 14 }}
93 - name: CHARTMUSEUM_AUTH_BASIC_PASSWORD
94 {{- include "common.secret.envFromSecretFast" (dict "global" . "uid" "registrycred" "key" "password") | indent 14 }}
95 serviceAccountName: {{ include "common.fullname" (dict "suffix" "read" "dot" . )}}
97 - name: "{{ include "common.namespace" . }}-docker-registry-key"
99 - name: dcae-helmgen-templates
101 name: {{ include "common.fullname" . }}-dcae-helmgen-templates
102 - name: dcae-helmgen-base
104 name: {{ include "common.fullname" . }}-dcae-helmgen-base
105 - name: dcae-helmgen-addon-templates
107 name: {{ include "common.fullname" . }}-dcae-helmgen-addons-templates