From 54fbbcc9485869601f450d10376b8c8db361c374 Mon Sep 17 00:00:00 2001 From: gaoshiyao Date: Tue, 12 Aug 2025 13:59:33 +0800 Subject: [PATCH] fix --- templates/csi-s3.yaml | 4 ---- templates/secret.yaml | 10 ++++++++-- values-overrides.yaml | 6 +++--- values.yaml | 6 +++--- 4 files changed, 14 insertions(+), 12 deletions(-) diff --git a/templates/csi-s3.yaml b/templates/csi-s3.yaml index 52b3ff6..9732b6c 100644 --- a/templates/csi-s3.yaml +++ b/templates/csi-s3.yaml @@ -90,10 +90,6 @@ spec: valueFrom: fieldRef: fieldPath: spec.nodeName - {{- if .Values.storageClass.path }} - - name: PREFIX_PATH - value: {{ .Values.storageClass.path }} - {{- end }} volumeMounts: - name: plugin-dir mountPath: /csi diff --git a/templates/secret.yaml b/templates/secret.yaml index 6150370..514df10 100644 --- a/templates/secret.yaml +++ b/templates/secret.yaml @@ -16,6 +16,12 @@ stringData: region: {{ .Values.secret.region }} {{- end }} {{- if .Values.secret.insecure }} - insecure: "true" + insecure: "{{ .Values.secret.insecure }}" {{- end }} -{{- end -}} +{{- if .Values.secret.usePathRequestStyle }} + usePathRequestStyle: "{{ .Values.secret.usePathRequestStyle }}" +{{- end }} +{{- if .Values.storageClass.path }} + path: {{ .Values.storageClass.path }} +{{- end }} +{{- end -}} \ No newline at end of file diff --git a/values-overrides.yaml b/values-overrides.yaml index 9ff7845..4addabb 100644 --- a/values-overrides.yaml +++ b/values-overrides.yaml @@ -16,8 +16,6 @@ storageClass: singleBucket: "bd-wind" # mounter to use - either geesefs, s3fs or rclone (default geesefs) mounter: geesefs - # 前置路径 - path: "pvc" # GeeseFS mount options mountOptions: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666" # Volume reclaim policy @@ -42,7 +40,9 @@ secret: # Region region: "" # Insecure - insecure: "false" + insecure: false + # usePathRequestStyle + usePathRequestStyle: false tolerations: all: false diff --git a/values.yaml b/values.yaml index 4a1644a..6c6eede 100644 --- a/values.yaml +++ b/values.yaml @@ -14,8 +14,6 @@ storageClass: name: csi-s3 # Use a single bucket for all dynamically provisioned persistent volumes singleBucket: "" - # 前置路径 - path: "" # mounter to use - either geesefs, s3fs or rclone (default geesefs) mounter: geesefs # GeeseFS mount options @@ -42,7 +40,9 @@ secret: # Region region: "" # Insecure - insecure: "false" + insecure: false + # usePathRequestStyle + usePathRequestStyle: false tolerations: all: false -- 2.26.0