From d177992b91a9a641a208d5e154dcf0e4d88c75a9 Mon Sep 17 00:00:00 2001 From: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Date: Thu, 6 Apr 2023 19:11:11 +0300 Subject: [PATCH] NAS-121368 (Minio)Add a default storage item and description on storage type (#1084) * NAS-121368 Adds validation and a default storage item on MinIO * add description on enum as well --- library/ix-dev/enterprise/minio/Chart.yaml | 2 +- library/ix-dev/enterprise/minio/questions.yaml | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/library/ix-dev/enterprise/minio/Chart.yaml b/library/ix-dev/enterprise/minio/Chart.yaml index b2d544c7e0..b7a31aff77 100644 --- a/library/ix-dev/enterprise/minio/Chart.yaml +++ b/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.1 +version: 1.0.2 apiVersion: v2 appVersion: '2023-03-24' kubeVersion: '>=1.16.0-0' diff --git a/library/ix-dev/enterprise/minio/questions.yaml b/library/ix-dev/enterprise/minio/questions.yaml index ebaf6ee4df..4d0fd4e8c0 100644 --- a/library/ix-dev/enterprise/minio/questions.yaml +++ b/library/ix-dev/enterprise/minio/questions.yaml @@ -166,7 +166,9 @@ questions: group: Storage Configuration schema: type: list - default: [] + default: [{"type": "ixVolume", "mountPath": "/data1", "datasetName": "data1"}] + empty: false + required: true items: - variable: item label: Storage Item @@ -175,6 +177,9 @@ questions: attrs: - variable: type label: Type + description: | + ixVolume: Is dataset created automatically by the system.
+ Host Path: Is a path that already exists on the system. schema: type: string immutable: true @@ -182,9 +187,9 @@ questions: default: ixVolume enum: - value: hostPath - description: Host Path + description: Host Path (Path that already exists on the system) - value: ixVolume - description: ixVolume + description: ixVolume (Dataset created automatically by the system) - variable: mountPath label: Mount Path description: The path inside the container to mount the storage.