镜像自地址
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
这个提交包含在:
@@ -9,6 +9,5 @@ maintainers:
|
|||||||
email: admin@dev.cm
|
email: admin@dev.cm
|
||||||
url: https://github.com/devcm-repo
|
url: https://github.com/devcm-repo
|
||||||
icon: https://rustdesk.com/favicon.ico
|
icon: https://rustdesk.com/favicon.ico
|
||||||
version: 0.0.5
|
version: 0.0.6
|
||||||
appVersion: latest
|
appVersion: latest
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,16 @@
|
|||||||
{{- if .Values.persistence.enabled }}
|
{{- 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
|
apiVersion: v1
|
||||||
kind: PersistentVolumeClaim
|
kind: PersistentVolumeClaim
|
||||||
metadata:
|
metadata:
|
||||||
name: "{{ .Release.Name }}-{{ .Chart.Name }}-data"
|
name: {{ $pvcName }}
|
||||||
|
{{- if .Values.persistence.data.annotations }}
|
||||||
annotations:
|
annotations:
|
||||||
{{- if .Values.persistence.data.annotations }}
|
{{- range $key, $value := .Values.persistence.data.annotations }}
|
||||||
{{- toYaml .Values.persistence.data.annotations | nindent 4 }}
|
{{ $key }}: {{ $value | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
accessModes:
|
accessModes:
|
||||||
- {{ .Values.persistence.data.accessMode }}
|
- {{ .Values.persistence.data.accessMode }}
|
||||||
@@ -17,3 +21,4 @@ spec:
|
|||||||
storageClassName: {{ .Values.persistence.data.storageClass }}
|
storageClassName: {{ .Values.persistence.data.storageClass }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ affinity: {}
|
|||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
|
checkExisting: true
|
||||||
data:
|
data:
|
||||||
storageClass: ""
|
storageClass: ""
|
||||||
size: 2Gi
|
size: 2Gi
|
||||||
|
|||||||
在新议题中引用
屏蔽一个用户