From 87e73d3bf7085aa76b0d46e3d06587a338f65680 Mon Sep 17 00:00:00 2001 From: hhhhsc701 <56435672+hhhhsc701@users.noreply.github.com> Date: Thu, 25 Dec 2025 16:13:38 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20label-studio=E6=94=AF=E6=8C=81=E6=8C=87?= =?UTF-8?q?=E5=AE=9Asc=20(#200)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: label-studio构建脚本 * feat: label-studio构建脚本 * feat: label-studio构建脚本 * feat: label-studio安装脚本 * feat: label-studio支持指定sc --- deployment/helm/label-studio/templates/postgres.yaml | 3 +++ deployment/helm/label-studio/templates/pvc.yaml | 8 ++++---- deployment/helm/label-studio/values.yaml | 3 ++- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/deployment/helm/label-studio/templates/postgres.yaml b/deployment/helm/label-studio/templates/postgres.yaml index 47ee2d3..4f92433 100644 --- a/deployment/helm/label-studio/templates/postgres.yaml +++ b/deployment/helm/label-studio/templates/postgres.yaml @@ -62,5 +62,8 @@ spec: resources: requests: storage: {{ .Values.postgres.persistence.size }} + {{- if .Values.persistence.storageClass }} + storageClassName: {{ .Values.postgres.persistence.storageClass }} + {{- end }} {{- end }} diff --git a/deployment/helm/label-studio/templates/pvc.yaml b/deployment/helm/label-studio/templates/pvc.yaml index 6273798..33b0186 100644 --- a/deployment/helm/label-studio/templates/pvc.yaml +++ b/deployment/helm/label-studio/templates/pvc.yaml @@ -10,8 +10,8 @@ spec: resources: requests: storage: {{ .Values.persistence.size }} - {{- if .Values.persistence.storageClassName }} - storageClassName: {{ .Values.persistence.storageClassName }} + {{- if .Values.persistence.storageClass }} + storageClassName: {{ .Values.persistence.storageClass }} {{- end }} --- apiVersion: v1 @@ -24,8 +24,8 @@ spec: resources: requests: storage: {{ .Values.persistence.size }} - {{- if .Values.persistence.storageClassName }} - storageClassName: {{ .Values.persistence.storageClassName }} + {{- if .Values.persistence.storageClass }} + storageClassName: {{ .Values.persistence.storageClass }} {{- end }} {{- end }} diff --git a/deployment/helm/label-studio/values.yaml b/deployment/helm/label-studio/values.yaml index c16f0d8..950b728 100644 --- a/deployment/helm/label-studio/values.yaml +++ b/deployment/helm/label-studio/values.yaml @@ -26,6 +26,7 @@ postgres: persistence: enabled: true size: 10Gi + storageClass: "" service: type: NodePort @@ -73,7 +74,7 @@ persistence: enabled: true existingClaim: "" # if you already have PVC that maps to external datamate-dataset-volume size: 10Gi - storageClassName: "" + storageClass: "" # Name of the Kubernetes PVC to simulate external Docker volume `datamate-dataset-volume` # If not set and persistence.enabled=true, a PVC will be created automatically.