From efe766a9c45d280e0ab11454d8e42ae53d7c6e1b Mon Sep 17 00:00:00 2001 From: kgtkr Date: Tue, 10 Oct 2023 15:36:59 +0900 Subject: [PATCH] Pvc labels --- charts/minecraft-bedrock/Chart.yaml | 2 +- charts/minecraft-bedrock/templates/datadir-pvc.yaml | 3 +++ charts/minecraft-bedrock/values.yaml | 1 + charts/minecraft/Chart.yaml | 2 +- charts/minecraft/templates/datadir-pvc.yaml | 3 +++ charts/minecraft/values.yaml | 1 + 6 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/minecraft-bedrock/Chart.yaml b/charts/minecraft-bedrock/Chart.yaml index 02e1b6b8..9a6c7408 100644 --- a/charts/minecraft-bedrock/Chart.yaml +++ b/charts/minecraft-bedrock/Chart.yaml @@ -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 diff --git a/charts/minecraft-bedrock/templates/datadir-pvc.yaml b/charts/minecraft-bedrock/templates/datadir-pvc.yaml index 9e462431..97f29e78 100644 --- a/charts/minecraft-bedrock/templates/datadir-pvc.yaml +++ b/charts/minecraft-bedrock/templates/datadir-pvc.yaml @@ -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 }} diff --git a/charts/minecraft-bedrock/values.yaml b/charts/minecraft-bedrock/values.yaml index 374c7cb2..1b457b68 100644 --- a/charts/minecraft-bedrock/values.yaml +++ b/charts/minecraft-bedrock/values.yaml @@ -181,6 +181,7 @@ extraEnv: envFrom: [] persistence: + labels: {} ## minecraft data Persistent Volume Storage Class ## If defined, storageClassName: ## If set to "-", storageClassName: "", which disables dynamic provisioning diff --git a/charts/minecraft/Chart.yaml b/charts/minecraft/Chart.yaml index 77defb42..4d712090 100755 --- a/charts/minecraft/Chart.yaml +++ b/charts/minecraft/Chart.yaml @@ -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 diff --git a/charts/minecraft/templates/datadir-pvc.yaml b/charts/minecraft/templates/datadir-pvc.yaml index 39595ccb..c9289684 100644 --- a/charts/minecraft/templates/datadir-pvc.yaml +++ b/charts/minecraft/templates/datadir-pvc.yaml @@ -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 }} diff --git a/charts/minecraft/values.yaml b/charts/minecraft/values.yaml index f45edef1..d33f2ced 100644 --- a/charts/minecraft/values.yaml +++ b/charts/minecraft/values.yaml @@ -384,6 +384,7 @@ extraEnv: envFrom: [] persistence: + labels: {} annotations: {} ## minecraft data Persistent Volume Storage Class ## If defined, storageClassName: