From afd9265ed37bdb203ade10a40ee7490252baf1be Mon Sep 17 00:00:00 2001 From: Konstantinos Livieratos Date: Sun, 16 Oct 2022 19:07:55 +0200 Subject: [PATCH 1/2] Bump chart version for new feature --- Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Chart.yaml b/Chart.yaml index 59d3927..4bb084e 100644 --- a/Chart.yaml +++ b/Chart.yaml @@ -2,4 +2,4 @@ apiVersion: v2 name: servicetpl description: A Helm chart for services running on Kubernetes -version: 0.12.2 +version: 0.13.0 From e80254450bb18da5195241272e79a2c2cc114f9e Mon Sep 17 00:00:00 2001 From: Konstantinos Livieratos Date: Sun, 16 Oct 2022 19:16:25 +0200 Subject: [PATCH 2/2] Replaced fullnameOverride with serviceName --- templates/_helpers.tpl | 4 ++-- values.yaml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/templates/_helpers.tpl b/templates/_helpers.tpl index 3ff1201..88ed5af 100644 --- a/templates/_helpers.tpl +++ b/templates/_helpers.tpl @@ -12,8 +12,8 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this If release name contains chart name it will be used as a full name. */}} {{- define "service_template.fullname" -}} -{{- if .Values.fullnameOverride }} -{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- if .Values.serviceName }} +{{- .Values.serviceName | trunc 63 | trimSuffix "-" }} {{- else }} {{- $name := default .Chart.Name .Values.nameOverride }} {{- if contains $name .Release.Name }} diff --git a/values.yaml b/values.yaml index 1333f00..4432846 100644 --- a/values.yaml +++ b/values.yaml @@ -14,7 +14,6 @@ image: imagePullSecrets: [] nameOverride: "" -fullnameOverride: "" rollingUpdate: maxSurge: 1