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