4 name: {{ include "common.fullname" . }}-post-install
6 app.kubernetes.io/managed-by: {{.Release.Service | quote }}
7 app.kubernetes.io/instance: {{.Release.Name | quote }}
8 helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
10 # This is what defines this resource as a hook. Without this line, the
11 # job is considered part of the release.
12 "helm.sh/hook": post-install
13 "helm.sh/hook-weight": "-3"
14 "helm.sh/hook-delete-policy": hook-succeeded
18 name: {{ include "common.fullname" . }}
20 app.kubernetes.io/managed-by: {{.Release.Service | quote }}
21 app.kubernetes.io/instance: {{.Release.Name | quote }}
22 helm.sh/chart: "{{.Chart.Name}}-{{.Chart.Version}}"
26 - name: post-install-job
27 image: "{{ include "common.repository" . }}/{{ .Values.global.clientImage }}"
28 imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
37 value: "{{.Chart.Name}}-post-install"
40 - mountPath: /etc/localtime
44 # NOTE: on the following several configMaps, careful to include / at end
45 # since there may be more than one file in each mountPath
46 # NOTE: the basename of the subdirectory is important - it matches the DBCL API URI
47 - name: {{ include "common.fullname" . }}-dbc-feeds
48 mountPath: /opt/app/config/feeds/
49 - name: {{ include "common.fullname" . }}-dbc-drpubs
50 mountPath: /opt/app/config/dr_pubs/
51 - name: {{ include "common.fullname" . }}-dbc-drsubs
52 mountPath: /opt/app/config/dr_subs/
54 {{ include "common.resources" . | indent 10 }}
55 {{- if .Values.nodeSelector }}
57 {{ toYaml .Values.nodeSelector | indent 8 }}
59 {{- if .Values.affinity }}
61 {{ toYaml .Values.affinity | indent 8 }}
67 - name: {{ include "common.fullname" . }}-dbc-feeds
69 name: {{ include "common.fullname" . }}-dbc-feeds
70 - name: {{ include "common.fullname" . }}-dbc-drpubs
72 name: {{ include "common.fullname" . }}-dbc-drpubs
73 - name: {{ include "common.fullname" . }}-dbc-drsubs
75 name: {{ include "common.fullname" . }}-dbc-drsubs
77 - name: "{{ include "common.namespace" . }}-docker-registry-key"