diff --git a/charts/timeboost/templates/auctioneer/service.yaml b/charts/timeboost/templates/auctioneer/service.yaml index 916b553..612391b 100644 --- a/charts/timeboost/templates/auctioneer/service.yaml +++ b/charts/timeboost/templates/auctioneer/service.yaml @@ -1,3 +1,14 @@ +{{- $hasPorts := false }} +{{- if .Values.auctioneer.configmap.data.metrics }} + {{- $hasPorts = true }} +{{- end }} +{{- range .Values.auctioneer.extraPorts }} + {{- if .serviceEnabled | default true }} + {{- $hasPorts = true }} + {{- end }} +{{- end }} + +{{- if $hasPorts }} apiVersion: v1 kind: Service metadata: @@ -26,3 +37,4 @@ spec: {{- include "timeboost.auctioneer.selectorLabels" . | nindent 4 }} function: nitro publishNotReadyAddresses: {{ .Values.auctioneer.service.publishNotReadyAddresses }} +{{- end }}