Skip to content

Commit

Permalink
hello v2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rein-Vanbelleghem committed Apr 26, 2024
1 parent 5db0e49 commit 0b9b342
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion charts/hello/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v2
name: hello
description: A Helm chart for Kubernetes to deploy a simple Nginx server displaying "Hello World"
version: 0.1.0
version: 0.2.0
10 changes: 4 additions & 6 deletions charts/hello/templates/_helpers.tpl
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{{/* vim: set filetype=mustache: */}}
{{/*
Expand the name of the chart.
*/}}
{{- define "name" -}}
{{- define "hello.name" -}}
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
{{- end -}}

{{/*
Create a default fully qualified app name.
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
*/}}
{{- define "fullname" -}}
{{- $name := default .Chart.Name .Values.nameOverride -}}
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
{{- end -}}
{{- define "hello.fullname" -}}
{{- printf "%s-%s" .Release.Name .Chart.Name | trunc 63 | trimSuffix "-" -}}
{{- end -}}

0 comments on commit 0b9b342

Please sign in to comment.