@@ -7,39 +7,39 @@ metadata:
77 name : " {{ $fullName }}-kubeadm-tasks"
88 labels :
99 app : " {{ $fullName }}-kubeadm-tasks"
10- {{- with .Values.admin.job. labels }}
10+ {{- with .Values.admin.labels }}
1111 {{- toYaml . | nindent 4 }}
1212 {{- end }}
1313 annotations :
1414 helm.sh/hook : post-install,post-upgrade
1515 helm.sh/hook-delete-policy : before-hook-creation
1616 checksum/config : {{ include (print $.Template.BasePath "/kubeadm-config.yaml") . | sha256sum }}
1717 checksum/scripts : {{ include (print $.Template.BasePath "/kubeadm-scripts.yaml") . | sha256sum }}
18- {{- with .Values.admin.job. annotations }}
18+ {{- with .Values.admin.annotations }}
1919 {{- toYaml . | nindent 4 }}
2020 {{- end }}
2121spec :
2222 template :
2323 metadata :
2424 labels :
2525 app : " {{ $fullName }}-kubeadm-tasks"
26- {{- with .Values.admin.job. podLabels }}
26+ {{- with .Values.admin.podLabels }}
2727 {{- toYaml . | nindent 8 }}
2828 {{- end }}
29- {{- with .Values.admin.job. podAnnotations }}
29+ {{- with .Values.admin.podAnnotations }}
3030 annotations :
3131 {{- toYaml . | nindent 8 }}
3232 {{- end }}
3333 spec :
34- {{- with .Values.admin.job. nodeSelector }}
34+ {{- with .Values.admin.nodeSelector }}
3535 nodeSelector :
3636 {{- toYaml . | nindent 8 }}
3737 {{- end }}
38- {{- with .Values.admin.job. tolerations }}
38+ {{- with .Values.admin.tolerations }}
3939 tolerations :
4040 {{- toYaml . | nindent 6 }}
4141 {{- end }}
42- {{- with .Values.admin.job. affinity }}
42+ {{- with .Values.admin.affinity }}
4343 affinity :
4444 {{- toYaml . | nindent 8 }}
4545 {{- end }}
5959 env :
6060 - name : KUBECONFIG
6161 value : " /etc/kubernetes/admin.conf"
62- {{- with .Values.admin.job. extraEnv }}
62+ {{- with .Values.admin.extraEnv }}
6363 {{- toYaml . | nindent 8 }}
6464 {{- end }}
6565 volumeMounts :
0 commit comments