Skip to content

Commit

Permalink
Pvc labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kgtkr committed Oct 11, 2023
1 parent b67d5d8 commit efe766a
Show file tree
Hide file tree
Showing 6 changed files with 10 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.3.0
version: 2.4.0
appVersion: SeeValues
home: https://minecraft.net/
description: Minecraft server
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft-bedrock/templates/datadir-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ metadata:
chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
{{- with .Values.persistence.labels }}
{{ toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- if .Values.persistence.storageClass }}
volume.beta.kubernetes.io/storage-class: {{ .Values.persistence.storageClass | quote }}
Expand Down
1 change: 1 addition & 0 deletions charts/minecraft-bedrock/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ extraEnv:
envFrom: []

persistence:
labels: {}
## minecraft data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
## If set to "-", storageClassName: "", which disables dynamic provisioning
Expand Down
2 changes: 1 addition & 1 deletion charts/minecraft/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: minecraft
version: 4.10.0
version: 4.11.0
appVersion: SeeValues
home: https://minecraft.net/
description: Minecraft server
Expand Down
3 changes: 3 additions & 0 deletions charts/minecraft/templates/datadir-pvc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ metadata:
app.kubernetes.io/name: "{{ .Chart.Name }}"
app.kubernetes.io/instance: {{ template "minecraft.fullname" . }}
app.kubernetes.io/version: "{{ .Chart.Version }}"
{{- with .Values.persistence.labels }}
{{ toYaml . | nindent 4 }}
{{- end }}
annotations:
{{- with .Values.persistence.annotations }}
{{ toYaml . | nindent 4 }}
Expand Down
1 change: 1 addition & 0 deletions charts/minecraft/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,7 @@ extraEnv:
envFrom: []

persistence:
labels: {}
annotations: {}
## minecraft data Persistent Volume Storage Class
## If defined, storageClassName: <storageClass>
Expand Down

0 comments on commit efe766a

Please sign in to comment.