diff --git a/charts/gcp-vpc-network/Chart.yaml b/charts/gcp-vpc-network/Chart.yaml index 21bdd13..fe756fd 100644 --- a/charts/gcp-vpc-network/Chart.yaml +++ b/charts/gcp-vpc-network/Chart.yaml @@ -2,8 +2,8 @@ apiVersion: v2 name: gcp-vpc-network description: A Helm chart that Creates a Google VPC Network through Config Connector type: application -version: 0.1.2 -appVersion: "0.1.2" +version: 0.1.3 +appVersion: "0.1.3" maintainers: - name: ilyasabdellaoui email: ilyas.abdellaoui21@gmail.com diff --git a/charts/gcp-vpc-network/README.md b/charts/gcp-vpc-network/README.md index 5a5a6e6..89d9e58 100644 --- a/charts/gcp-vpc-network/README.md +++ b/charts/gcp-vpc-network/README.md @@ -1,6 +1,6 @@ # gcp-vpc-network -![Version: 0.1.2](https://img.shields.io/badge/Version-0.1.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.2](https://img.shields.io/badge/AppVersion-0.1.2-informational?style=flat-square) +![Version: 0.1.3](https://img.shields.io/badge/Version-0.1.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.1.3](https://img.shields.io/badge/AppVersion-0.1.3-informational?style=flat-square) ## Prerequisites @@ -62,7 +62,7 @@ spec: source: repoURL: "https://edixos.github.io/ekp-helm" - targetRevision: "0.1.2" + targetRevision: "0.1.3" chart: gcp-vpc-network path: '' diff --git a/charts/gcp-vpc-network/templates/_helpers.tpl b/charts/gcp-vpc-network/templates/_helpers.tpl index 1b34c9e..eb30a5d 100644 --- a/charts/gcp-vpc-network/templates/_helpers.tpl +++ b/charts/gcp-vpc-network/templates/_helpers.tpl @@ -11,6 +11,9 @@ 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 "gcp-vpc-network.fullname" -}} +{{- if .Values.name }} +{{- .Values.name | trunc 63 | trimSuffix "-" }} +{{- else }} {{- if .Values.fullnameOverride }} {{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} {{- else }} @@ -22,6 +25,7 @@ If release name contains chart name it will be used as a full name. {{- end }} {{- end }} {{- end }} +{{- end }} {{/* Create chart name and version as used by the chart label.