From 4a38f8ca2825016c7840ba555bda995b53a0e122 Mon Sep 17 00:00:00 2001 From: Stavros kois Date: Thu, 2 May 2024 18:50:28 +0300 Subject: [PATCH] update ui --- ix-dev/enterprise/minio/questions.yaml | 103 +++++++++++++++---------- 1 file changed, 63 insertions(+), 40 deletions(-) diff --git a/ix-dev/enterprise/minio/questions.yaml b/ix-dev/enterprise/minio/questions.yaml index b55d897b48..d3488585de 100644 --- a/ix-dev/enterprise/minio/questions.yaml +++ b/ix-dev/enterprise/minio/questions.yaml @@ -183,41 +183,55 @@ questions: schema: type: hostpath required: true - # TODO: Add ix_volume config - # - variable: ix_volume_config - # label: iX Volume Configuration - # schema: - # type: dict - # attrs: + - variable: ix_volume_config + label: iX Volume Configuration + schema: + type: dict + show_if: [["type", "=", "ix_volume"]] + attrs: + - variable: dataset_name + label: Dataset Name + schema: + type: string + required: true + hidden: true + immutable: true + default: "postgres-data" + $ref: + - "normalize/ixVolume" - # - variable: enableMultiMode - # label: Enable Multi Mode (SNMD or MNMD) - # group: MultiMode Configuration - # description: | - # For Single Node Multi Drive (SNMD), the entry will look like this:
- # Example Entry - /data{1...4}

- # For Multi Node Multi Drive (MNMD), the entry will look like this:
- # Example Entry - https://minio{1...3}.example.com:30000/data{1...4}

- # Note that each host must use the same port number and the same number of storage items.
- # In both cases /data{1...4} is the directories to be used for MinIO. - # You have to add additional storage for each data entry. - # schema: - # type: boolean - # default: false - # show_subquestions_if: true - # subquestions: - # - variable: minioMultiMode - # label: Multi Mode (SNMD or MNMD) - # group: MultiMode Configuration - # schema: - # type: list - # default: [] - # items: - # - variable: item - # label: "" - # schema: - # type: string - # required: true + - variable: multi_mode + label: Multi Mode (SNMD or MNMD) Configuration + group: MultiMode Configuration + description: | + For Single Node Multi Drive (SNMD), the entry will look like this:
+ Example Entry - /data{1...4}

+ For Multi Node Multi Drive (MNMD), the entry will look like this:
+ Example Entry - https://minio{1...3}.example.com:30000/data{1...4}

+ Note that each host must use the same port number and the same number of storage items.
+ In both cases /data{1...4} is the directories to be used for MinIO. + You have to add additional storage for each data entry. + schema: + type: dict + attrs: + - variable: enabled + label: Enabled + description: Enable Multi Mode + schema: + type: boolean + default: false + - variable: items + label: Multi Mode (SNMD or MNMD) Entries + schema: + type: list + show_if: [["enabled", "=", true]] + default: [] + items: + - variable: item + label: "" + schema: + type: string + required: true - variable: storage label: "" @@ -275,12 +289,21 @@ questions: schema: type: hostpath required: true - # TODO: Add ix_volume config - # - variable: ix_volume_config - # label: iX Volume Configuration - # schema: - # type: dict - # attrs: + - variable: ix_volume_config + label: iX Volume Configuration + schema: + type: dict + show_if: [["type", "=", "ix_volume"]] + attrs: + - variable: dataset_name + label: Dataset Name + schema: + type: string + required: true + immutable: true + default: "data1" + $ref: + - "normalize/ixVolume" - variable: resources label: ""