镜像自地址
https://github.com/devcm-repo/helm-charts.git
已同步 2026-06-06 04:11:05 +00:00
feat(pvc): enhance PVC configuration and update chart version to 0.0.6
这个提交包含在:
@@ -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
|
||||
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -9,6 +9,7 @@ affinity: {}
|
||||
|
||||
persistence:
|
||||
enabled: true
|
||||
checkExisting: true
|
||||
data:
|
||||
storageClass: ""
|
||||
size: 2Gi
|
||||
|
||||
在新议题中引用
屏蔽一个用户