Files
truecharts/charts/library/common/templates/_services.tpl
T
Kjeld Schouten-Lebbing 196d4d8327 Major Common cleanup + services overhaul (#448)
* Major Common cleanup + services overhaul

* add resources test and scaleGPU support

* implement cleaner ingress, remove externalService and remove ingressRoute

* cleanup service test whoopsies

* fix some more test errors

* Fix ingress tests

* oops

* redesign ixcert system for ingress

* test multiple ixcert-secrets support

* increate tests versioning

* add test for pvc name override
2021-05-10 14:13:17 +02:00

22 lines
685 B
Smarty

{{/*
Renders the Service objects required by the chart by returning a concatinated list
of the main Service and any additionalservice.
*/}}
{{- define "common.services" -}}
{{- if .Values.services -}}
{{- range $name, $service := .Values.services }}
{{- if $service.enabled -}}
{{- print ("---\n") | nindent 0 -}}
{{- $serviceValues := $service -}}
{{- if $serviceValues.nameSuffix -}}
{{- $_ := set $serviceValues "nameSuffix" $name -}}
{{ end -}}
{{- $_ := set $ "ObjectValues" (dict "service" $serviceValues) -}}
{{- include "common.classes.service" $ -}}
{{- end }}
{{- end }}
{{- end }}
{{- end }}