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

* add a tiny extra validation for multi mode

* bump common
This commit is contained in:
Stavros Kois
2023-08-29 23:35:36 +03:00
committed by GitHub
parent 241621b7c8
commit c4f8c7b220
5 changed files with 10 additions and 5 deletions

View File

@@ -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"

View File

@@ -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:

View File

@@ -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) -}}