@@ -43,56 +43,56 @@ spec:
43
43
{{- toYaml . | nindent 8 }}
44
44
{{- end }}
45
45
spec :
46
- {{- with $.Values.imagePullSecrets }}
46
+ {{- with $.Values.imagePullSecrets }}
47
47
imagePullSecrets :
48
48
{{- toYaml . | nindent 8 }}
49
- {{- end }}
49
+ {{- end }}
50
50
serviceAccountName : {{ include "hydra.job.serviceAccountName" $ }}
51
51
automountServiceAccountToken : {{ $.Values.job.automountServiceAccountToken }}
52
52
containers :
53
- - name : {{ $.Chart.Name }}-{{ $jobName }}
54
- image : " {{ $.Values.image.repository }}:{{ $.Values.image.tag }}"
55
- imagePullPolicy : {{ $.Values.image.pullPolicy }}
56
- {{- if $job.customCommand }}
57
- command : {{- toYaml $job.customCommand | nindent 10 }}
58
- {{- else }}
59
- command : ["hydra"]
60
- {{- end }}
61
- args : {{- toYaml $job.customArgs | nindent 10 }}
62
- env :
63
- {{- if not (empty ( include "hydra.dsn" $ )) }}
64
- {{- if not (include "ory.extraEnvContainsEnvName" (list $migrationExtraEnv "DSN")) }}
65
- - name : DSN
66
- valueFrom :
67
- secretKeyRef :
68
- name : {{ include "hydra.secretname" $ }}
69
- key : dsn
70
- {{- end }}
71
- {{- end }}
72
- {{- with $migrationExtraEnv }}
73
- {{- toYaml . | nindent 10 }}
53
+ - name : {{ $.Chart.Name }}-{{ $jobName }}
54
+ image : " {{ $.Values.image.repository }}:{{ $.Values.image.tag }}"
55
+ imagePullPolicy : {{ $.Values.image.pullPolicy }}
56
+ {{- if $job.customCommand }}
57
+ command : {{- toYaml $job.customCommand | nindent 10 }}
58
+ {{- else }}
59
+ command : ["hydra"]
60
+ {{- end }}
61
+ args : {{- toYaml $job.customArgs | nindent 10 }}
62
+ env :
63
+ {{- if not (empty ( include "hydra.dsn" $ )) }}
64
+ {{- if not (include "ory.extraEnvContainsEnvName" (list $migrationExtraEnv "DSN")) }}
65
+ - name : DSN
66
+ valueFrom :
67
+ secretKeyRef :
68
+ name : {{ include "hydra.secretname" $ }}
69
+ key : dsn
74
70
{{- end }}
75
- lifecycle :
71
+ {{- end }}
72
+ {{- with $migrationExtraEnv }}
73
+ {{- toYaml . | nindent 10 }}
74
+ {{- end }}
75
+ lifecycle :
76
76
{{- if $.Values.job.lifecycle }}
77
77
{{- tpl $.Values.job.lifecycle $ | nindent 10 }}
78
78
{{- end }}
79
79
{{- with $.Values.deployment.securityContext }}
80
- securityContext :
80
+ securityContext :
81
81
{{- toYaml . | nindent 10 }}
82
82
{{- end }}
83
83
{{- with $resources }}
84
- resources :
84
+ resources :
85
85
{{- toYaml . | nindent 10 }}
86
86
{{- end }}
87
- volumeMounts :
88
- - name : {{ include "hydra.name" $ }}-config-volume
89
- mountPath : /etc/config
90
- readOnly : true
91
- {{- if $job.extraVolumeMounts }}
92
- {{- toYaml $job.extraVolumeMounts | nindent 12 }}
93
- {{- else if $.Values.deployment.extraVolumeMounts }}
94
- {{- toYaml $.Values.deployment.extraVolumeMounts | nindent 12 }}
95
- {{- end }}
87
+ volumeMounts :
88
+ - name : {{ include "hydra.name" $ }}-config-volume
89
+ mountPath : /etc/config
90
+ readOnly : true
91
+ {{- if $job.extraVolumeMounts }}
92
+ {{- toYaml $job.extraVolumeMounts | nindent 12 }}
93
+ {{- else if $.Values.deployment.extraVolumeMounts }}
94
+ {{- toYaml $.Values.deployment.extraVolumeMounts | nindent 12 }}
95
+ {{- end }}
96
96
{{- if $.Values.job.extraContainers }}
97
97
{{- tpl $.Values.job.extraContainers $ | nindent 6 }}
98
98
{{- end }}
@@ -125,4 +125,4 @@ spec:
125
125
{{- end }}
126
126
backoffLimit : {{ $.Values.job.spec.backoffLimit }}
127
127
{{- end }}
128
- {{- end }}
128
+ {{- end }}
0 commit comments