Skip to content

Commit

Permalink
dont template auctioneer svc if there are no ports
Browse files Browse the repository at this point in the history
  • Loading branch information
a-thomas-22 committed Dec 11, 2024
1 parent 8197c7c commit 2b7665f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charts/timeboost/templates/auctioneer/service.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -26,3 +37,4 @@ spec:
{{- include "timeboost.auctioneer.selectorLabels" . | nindent 4 }}
function: nitro
publishNotReadyAddresses: {{ .Values.auctioneer.service.publishNotReadyAddresses }}
{{- end }}

0 comments on commit 2b7665f

Please sign in to comment.