Selaa lähdekoodia

minio/charts - inverse the condition to show the export storage (#2316)

* minio/charts - inverse the condition to show the export storage

* do not render export storage when distributed mode is on
Stavros Kois 1 vuosi sitten
vanhempi
commit
a71e13efe0

+ 1 - 1
library/ix-dev/charts/minio/Chart.yaml

@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
 annotations:
   title: MinIO
 type: application
-version: 2.0.3
+version: 2.0.4
 apiVersion: v2
 appVersion: "2023-03-13"
 kubeVersion: ">=1.16.0-0"

+ 1 - 1
library/ix-dev/charts/minio/questions.yaml

@@ -182,7 +182,7 @@ questions:
           description: The path to store Minio Export.
           schema:
             type: dict
-            show_if: [["distributedMode", "=", true]]
+            show_if: [["distributedMode", "=", false]]
             attrs:
               - variable: type
                 label: Type

+ 2 - 0
library/ix-dev/charts/minio/templates/_persistence.tpl

@@ -1,5 +1,6 @@
 {{- define "minio.persistence" -}}
 persistence:
+  {{- if not .Values.minioStorage.distributedMode }}
   export:
     enabled: true
     {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.minioStorage.export) | nindent 4 }}
@@ -12,6 +13,7 @@ persistence:
         01-permissions:
           mountPath: /mnt/directories/export
         {{- end }}
+  {{- end }}
   tmp:
     enabled: true
     type: emptyDir