From f22a2077de4c00487b1a392869c91bb80e3ea3a3 Mon Sep 17 00:00:00 2001 From: still Date: Fri, 12 Mar 2021 10:21:20 -0700 Subject: [PATCH 1/2] update service name --- chart/templates/_helpers.tpl | 8 ++++++++ chart/templates/minio-vs.yaml | 4 ++-- chart/templates/service.yaml | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/chart/templates/_helpers.tpl b/chart/templates/_helpers.tpl index f415bbf..8e7b94f 100644 --- a/chart/templates/_helpers.tpl +++ b/chart/templates/_helpers.tpl @@ -60,3 +60,11 @@ Create the name of the service account to use {{- default "default" .Values.serviceAccount.name }} {{- end }} {{- end }} + +{{/* +Create the name of the service used to access the UI +*/}} +{{- define "minio.serviceName" -}} +{{- default (include "minio.fullname" .) .Values.service.nameOverride }} +{{- end }} + diff --git a/chart/templates/minio-vs.yaml b/chart/templates/minio-vs.yaml index 8d96f72..29e214f 100644 --- a/chart/templates/minio-vs.yaml +++ b/chart/templates/minio-vs.yaml @@ -15,7 +15,7 @@ spec: prefix: /minio/prometheus/metrics route: - destination: - host: {{ include "minio.fullname" . }} + host: {{ include "minio.serviceName" . }} port: number: {{ .Values.service.port }} fault: @@ -28,7 +28,7 @@ spec: prefix: / route: - destination: - host: {{ include "minio.fullname" . }} + host: {{ include "minio.serviceName" . }} port: number: {{ .Values.service.port }} {{- end }} diff --git a/chart/templates/service.yaml b/chart/templates/service.yaml index e095e99..c64299d 100644 --- a/chart/templates/service.yaml +++ b/chart/templates/service.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: {{ .Values.service.nameOverride | default (include "minio.fullname" .) }} + name: {{ include "minio.serviceName" . }} labels: {{- include "minio.labels" . | nindent 4 }} spec: -- GitLab From bb495f4164b66e6c0aee203550cc2661b83a736a Mon Sep 17 00:00:00 2001 From: still Date: Fri, 12 Mar 2021 10:21:45 -0700 Subject: [PATCH 2/2] update service name --- chart/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chart/Chart.yaml b/chart/Chart.yaml index 7f09b17..7f1461c 100644 --- a/chart/Chart.yaml +++ b/chart/Chart.yaml @@ -9,7 +9,7 @@ description: |- type: application -version: 2.0.9-bb.4 +version: 2.0.9-bb.5 appVersion: RELEASE.2020-11-19T23-48-16Z -- GitLab