大量更新

This commit is contained in:
zeaslity
2026-05-19 14:28:44 +08:00
parent a8f6bda703
commit 9fc3372fa3
5299 changed files with 423176 additions and 426690 deletions

View File

@@ -0,0 +1,40 @@
{{- $namespace := .Release.Namespace -}}
{{- $scope := $ -}}
{{- range .Values.application.manifest }}
{{- if $.Values.isGenerateCachePVC }}
{{- if .config -}}
{{- if .config.pvc }}
{{- $applicationName := .name | trunc 63 }}
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ $applicationName }}-cache
namespace: {{ $namespace }}
labels:
cmii.type: {{ $.Values.application.type }}
{{- if .modules }}
cmii.modules: {{ .modules }}
{{- end }}
cmii.app: {{ $applicationName }}
helm.sh/chart: {{ include "uavcloud-be-core.chart" $scope }}
app.kubernetes.io/managed-by: {{ $.Release.Service }}
{{- if $.Chart.AppVersion }}
app.kubernetes.io/version: {{ $.Chart.AppVersion | quote }}
{{- end }}
app.kubernetes.io/app-version: {{ $.Values.global.image.tag | quote }}
spec:
storageClassName: {{ $.Values.global.pvc.storageClass }}
accessModes:
- {{ .config.pvc.cache.accessMode }}
volumeMode: Filesystem
resources:
requests:
storage: {{ .config.pvc.cache.size }}
---
{{- end }}
{{- end }}
{{- end }}
{{- end }}