mirror of
https://github.com/bjw-s-labs/helm-charts.git
synced 2025-07-04 17:07:04 +02:00
fix: Don't render disabled services
This commit is contained in:
parent
0a5fb9d3d4
commit
8106004a7c
15 changed files with 81 additions and 39 deletions
|
@ -4,7 +4,11 @@ Renders the Service objects required by the chart.
|
|||
{{- define "bjw-s.common.render.services" -}}
|
||||
{{- /* Generate named services as required */ -}}
|
||||
{{- range $name, $service := .Values.service -}}
|
||||
{{- if ($service.enabled | default true ) -}}
|
||||
{{- $serviceEnabled := true -}}
|
||||
{{- if hasKey $service "enabled" -}}
|
||||
{{- $serviceEnabled = $service.enabled -}}
|
||||
{{- end -}}
|
||||
{{- if $serviceEnabled -}}
|
||||
{{- $serviceValues := $service -}}
|
||||
|
||||
{{/* set the default nameOverride to the service name */}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue