Skip to content

Commit

Permalink
Merge pull request #305 from changzhi1990/fix_nginx_wrong_indent
Browse files Browse the repository at this point in the history
Fix wrong indent for Nginx deployment
  • Loading branch information
cdelimitrou authored Nov 29, 2023
2 parents 8369a69 + fd047b9 commit b20d2f8
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ spec:
{{- end }}
{{- if .resources }}
resources:
{{ tpl .resources . | nindent 6 | trim }}
{{ tpl .resources $ | nindent 10 | trim }}
{{- else if hasKey $.Values.global "resources" }}
resources:
{{ tpl $.Values.global.resources $ | nindent 6 | trim }}
{{ tpl $.Values.global.resources $ | nindent 10 | trim }}
{{- end }}
{{- if $.Values.configMaps }}
volumeMounts:
Expand All @@ -72,6 +72,13 @@ spec:
command:
- {{ .command }}
{{- end -}}
{{- if .resources }}
resources:
{{ tpl .resources $ | nindent 10 | trim }}
{{- else if hasKey $.Values.global "resources" }}
resources:
{{ tpl $.Values.global.resources $ | nindent 10 | trim }}
{{- end }}
{{- if .env }}
env:
{{- range $e := .env}}
Expand Down

0 comments on commit b20d2f8

Please sign in to comment.