1 {{- if .Values.global.aafEnabled }}
2 # Copyright © 2020 AT&T
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.
18 name: {{ include "common.fullname" . }}-post-install
20 app.kubernetes.io/managed-by: {{.Release.Service | quote }}
21 app.kubernetes.io/instance: {{include "common.release" . | quote }}
22 helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
23 release: {{ include "common.release" . }}
25 # This is what defines this resource as a hook. Without this line, the
26 # job is considered part of the release.
27 "helm.sh/hook": post-install
28 "helm.sh/hook-weight": "-4"
29 "helm.sh/hook-delete-policy": hook-succeeded
33 name: {{ include "common.fullname" . }}
35 app.kubernetes.io/managed-by: {{.Release.Service | quote }}
36 app.kubernetes.io/instance: {{include "common.release" . | quote }}
37 helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
38 release: {{ include "common.release" . }}
42 - name: post-install-job
43 image: "{{ include "common.repository" . }}/{{ .Values.global.clientImage }}"
44 imagePullPolicy: "Always"
48 {{- if .Values.global.allow_http }}
55 value: "{{.Chart.Name}}-post-install"
57 - mountPath: /etc/localtime
61 # NOTE: on the following several configMaps, careful to include / at end
62 # since there may be more than one file in each mountPath
63 # NOTE: the basename of the subdirectory of mountPath is important - it matches the DBCL API URI
64 - name: {{ include "common.fullname" . }}-dbc-mrclusters
65 mountPath: /opt/app/config/mr_clusters/
66 - name: {{ include "common.fullname" . }}-dbc-topics
67 mountPath: /opt/app/config/topics/
69 {{ include "common.resources" . | indent 10 }}
70 {{- if .Values.nodeSelector }}
72 {{ toYaml .Values.nodeSelector | indent 8 }}
74 {{- if .Values.affinity }}
76 {{ toYaml .Values.affinity | indent 8 }}
82 - name: {{ include "common.fullname" . }}-dbc-mrclusters
84 name: {{ include "common.fullname" . }}-dbc-mrclusters
85 - name: {{ include "common.fullname" . }}-dbc-topics
87 name: {{ include "common.fullname" . }}-dbc-topics
89 - name: "{{ include "common.namespace" . }}-docker-registry-key"