Skip to content

Commit

Permalink
add conditional to loop on extraServices only if the object is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
jgonzalezspoton committed Sep 17, 2024
1 parent d837cc7 commit 455c43a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions monochart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ spec:
{{- end }}
{{- end }}

{{- if .Values.extraServices -}}
{{- range $serviceName, $service := .Values.extraServices }}
{{- if $service.enabled }}
{{- range $name, $port := $service.ports }}
Expand All @@ -149,6 +150,7 @@ spec:
{{- end }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

volumeMounts:
Expand Down

0 comments on commit 455c43a

Please sign in to comment.