From d6b5a8f792304bd43083bf7568301cc2100c16f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Brunner?= Date: Mon, 17 Apr 2023 10:18:30 +0200 Subject: [PATCH] Add missing default service type --- templates/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/service.yaml b/templates/service.yaml index 169dbdc..c6add61 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -16,7 +16,7 @@ metadata: {{- $svcDict := merge $svcDict (dict "annotations" $serviceDefinition.service.annotations "labels" $serviceDefinition.service.labels) -}} {{- include "common.metadata" ( dict "root" $root "service" $svcDict "serviceName" $serviceName ) | nindent 2 }} spec: - type: {{ $serviceDefinition.service.type }} + type: {{ $serviceDefinition.service.type | default "ClusterIP" }} {{- with $serviceDefinition.service.ports }} ports: {{- . | toYaml | nindent 4 }}