Skip to content

Commit 36b2636

Browse files
committed
add customisable deployment and service lables
1 parent 6681025 commit 36b2636

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

charts/minecraft-bedrock/templates/deployment.yaml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ metadata:
1414
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
1515
release: "{{ .Release.Name }}"
1616
heritage: "{{ .Release.Service }}"
17+
{{- with .Values.deploymentLabels }}
18+
{{ toYaml . | nindent 4 }}
19+
{{- end }}
1720
spec:
1821
{{- if .Values.workloadAsStatefulSet }}
1922
serviceName: {{ template "minecraft.fullname" . }}
@@ -216,7 +219,7 @@ spec:
216219
volumeClaimTemplates:
217220
{{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.existingClaim) }}
218221
- metadata:
219-
name: datadir
222+
name: datadir
220223
labels:
221224
app: {{ template "minecraft.fullname" . }}
222225
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"

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

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ metadata:
77
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
88
release: "{{ .Release.Name }}"
99
heritage: "{{ .Release.Service }}"
10+
{{- with .Values.serviceLabels }}
11+
{{ toYaml . | nindent 4 }}
12+
{{- end }}
1013
{{- if .Values.serviceAnnotations }}
1114
annotations:
1215
{{- range $key, $value := .Values.serviceAnnotations }}

0 commit comments

Comments
 (0)