4 name: {{ include "common.fullname" . }}-post-install
5 namespace: {{ include "common.namespace" . }}
6 labels: {{- include "common.labels" . | nindent 4 }}
8 # This is what defines this resource as a hook. Without this line, the
9 # job is considered part of the release.
10 "helm.sh/hook": post-install
11 "helm.sh/hook-weight": "-5"
12 "helm.sh/hook-delete-policy": hook-succeeded
15 metadata: {{- include "common.templateMetadata" . | nindent 6 }}
19 - name: post-install-job
20 image: "{{ include "common.repository" . }}/{{ .Values.global.clientImage }}"
21 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
26 {{- if (include "common.needTLS" .) }}
36 value: "{{.Chart.Name}}-post-install"
38 - mountPath: /etc/localtime
42 # NOTE: on the following several configMaps, careful to include / at end
43 # since there may be more than one file in each mountPath
44 # NOTE: the basename of the subdirectory of mountPath is important - it matches the DBCL API URI
45 - name: {{ include "common.fullname" . }}-dbc-dmaap
46 mountPath: /opt/app/config/dmaap/
47 - name: {{ include "common.fullname" . }}-dbc-dcaelocations
48 mountPath: /opt/app/config/dcaeLocations/
49 resources: {{ include "common.resources" . | nindent 10 }}
50 {{- if .Values.nodeSelector }}
51 nodeSelector: {{ toYaml .Values.nodeSelector | nindent 8 }}
53 {{- if .Values.affinity }}
54 affinity: {{ toYaml .Values.affinity | nindent 8 }}
60 - name: {{ include "common.fullname" . }}-dbc-dmaap
62 name: {{ include "common.fullname" . }}-dbc-dmaap
63 - name: {{ include "common.fullname" . }}-dbc-dcaelocations
65 name: {{ include "common.fullname" . }}-dbc-dcaelocations
67 - name: "{{ include "common.namespace" . }}-docker-registry-key"