Skip to content

Commit

Permalink
add customisable deployment and service lables (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenweber authored Apr 22, 2024
1 parent 6681025 commit 7a230c5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/minecraft-bedrock/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: minecraft-bedrock
version: 2.4.1
version: 2.4.2
appVersion: SeeValues
home: https://minecraft.net/
description: Minecraft server
Expand Down
5 changes: 4 additions & 1 deletion charts/minecraft-bedrock/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.deploymentLabels }}
{{ toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.workloadAsStatefulSet }}
serviceName: {{ template "minecraft.fullname" . }}
Expand Down Expand Up @@ -216,7 +219,7 @@ spec:
volumeClaimTemplates:
{{- if and .Values.persistence.dataDir.enabled (not .Values.persistence.dataDir.existingClaim) }}
- metadata:
name: datadir
name: datadir
labels:
app: {{ template "minecraft.fullname" . }}
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft-bedrock/templates/minecraft-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.serviceLabels }}
{{ toYaml . | nindent 4 }}
{{- end }}
{{- if .Values.serviceAnnotations }}
annotations:
{{- range $key, $value := .Values.serviceAnnotations }}
Expand Down
4 changes: 4 additions & 0 deletions charts/minecraft-bedrock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,8 @@ podAnnotations: {}

deploymentAnnotations: {}

deploymentLables: {}

serviceAnnotations: {}

serviceLables: {}

0 comments on commit 7a230c5

Please sign in to comment.