1
0
镜像自地址 https://github.com/devcm-repo/helm-charts.git 已同步 2026-06-06 05:51:06 +00:00

feat(pvc): enhance PVC configuration and update chart version to 0.0.6

这个提交包含在:
rohow
2025-07-21 10:17:10 +08:00
未验证
父节点 f42a0d7e6c
当前提交 bc5261c6a3
修改 3 个文件,包含 10 行新增5 行删除
+1 -2
查看文件
@@ -9,6 +9,5 @@ maintainers:
email: admin@dev.cm
url: https://github.com/devcm-repo
icon: https://rustdesk.com/favicon.ico
version: 0.0.5
version: 0.0.6
appVersion: latest
+8 -3
查看文件
@@ -1,12 +1,16 @@
{{- if .Values.persistence.enabled }}
{{- $pvcName := printf "%s-%s-data" .Release.Name .Chart.Name }}
{{- if or (not .Values.persistence.checkExisting) (not (lookup "v1" "PersistentVolumeClaim" .Release.Namespace $pvcName)) }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: "{{ .Release.Name }}-{{ .Chart.Name }}-data"
name: {{ $pvcName }}
{{- if .Values.persistence.data.annotations }}
annotations:
{{- if .Values.persistence.data.annotations }}
{{- toYaml .Values.persistence.data.annotations | nindent 4 }}
{{- range $key, $value := .Values.persistence.data.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
{{- end }}
spec:
accessModes:
- {{ .Values.persistence.data.accessMode }}
@@ -17,3 +21,4 @@ spec:
storageClassName: {{ .Values.persistence.data.storageClass }}
{{- end }}
{{- end }}
{{- end }}
+1
查看文件
@@ -9,6 +9,7 @@ affinity: {}
persistence:
enabled: true
checkExisting: true
data:
storageClass: ""
size: 2Gi