Ver código fonte

NAS-123771 / 24.04 / Add an extra validation for multi mode in MinIO (#1490)

* add a tiny extra validation for multi mode

* bump common
Stavros Kois 2 anos atrás
pai
commit
c4f8c7b220

+ 3 - 3
library/ix-dev/enterprise/minio/Chart.lock

@@ -1,6 +1,6 @@
 dependencies:
 - name: common
   repository: file://../../../common
-  version: 1.0.12
-digest: sha256:debd30721d09ae8293b1cbdd9d0115981d40b47908be3035fc3cf657c9d5eedb
-generated: "2023-07-17T12:32:01.235901713+03:00"
+  version: 1.1.0
+digest: sha256:752ce76025f5b61094bd2b18ca11693eb9d26d0dde4eb2e63cd2330cbffe9e73
+generated: "2023-08-29T16:08:18.154859959+03:00"

+ 2 - 2
library/ix-dev/enterprise/minio/Chart.yaml

@@ -3,7 +3,7 @@ description: High Performance, Kubernetes Native Object Storage
 annotations:
   title: MinIO
 type: application
-version: 1.0.20
+version: 1.0.21
 apiVersion: v2
 appVersion: '2023-03-24'
 kubeVersion: '>=1.16.0-0'
@@ -14,7 +14,7 @@ maintainers:
 dependencies:
   - name: common
     repository: file://../../../common
-    version: 1.0.12
+    version: 1.1.0
 home: https://min.io
 icon: https://min.io/resources/img/logo/MINIO_wordmark.png
 sources:

BIN
library/ix-dev/enterprise/minio/charts/common-1.0.12.tgz


BIN
library/ix-dev/enterprise/minio/charts/common-1.1.0.tgz


+ 5 - 0
library/ix-dev/enterprise/minio/templates/_helpers.tpl

@@ -42,7 +42,12 @@
     {{- fail "Expected Multi Mode to be enabled, when more than 1 storage mountPaths added" -}}
   {{- end -}}
 
+  {{- $notAllowedKeys := (list "server") -}} {{/* Extend if needed */}}
   {{- range $item := .Values.minioMultiMode -}}
+    {{- if (mustHas $item $notAllowedKeys) -}}
+      {{- fail (printf "Key [%v] is not allowed as a Multi Mode argument" $item) -}}
+    {{- end -}}
+
     {{- if hasPrefix "/" $item -}}
       {{- if or (contains "{" $item) (contains "}" $item) -}}
         {{- if not (contains "..." $item) -}}