From 2785928dd46843f000adc1ae31f29bb619aace51 Mon Sep 17 00:00:00 2001 From: perangel Date: Fri, 17 Nov 2023 13:38:12 -0500 Subject: [PATCH] Support for setting the service name --- templates/service.yaml | 4 ++++ values.yaml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/templates/service.yaml b/templates/service.yaml index cc9c5d8..6cdc67f 100644 --- a/templates/service.yaml +++ b/templates/service.yaml @@ -1,7 +1,11 @@ apiVersion: v1 kind: Service metadata: +{{- if .Values.service.name }} + name: {{ .Values.service.name }} +{{- else }} name: {{ template "docker-registry.fullname" . }} +{{- end }} namespace: {{ .Values.namespace | default .Release.Namespace }} labels: app: {{ template "docker-registry.name" . }} diff --git a/values.yaml b/values.yaml index 7f9c558..0e49010 100644 --- a/values.yaml +++ b/values.yaml @@ -24,7 +24,7 @@ image: # imagePullSecrets: # - name: docker service: - name: registry + name: "" type: ClusterIP # sessionAffinity: None # sessionAffinityConfig: {}