Skip to content

Commit

Permalink
Fix/subnet (#22)
Browse files Browse the repository at this point in the history
add vpc name from Values.name
  • Loading branch information
ilyasabdellaoui authored Feb 24, 2025
1 parent 178ee08 commit 45132ac
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions charts/gcp-vpc-network/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions charts/gcp-vpc-network/README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down Expand Up @@ -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: ''

Expand Down
4 changes: 4 additions & 0 deletions charts/gcp-vpc-network/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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.
Expand Down

0 comments on commit 45132ac

Please sign in to comment.