diff --git a/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml b/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml index 63f3fe7801..2836d1b361 100644 --- a/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml @@ -251,7 +251,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml index b1161f744c..3990a71487 100644 --- a/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml @@ -331,7 +331,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml index f3ba788bff..bf20ac3a0c 100644 --- a/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml @@ -665,7 +665,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml index 79a5ce84f0..e82f72d6aa 100644 --- a/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml @@ -371,7 +371,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml index d384260e83..5adabbc0a6 100644 --- a/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml @@ -397,7 +397,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml b/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml index e0eade71cf..ccaedfbc54 100644 --- a/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml @@ -249,7 +249,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml b/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml index 251833b5cd..4350f1dfd0 100644 --- a/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml @@ -377,7 +377,11 @@ step: schema: temp/backup type: switch - elements: - - disable: showArchiverAlert + - disable: + name: showArchiverAlert + watchPaths: + - schema/spec/admin/storageClasses/default + - schema/spec/mode label: Enable Archiver? watcher: func: onArchiverChange diff --git a/schemas/ui-schema.json b/schemas/ui-schema.json index 3176b085f8..d0700c641a 100644 --- a/schemas/ui-schema.json +++ b/schemas/ui-schema.json @@ -25,7 +25,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType" @@ -72,7 +79,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "element": { "additionalProperties": false, @@ -130,7 +144,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "disableUnselect": { "type": "boolean" @@ -291,7 +312,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "elements": { "items": { @@ -354,7 +382,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "elements": { "items": { @@ -523,7 +558,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType" @@ -598,7 +640,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "editorHeight": { "type": "string" @@ -743,7 +792,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "forceRequired": { "type": "boolean" @@ -793,7 +849,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "header": { "type": "string" @@ -843,7 +906,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "hasIcon": { "type": "boolean" @@ -926,7 +996,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "header": { "type": "string" @@ -979,7 +1056,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "editorHeight": { "type": "string" @@ -1080,7 +1164,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType" @@ -1185,7 +1276,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType" @@ -1235,7 +1333,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType" @@ -1279,7 +1384,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "disableUnselect": { "type": "boolean" @@ -1335,7 +1447,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "header": { "type": "string" @@ -1417,7 +1536,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "fullwidth": { "type": "boolean" @@ -1511,7 +1637,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "height": { "type": "string" @@ -1588,7 +1721,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "disableUnselect": { "type": "boolean" @@ -1650,7 +1790,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType" @@ -1703,7 +1850,14 @@ "type": "string" }, "disable": { - "type": ["boolean", "string"] + "anyOf": [ + { + "type": "boolean" + }, + { + "$ref": "#/definitions/LoaderType" + } + ] }, "if": { "$ref": "#/definitions/IfType"