Skip to content

Commit 64f96af

Browse files
committed
chore: revert and introduce template
1 parent fcffa4d commit 64f96af

20 files changed

+59
-32
lines changed

charts/minecraft-bedrock/templates/_helpers.tpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Expand the name of the chart.
66
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
77
{{- end -}}
88

9+
{{/*
10+
Set the chart fullname
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the labels spec).
12+
We change "+" with "_" for OCI compatibility
13+
*/}}
14+
{{- define "chart.fullname" -}}
15+
{{- printf "%s-%s" .Chart.Name (.Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-") -}}
16+
{{- end }}
17+
918
{{/*
1019
Create a default fully qualified app name.
1120
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).

charts/minecraft-bedrock/templates/datadir-pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
app: {{ template "minecraft.fullname" . }}
9-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
9+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1010
release: "{{ .Release.Name }}"
1111
heritage: "{{ .Release.Service }}"
1212
{{- with .Values.persistence.labels }}

charts/minecraft-bedrock/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ metadata:
1212
{{- end }}
1313
labels:
1414
app: {{ template "minecraft.fullname" . }}
15-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
15+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1616
release: "{{ .Release.Name }}"
1717
heritage: "{{ .Release.Service }}"
1818
{{- with .Values.deploymentLabels }}
@@ -241,7 +241,7 @@ spec:
241241
name: datadir
242242
labels:
243243
app: {{ template "minecraft.fullname" . }}
244-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
244+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
245245
release: "{{ .Release.Name }}"
246246
heritage: "{{ .Release.Service }}"
247247
annotations:

charts/minecraft-bedrock/templates/minecraft-svc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
namespace: {{ .Release.Namespace }}
66
labels:
77
app: {{ template "minecraft.fullname" . }}
8-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
8+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
99
release: "{{ .Release.Name }}"
1010
heritage: "{{ .Release.Service }}"
1111
{{- with .Values.serviceLabels }}

charts/minecraft-proxy/templates/_helpers.tpl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@ Expand the name of the chart.
66
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
77
{{- end -}}
88

9+
{{/*
10+
Set the chart fullname
11+
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the labels spec).
12+
We change "+" with "_" for OCI compatibility
13+
*/}}
14+
{{- define "chart.fullname" -}}
15+
{{- printf "%s-%s" .Chart.Name (.Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-") -}}
16+
{{- end }}
17+
918
{{/*
1019
Create a default fully qualified app name.
1120
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).

charts/minecraft-proxy/templates/configmap.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
app: {{ template "proxy.fullname" . }}
9-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
9+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1010
release: "{{ .Release.Name }}"
1111
heritage: "{{ .Release.Service }}"
1212
data:

charts/minecraft-proxy/templates/datadir-pvc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
app: {{ template "proxy.fullname" . }}
9-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
9+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1010
release: "{{ .Release.Name }}"
1111
heritage: "{{ .Release.Service }}"
1212
annotations:

charts/minecraft-proxy/templates/deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
annotations: {{ toYaml .Values.deploymentAnnotations | nindent 4 }}
77
labels:
88
app: {{ template "proxy.fullname" . }}
9-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
9+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1010
release: "{{ .Release.Name }}"
1111
heritage: "{{ .Release.Service }}"
1212
spec:

charts/minecraft-proxy/templates/proxy-svc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ metadata:
66
namespace: {{ .Release.Namespace }}
77
labels:
88
app: {{ template "proxy.fullname" . }}
9-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
9+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1010
release: "{{ .Release.Name }}"
1111
heritage: "{{ .Release.Service }}"
1212
annotations:

charts/minecraft-proxy/templates/rcon-secret.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ metadata:
77
namespace: {{ .Release.Namespace }}
88
labels:
99
app: {{ template "proxy.fullname" . }}
10-
chart: "{{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}"
10+
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1111
release: "{{ .Release.Name }}"
1212
heritage: "{{ .Release.Service }}"
1313
type: Opaque

0 commit comments

Comments
 (0)