From a417564f60ee113676d34c960ad18ab88e6be235 Mon Sep 17 00:00:00 2001 From: sourav-roy Date: Fri, 23 Jan 2026 18:15:40 +0600 Subject: [PATCH 1/2] fix configuration database for all db Signed-off-by: sourav-roy --- .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 126 ++++++++---------- .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - .../ui/create-ui.yaml | 5 +- .../ui/functions.js | 6 - 44 files changed, 80 insertions(+), 282 deletions(-) diff --git a/charts/kubedbcom-clickhouse-editor-options/ui/create-ui.yaml b/charts/kubedbcom-clickhouse-editor-options/ui/create-ui.yaml index 4aacf1d169..537ddcc90c 100644 --- a/charts/kubedbcom-clickhouse-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-clickhouse-editor-options/ui/create-ui.yaml @@ -271,10 +271,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-clickhouse-editor-options/ui/functions.js b/charts/kubedbcom-clickhouse-editor-options/ui/functions.js index 7891215502..ec85c9985d 100644 --- a/charts/kubedbcom-clickhouse-editor-options/ui/functions.js +++ b/charts/kubedbcom-clickhouse-editor-options/ui/functions.js @@ -1244,11 +1244,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1325,7 +1320,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, returnFalse, initBundle, diff --git a/charts/kubedbcom-druid-editor-options/ui/create-ui.yaml b/charts/kubedbcom-druid-editor-options/ui/create-ui.yaml index b89033af91..f89c080af4 100644 --- a/charts/kubedbcom-druid-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-druid-editor-options/ui/create-ui.yaml @@ -399,10 +399,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-druid-editor-options/ui/functions.js b/charts/kubedbcom-druid-editor-options/ui/functions.js index 7136a64665..7103b9ce2d 100644 --- a/charts/kubedbcom-druid-editor-options/ui/functions.js +++ b/charts/kubedbcom-druid-editor-options/ui/functions.js @@ -1067,11 +1067,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1141,7 +1136,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, returnFalse, initBundle, diff --git a/charts/kubedbcom-elasticsearch-editor-options/ui/create-ui.yaml b/charts/kubedbcom-elasticsearch-editor-options/ui/create-ui.yaml index 1f8cc16efd..683ac16b33 100644 --- a/charts/kubedbcom-elasticsearch-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-elasticsearch-editor-options/ui/create-ui.yaml @@ -357,10 +357,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js b/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js index 1ee8274fe2..1809b653d0 100644 --- a/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js +++ b/charts/kubedbcom-elasticsearch-editor-options/ui/functions.js @@ -1082,11 +1082,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1156,7 +1151,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, returnFalse, initBundle, diff --git a/charts/kubedbcom-ferretdb-editor-options/ui/create-ui.yaml b/charts/kubedbcom-ferretdb-editor-options/ui/create-ui.yaml index a0a13f2592..606b76c941 100644 --- a/charts/kubedbcom-ferretdb-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-ferretdb-editor-options/ui/create-ui.yaml @@ -275,10 +275,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-ferretdb-editor-options/ui/functions.js b/charts/kubedbcom-ferretdb-editor-options/ui/functions.js index 70ad04d434..24a4e17779 100644 --- a/charts/kubedbcom-ferretdb-editor-options/ui/functions.js +++ b/charts/kubedbcom-ferretdb-editor-options/ui/functions.js @@ -1158,11 +1158,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1264,7 +1259,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, initBundle, returnFalse, diff --git a/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml b/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml index 651e92a628..63f3fe7801 100644 --- a/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-hazelcast-editor-options/ui/create-ui.yaml @@ -172,10 +172,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-hazelcast-editor-options/ui/functions.js b/charts/kubedbcom-hazelcast-editor-options/ui/functions.js index 82e7ba12b9..9a4ad81b48 100644 --- a/charts/kubedbcom-hazelcast-editor-options/ui/functions.js +++ b/charts/kubedbcom-hazelcast-editor-options/ui/functions.js @@ -1316,11 +1316,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1502,7 +1497,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, initBundle, returnFalse, setLimits, diff --git a/charts/kubedbcom-kafka-editor-options/ui/create-ui.yaml b/charts/kubedbcom-kafka-editor-options/ui/create-ui.yaml index fd2901098b..4209e2ef96 100644 --- a/charts/kubedbcom-kafka-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-kafka-editor-options/ui/create-ui.yaml @@ -296,10 +296,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-kafka-editor-options/ui/functions.js b/charts/kubedbcom-kafka-editor-options/ui/functions.js index 3e38644eaa..d0d556d625 100644 --- a/charts/kubedbcom-kafka-editor-options/ui/functions.js +++ b/charts/kubedbcom-kafka-editor-options/ui/functions.js @@ -989,11 +989,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1063,7 +1058,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, initBundle, returnFalse, diff --git a/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml index 6a67b580c0..b1161f744c 100644 --- a/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mariadb-editor-options/ui/create-ui.yaml @@ -172,10 +172,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-mariadb-editor-options/ui/functions.js b/charts/kubedbcom-mariadb-editor-options/ui/functions.js index 5a33b860af..9e7dc5ac10 100644 --- a/charts/kubedbcom-mariadb-editor-options/ui/functions.js +++ b/charts/kubedbcom-mariadb-editor-options/ui/functions.js @@ -733,11 +733,6 @@ export const useFunc = (model) => { return getValue(discriminator, '/configDatabase') } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - function clearConfiguration() { const configOn = getValue(discriminator, '/configDatabase') @@ -1421,7 +1416,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, setPointInTimeRecovery, pointInTimeErrorCheck, isRancherManaged, diff --git a/charts/kubedbcom-memcached-editor-options/ui/create-ui.yaml b/charts/kubedbcom-memcached-editor-options/ui/create-ui.yaml index 220b0c333c..d74b4dc185 100644 --- a/charts/kubedbcom-memcached-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-memcached-editor-options/ui/create-ui.yaml @@ -146,10 +146,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-memcached-editor-options/ui/functions.js b/charts/kubedbcom-memcached-editor-options/ui/functions.js index c7b88a5aa6..6cd99ec320 100644 --- a/charts/kubedbcom-memcached-editor-options/ui/functions.js +++ b/charts/kubedbcom-memcached-editor-options/ui/functions.js @@ -1022,11 +1022,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1096,7 +1091,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, updateAlertValue, showAdditionalSettings, initBundle, diff --git a/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml index 924167ffc2..f3ba788bff 100644 --- a/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mongodb-editor-options/ui/create-ui.yaml @@ -389,10 +389,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-mongodb-editor-options/ui/functions.js b/charts/kubedbcom-mongodb-editor-options/ui/functions.js index aa386e77cc..fdce7721b9 100644 --- a/charts/kubedbcom-mongodb-editor-options/ui/functions.js +++ b/charts/kubedbcom-mongodb-editor-options/ui/functions.js @@ -854,11 +854,6 @@ export const useFunc = (model) => { return getValue(discriminator, '/configDatabase') } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - function clearConfiguration() { const configOn = getValue(discriminator, '/configDatabase') @@ -1611,7 +1606,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, setPointInTimeRecovery, pointInTimeErrorCheck, checkHostnameOrIP, diff --git a/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml index 31aae6fecf..79a5ce84f0 100644 --- a/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mssqlserver-editor-options/ui/create-ui.yaml @@ -228,10 +228,7 @@ step: label: password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js b/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js index d1d001e910..fff5610424 100644 --- a/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js +++ b/charts/kubedbcom-mssqlserver-editor-options/ui/functions.js @@ -1396,11 +1396,6 @@ export const useFunc = (model) => { return } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1470,7 +1465,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, setPointInTimeRecovery, pointInTimeErrorCheck, getRecoveryNames, diff --git a/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml b/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml index 4ff1742c32..d384260e83 100644 --- a/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-mysql-editor-options/ui/create-ui.yaml @@ -240,10 +240,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-mysql-editor-options/ui/functions.js b/charts/kubedbcom-mysql-editor-options/ui/functions.js index c214fc4b47..91706befdd 100644 --- a/charts/kubedbcom-mysql-editor-options/ui/functions.js +++ b/charts/kubedbcom-mysql-editor-options/ui/functions.js @@ -1363,11 +1363,6 @@ export const useFunc = (model) => { return } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1476,7 +1471,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, setPointInTimeRecovery, pointInTimeErrorCheck, getRecoveryNames, diff --git a/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml b/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml index da3f8b527c..e0eade71cf 100644 --- a/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-oracle-editor-options/ui/create-ui.yaml @@ -170,10 +170,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-oracle-editor-options/ui/functions.js b/charts/kubedbcom-oracle-editor-options/ui/functions.js index c8b5b7c6f3..517285f4f7 100644 --- a/charts/kubedbcom-oracle-editor-options/ui/functions.js +++ b/charts/kubedbcom-oracle-editor-options/ui/functions.js @@ -1252,11 +1252,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1414,7 +1409,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, initBundle, returnFalse, setLimits, diff --git a/charts/kubedbcom-perconaxtradb-editor-options/ui/create-ui.yaml b/charts/kubedbcom-perconaxtradb-editor-options/ui/create-ui.yaml index b662dfbc18..339f143b76 100644 --- a/charts/kubedbcom-perconaxtradb-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-perconaxtradb-editor-options/ui/create-ui.yaml @@ -161,10 +161,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js b/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js index 850d6ba9e8..c787866f30 100644 --- a/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js +++ b/charts/kubedbcom-perconaxtradb-editor-options/ui/functions.js @@ -1277,11 +1277,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1351,7 +1346,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, initBundle, returnFalse, diff --git a/charts/kubedbcom-pgbouncer-editor-options/ui/create-ui.yaml b/charts/kubedbcom-pgbouncer-editor-options/ui/create-ui.yaml index 3968964323..443365664b 100644 --- a/charts/kubedbcom-pgbouncer-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-pgbouncer-editor-options/ui/create-ui.yaml @@ -173,10 +173,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js b/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js index 486dd4c65b..2aa6e55bf1 100644 --- a/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js +++ b/charts/kubedbcom-pgbouncer-editor-options/ui/functions.js @@ -1003,11 +1003,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1077,7 +1072,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, showAdditionalSettings, initBundle, returnFalse, diff --git a/charts/kubedbcom-pgpool-editor-options/ui/create-ui.yaml b/charts/kubedbcom-pgpool-editor-options/ui/create-ui.yaml index 95a51be4bc..5a7203389a 100644 --- a/charts/kubedbcom-pgpool-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-pgpool-editor-options/ui/create-ui.yaml @@ -185,10 +185,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-pgpool-editor-options/ui/functions.js b/charts/kubedbcom-pgpool-editor-options/ui/functions.js index 7df51d86e9..7e5f690534 100644 --- a/charts/kubedbcom-pgpool-editor-options/ui/functions.js +++ b/charts/kubedbcom-pgpool-editor-options/ui/functions.js @@ -316,7 +316,6 @@ const modeDetails = { }, } - export const useFunc = (model) => { const { getValue, setDiscriminatorValue, commit, storeGet, discriminator } = useOperator( model, @@ -330,13 +329,13 @@ export const useFunc = (model) => { setDiscriminatorValue('referSecret', false) setDiscriminatorValue('monitoring', false) - function isEqualToModelPathValue(value, modelPath) { + function isEqualToModelPathValue(value, modelPath) { const modelPathValue = getValue(model, modelPath) // watchDependency('model#' + modelPath) return modelPathValue === value } let array = [] - function getMachineListForOptions() { + function getMachineListForOptions() { const machinesFromPreset = getValue(model, '/spec/admin/machineProfiles/machines') const available = getValue(model, '/spec/admin/machineProfiles/available') @@ -367,7 +366,7 @@ export const useFunc = (model) => { return array } - function setLimits(resource, type) { + function setLimits(resource, type) { const path = type ? `/spec/${type}/podResources/machine` : '/spec/podResources/machine' // watchDependency(`model#${path}`) const selectedMachine = getValue(model, path) || 'custom' @@ -482,7 +481,7 @@ export const useFunc = (model) => { return cpuMemoryValue } - function setRequests(resource) { + function setRequests(resource) { const modelPath = `/spec/podResources/resources/requests/${resource}` const val = getValue(model, modelPath) commitPath = `/spec/podResources/resources/limits/${resource}` @@ -493,12 +492,12 @@ export const useFunc = (model) => { }) } - function setMachineToCustom() { + function setMachineToCustom() { const machine = getValue(model, '/spec/admin/machineProfiles/default') return machine || 'custom' } - async function fetchJsons() { + async function fetchJsons() { let ui = {} let language = {} let functions = {} @@ -528,7 +527,7 @@ export const useFunc = (model) => { } } - function updateAgentValue(val) { + function updateAgentValue(val) { commit('wizard/model$update', { path: '/spec/monitoring/agent', value: val ? 'prometheus.io/operator' : '', @@ -543,7 +542,7 @@ export const useFunc = (model) => { }) } - function getCreateNameSpaceUrl() { + function getCreateNameSpaceUrl() { const user = storeGet('/route/params/user') const cluster = storeGet('/route/params/cluster') @@ -556,31 +555,31 @@ export const useFunc = (model) => { } } - function ifCapiProviderIsNotEmpty() { + function ifCapiProviderIsNotEmpty() { // watchDependency('model#/form/capi/provider') const val = getValue(model, '/form/capi/provider') if (val) return true } - function showMultiselectZone() { + function showMultiselectZone() { // watchDependency('model#/form/capi/dedicated') const val = getValue(model, '/form/capi/provider') if (val === 'capz' && ifDedicated()) return true } - function showSelectZone() { + function showSelectZone() { // watchDependency('model#/form/capi/dedicated') const val = getValue(model, '/form/capi/provider') if (val !== 'capz' && ifDedicated()) return true } - function ifDedicated() { + function ifDedicated() { const val = getValue(model, 'form/capi/dedicated') if (val) return true } - function dedicatedOnChange() { + function dedicatedOnChange() { const val = getValue(model, 'form/capi/dedicated') if (!val) { commit('wizard/model$delete', 'form/capi/zones') @@ -588,7 +587,7 @@ export const useFunc = (model) => { } } - function ifZones() { + function ifZones() { // watchDependency('model#/form/capi/zones') // watchDependency('model#/form/capi/dedicated') const zones = getValue(model, 'form/capi/zones') || [] @@ -596,12 +595,12 @@ export const useFunc = (model) => { if (zones.length && isDedicated) return true } - function zonesOnChange() { + function zonesOnChange() { const zones = getValue(model, 'form/capi/zones') || [] if (!zones.length) commit('wizard/model$delete', 'form/capi/sku') } - async function getZones() { + async function getZones() { const owner = storeGet('/route/params/user') const cluster = storeGet('/route/params/cluster') const isDedicated = getValue(model, 'form/capi/dedicated') @@ -619,7 +618,7 @@ export const useFunc = (model) => { } } - async function getSKU() { + async function getSKU() { // watchDependency('model#/form/capi/zones') const owner = storeGet('/route/params/user') const cluster = storeGet('/route/params/cluster') @@ -650,12 +649,12 @@ export const useFunc = (model) => { } } - function isVariantAvailable() { + function isVariantAvailable() { const variant = storeGet('/route/query/variant') return variant ? true : false } - function setStorageClass() { + function setStorageClass() { const deletionPolicy = getValue(model, '/spec/deletionPolicy') || '' let storageClass = getValue(model, '/spec/admin/storageClasses/default') || '' const storageClassList = getValue(model, '/spec/admin/storageClasses/available') || [] @@ -690,7 +689,7 @@ export const useFunc = (model) => { let nodetopologiesShared = [] let nodetopologiesDedicated = [] let features = [] - async function initBundle() { + async function initBundle() { const owner = storeGet('/route/params/user') const namespace = getValue(model, '/metadata/release/namespace') const cluster = storeGet('/route/params/cluster') @@ -786,7 +785,7 @@ export const useFunc = (model) => { setDiscriminatorValue('/bundleApiLoaded', true) } - function fetchOptions(type) { + function fetchOptions(type) { let kind = getValue(model, '/metadata/resource/kind') let returnArray = [] @@ -812,7 +811,7 @@ export const useFunc = (model) => { return returnArray } - function getAdminOptions(type) { + function getAdminOptions(type) { // watchDependency('discriminator#/bundleApiLoaded') const options = getValue(model, `/spec/admin/${type}/available`) || [] @@ -832,7 +831,7 @@ export const useFunc = (model) => { return options } - function checkIfFeatureOn(type) { + function checkIfFeatureOn(type) { let val = getValue(model, `/spec/admin/${type}/toggle`) if (type === 'backup' || type === 'archiver') { val = getValue(model, `/spec/admin/${type}/enable/toggle`) @@ -852,7 +851,7 @@ export const useFunc = (model) => { } } - function isToggleOn(type) { + function isToggleOn(type) { // watchDependency('discriminator#/bundleApiLoaded') // watchDependency('model#/spec/admin/deployment/default') const bundleApiLoaded = getValue(discriminator, '/bundleApiLoaded') @@ -889,7 +888,7 @@ export const useFunc = (model) => { } else return getValue(model, `/spec/admin/${type}/toggle`) && bundleApiLoaded } - async function getNodeTopology() { + async function getNodeTopology() { // watchDependency('model#/spec/admin/deployment/default') // watchDependency('model#/spec/admin/clusterTier/default') const deploymentType = getValue(model, '/spec/admin/deployment/default') || '' @@ -905,7 +904,7 @@ export const useFunc = (model) => { return filteredList } - function filterNodeTopology(list, tier, provider) { + function filterNodeTopology(list, tier, provider) { // first filter the list from value that exists from the filtered list got from API const filteredlist = list @@ -964,19 +963,17 @@ export const useFunc = (model) => { } else return filteredlist } - function returnFalse() { + function returnFalse() { return false } - function showAlerts() { + function showAlerts() { // watchDependency('discriminator#/monitoring') const isMonitorEnabled = getValue(discriminator, '/monitoring') - return ( - isMonitorEnabled && isToggleOn('alert') - ) + return isMonitorEnabled && isToggleOn('alert') } - function onBackupSwitch() { + function onBackupSwitch() { const isBackupOn = getValue(discriminator, '/backup') commit('wizard/model$update', { path: '/spec/backup/tool', @@ -985,7 +982,7 @@ export const useFunc = (model) => { }) } - function clearArbiterHidden() { + function clearArbiterHidden() { commit('wizard/model$update', { path: `/spec/arbiter/enabled`, value: false, @@ -999,38 +996,38 @@ export const useFunc = (model) => { }) } - function isConfigDatabaseOn() { + function isConfigDatabaseOn() { // watchDependency('discriminator#/configDatabase') return getValue(discriminator, '/configDatabase') } - function notEqualToDatabaseMode(mode) { + function notEqualToDatabaseMode(mode) { const modelPathValue = getValue(model, '/spec/mode') // watchDependency('model#/spec/mode') return modelPathValue && modelPathValue !== mode } - function showHidden() { + function showHidden() { // watchDependency('model#/spec/hidden/enabled') const isHiddenOn = getValue(model, '/spec/hidden/enabled') || '' const notStandalone = notEqualToDatabaseMode('Standalone') return isHiddenOn && notStandalone } - function notEqualToDatabaseMode(mode) { + function notEqualToDatabaseMode(mode) { const modelPathValue = getValue(model, '/spec/mode') // watchDependency('model#/spec/mode') return modelPathValue && modelPathValue !== mode } - function showArbiter() { + function showArbiter() { // watchDependency('model#/spec/arbiter/enabled') const isArbiterOn = getValue(model, '/spec/arbiter/enabled') || '' const notStandalone = notEqualToDatabaseMode('Standalone') return isArbiterOn && notStandalone } - function clearConfiguration() { + function clearConfiguration() { const configOn = getValue(discriminator, '/configDatabase') if (!configOn) { @@ -1038,14 +1035,14 @@ export const useFunc = (model) => { } } - function showIssuer() { + function showIssuer() { // watchDependency('model#/spec/admin/tls/default') const isTlsEnabled = getValue(model, '/spec/admin/tls/default') const isIssuerToggleEnabled = isToggleOn('clusterIssuers') return isTlsEnabled && isIssuerToggleEnabled } - function onAuthChange() { + function onAuthChange() { commit('wizard/model$update', { path: '/spec/authSecret/name', value: '', @@ -1058,32 +1055,32 @@ export const useFunc = (model) => { }) } - function setMonitoring() { + function setMonitoring() { const agent = getValue(model, '/spec/admin/monitoring/agent') || '' return !!agent } - function setBackup() { + function setBackup() { const backup = getValue(model, '/spec/backup/tool') const val = getValue(model, '/spec/admin/backup/enable/default') return backup === 'KubeStash' && features.includes('backup') && val } - function isMachineCustom(path) { + function isMachineCustom(path) { const fullpath = path ? `/spec/${path}/podResources/machine` : '/spec/podResources/machine' const modelPathValue = getValue(model, fullpath) // watchDependency(`model#${fullpath}`) return modelPathValue === 'custom' } - function isMachineNotCustom(path) { + function isMachineNotCustom(path) { const fullpath = path ? `/spec/${path}/podResources/machine` : '/spec/podResources/machine' const modelPathValue = getValue(model, fullpath) // watchDependency(`model#${fullpath}`) return modelPathValue !== 'custom' && !!modelPathValue } - async function getNamespaces() { + async function getNamespaces() { const params = storeGet('/route/params') const { user, cluster, group, version, resource } = params try { @@ -1124,13 +1121,13 @@ export const useFunc = (model) => { return [] } - function isRancherManaged() { + function isRancherManaged() { const managers = storeGet('/cluster/clusterDefinition/result/clusterManagers') const found = managers.find((item) => item === 'Rancher') return !!found } - function updateAlertValue() { + function updateAlertValue() { const isMonitorEnabled = getValue(discriminator, '/monitoring') const alert = isMonitorEnabled ? 'warning' : 'none' // update alert value depend on monitoring profile @@ -1147,7 +1144,7 @@ export const useFunc = (model) => { }) } - function onModeChange() { + function onModeChange() { const dbMode = getValue(model, '/spec/mode') commit('wizard/model$update', { path: '/spec/replicas', @@ -1156,7 +1153,7 @@ export const useFunc = (model) => { }) } - async function getAppBindings(type) { + async function getAppBindings(type) { const owner = storeGet('/route/params/user') const cluster = storeGet('/route/params/cluster') const queryParams = { @@ -1194,7 +1191,7 @@ export const useFunc = (model) => { } } - function onRefChange(type) { + function onRefChange(type) { const ref = getValue(discriminator, `/${type}`) || {} commit('wizard/model$update', { path: `/spec/${type}/name`, @@ -1208,22 +1205,17 @@ export const useFunc = (model) => { }) } - function showAdditionalSettings() { + function showAdditionalSettings() { // watchDependency('discriminator#/bundleApiLoaded') return features.length } - function getDefault(type) { + function getDefault(type) { const val = getValue(model, `/spec/admin/${type}/default`) || '' return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - - async function getReferSecrets() { + async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { return [] @@ -1247,36 +1239,36 @@ export const useFunc = (model) => { return options } - function showAuthPasswordField() { + function showAuthPasswordField() { const modelPathValue = getValue(discriminator, '/referSecret') // watchDependency('discriminator#/referSecret') return !modelPathValue && showReferSecret() } - function showSecretDropdown() { + function showSecretDropdown() { const modelPathValue = getValue(discriminator, '/referSecret') // watchDependency('discriminator#/referSecret') return !!modelPathValue && showReferSecret() } - function showReferSecret() { + function showReferSecret() { const modelPathValue = getValue(discriminator, '/createAuthSecret') // watchDependency('discriminator#/createAuthSecret') return !!modelPathValue } - function getDefaultValue(path) { + function getDefaultValue(path) { const val = getValue(model, `/${path}`) || '' return val } - function showReferSecretSwitch() { + function showReferSecretSwitch() { const modelPathValue = getValue(model, '/spec/admin/authCredential/referExisting') // watchDependency('discriminator#/createAuthSecret') return !!modelPathValue && showReferSecret() } - function onReferSecretChange() { + function onReferSecretChange() { commit('wizard/model$update', { path: '/spec/authSecret/name', value: '', @@ -1292,7 +1284,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, returnFalse, initBundle, getNamespaces, @@ -1341,5 +1332,4 @@ export const useFunc = (model) => { showAdditionalSettings, getDefault, } - } diff --git a/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml b/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml index da31403973..251833b5cd 100644 --- a/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-postgres-editor-options/ui/create-ui.yaml @@ -195,10 +195,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-postgres-editor-options/ui/functions.js b/charts/kubedbcom-postgres-editor-options/ui/functions.js index a722d8c91a..921b3d885d 100644 --- a/charts/kubedbcom-postgres-editor-options/ui/functions.js +++ b/charts/kubedbcom-postgres-editor-options/ui/functions.js @@ -1535,11 +1535,6 @@ export const useFunc = (model) => { return } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1648,7 +1643,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, setPointInTimeRecovery, pointInTimeErrorCheck, getRecoveryNames, diff --git a/charts/kubedbcom-proxysql-editor-options/ui/create-ui.yaml b/charts/kubedbcom-proxysql-editor-options/ui/create-ui.yaml index 9813008c8e..9e07f25045 100644 --- a/charts/kubedbcom-proxysql-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-proxysql-editor-options/ui/create-ui.yaml @@ -169,10 +169,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-proxysql-editor-options/ui/functions.js b/charts/kubedbcom-proxysql-editor-options/ui/functions.js index e0c2cfef38..7c6137bcaf 100644 --- a/charts/kubedbcom-proxysql-editor-options/ui/functions.js +++ b/charts/kubedbcom-proxysql-editor-options/ui/functions.js @@ -1268,11 +1268,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1342,7 +1337,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, initBundle, returnFalse, EqualToDatabaseMode, diff --git a/charts/kubedbcom-rabbitmq-editor-options/ui/create-ui.yaml b/charts/kubedbcom-rabbitmq-editor-options/ui/create-ui.yaml index bf41ff1e0b..ea1a59616b 100644 --- a/charts/kubedbcom-rabbitmq-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-rabbitmq-editor-options/ui/create-ui.yaml @@ -176,10 +176,7 @@ step: label: Password (leave it blank to auto generate password) schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js b/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js index 18f9145980..bd26d4184f 100644 --- a/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js +++ b/charts/kubedbcom-rabbitmq-editor-options/ui/functions.js @@ -1283,11 +1283,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1357,7 +1352,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, initBundle, getNamespaces, updateAlertValue, diff --git a/charts/kubedbcom-redis-editor-options/ui/create-ui.yaml b/charts/kubedbcom-redis-editor-options/ui/create-ui.yaml index 0156dbf85e..3001789b35 100644 --- a/charts/kubedbcom-redis-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-redis-editor-options/ui/create-ui.yaml @@ -256,10 +256,7 @@ step: label: Password (leave it blank to auto generate password) schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-redis-editor-options/ui/functions.js b/charts/kubedbcom-redis-editor-options/ui/functions.js index 44112b7cde..b7fb39b8f1 100644 --- a/charts/kubedbcom-redis-editor-options/ui/functions.js +++ b/charts/kubedbcom-redis-editor-options/ui/functions.js @@ -949,11 +949,6 @@ export const useFunc = (model) => { return true } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - function isConfigDatabaseOn() { // watchDependency('discriminator#/configDatabase') return getValue(discriminator, '/configDatabase') @@ -1424,7 +1419,6 @@ export const useFunc = (model) => { ifZones, initBundle, isAnnounceValid, - isConfigAvailable, isConfigDatabaseOn, isEqualToModelPathValue, isMachineCustom, diff --git a/charts/kubedbcom-singlestore-editor-options/ui/create-ui.yaml b/charts/kubedbcom-singlestore-editor-options/ui/create-ui.yaml index 9e456e5377..984927985d 100644 --- a/charts/kubedbcom-singlestore-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-singlestore-editor-options/ui/create-ui.yaml @@ -317,10 +317,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-singlestore-editor-options/ui/functions.js b/charts/kubedbcom-singlestore-editor-options/ui/functions.js index 7b80f804e7..768f9db149 100644 --- a/charts/kubedbcom-singlestore-editor-options/ui/functions.js +++ b/charts/kubedbcom-singlestore-editor-options/ui/functions.js @@ -810,11 +810,6 @@ export const useFunc = (model) => { setDiscriminatorValue('/bundleApiLoaded', true) } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - function isConfigDatabaseOn() { // watchDependency('discriminator#/configDatabase') return getValue(discriminator, '/configDatabase') @@ -1388,7 +1383,6 @@ export const useFunc = (model) => { ifDedicated, ifZones, initBundle, - isConfigAvailable, isConfigDatabaseOn, isEqualToModelPathValue, isMachineCustom, diff --git a/charts/kubedbcom-solr-editor-options/ui/create-ui.yaml b/charts/kubedbcom-solr-editor-options/ui/create-ui.yaml index d1ee749cfe..0d7e59a860 100644 --- a/charts/kubedbcom-solr-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-solr-editor-options/ui/create-ui.yaml @@ -384,10 +384,7 @@ step: label: Password schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-solr-editor-options/ui/functions.js b/charts/kubedbcom-solr-editor-options/ui/functions.js index 2e90dcc50b..8a634d91ab 100644 --- a/charts/kubedbcom-solr-editor-options/ui/functions.js +++ b/charts/kubedbcom-solr-editor-options/ui/functions.js @@ -723,11 +723,6 @@ export const useFunc = (model) => { setDiscriminatorValue('/bundleApiLoaded', true) } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - function isConfigDatabaseOn() { // watchDependency('discriminator#/configDatabase') return getValue(discriminator, '/configDatabase') @@ -1167,7 +1162,6 @@ export const useFunc = (model) => { getResources, getSecrets, initBundle, - isConfigAvailable, isConfigDatabaseOn, isEqualToModelPathValue, isMachineCustom, diff --git a/charts/kubedbcom-zookeeper-editor-options/ui/create-ui.yaml b/charts/kubedbcom-zookeeper-editor-options/ui/create-ui.yaml index d1c39a4fd2..66f6f586be 100644 --- a/charts/kubedbcom-zookeeper-editor-options/ui/create-ui.yaml +++ b/charts/kubedbcom-zookeeper-editor-options/ui/create-ui.yaml @@ -172,10 +172,7 @@ step: label: Password (leave it blank to auto generate password) schema: schema/properties/spec/properties/authSecret/properties/password type: input - - init: - type: func - value: isConfigAvailable - if: + - if: type: function name: getDefaultValue|spec/admin/customConfiguration label: Configure Database? diff --git a/charts/kubedbcom-zookeeper-editor-options/ui/functions.js b/charts/kubedbcom-zookeeper-editor-options/ui/functions.js index 9f7fa27843..17e1f6dc45 100644 --- a/charts/kubedbcom-zookeeper-editor-options/ui/functions.js +++ b/charts/kubedbcom-zookeeper-editor-options/ui/functions.js @@ -1225,11 +1225,6 @@ export const useFunc = (model) => { return val } - function isConfigAvailable() { - const val = getValue(model, '/spec/configuration') - return val !== '' - } - async function getReferSecrets() { const referSecret = getValue(discriminator, '/referSecret') if (!referSecret) { @@ -1304,7 +1299,6 @@ export const useFunc = (model) => { showSecretDropdown, showReferSecret, getReferSecrets, - isConfigAvailable, initBundle, returnFalse, isVariantAvailable, From d2b15bd59cda041b59fd1edbab893377e51cb5a5 Mon Sep 17 00:00:00 2001 From: sourav-roy Date: Mon, 26 Jan 2026 10:38:31 +0600 Subject: [PATCH 2/2] remove scaling threshold from all db Signed-off-by: sourav-roy --- charts/kubedbcom-kafka-editor/ui/edit-ui.yaml | 17 ----------------- charts/kubedbcom-mongodb-editor/ui/edit-ui.yaml | 15 --------------- charts/kubedbcom-mysql-editor/ui/edit-ui.yaml | 3 --- .../ui/edit-ui.yaml | 3 --- .../kubedbcom-postgres-editor/ui/edit-ui.yaml | 3 --- charts/kubedbcom-redis-editor/ui/edit-ui.yaml | 3 --- .../ui/edit-ui.yaml | 9 --------- charts/kubedbcom-solr-editor/ui/edit-ui.yaml | 12 ------------ 8 files changed, 65 deletions(-) diff --git a/charts/kubedbcom-kafka-editor/ui/edit-ui.yaml b/charts/kubedbcom-kafka-editor/ui/edit-ui.yaml index 3641eaf215..792adc3eb4 100644 --- a/charts/kubedbcom-kafka-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-kafka-editor/ui/edit-ui.yaml @@ -576,9 +576,6 @@ step: func: handleUnit|autoscalingKubedbComKafkaAutoscaler/spec/storage/broker/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/broker/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/broker/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/broker/properties/upperBound @@ -631,10 +628,6 @@ step: label: UsageThreshold (%) subtitle: Set the storage usage percentage that triggers automatic expansion schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/controller/properties/usageThreshold - - type: input - label: Scaling Threshold - customClass: width-300 - schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/controller/properties/scalingThreshold - type: scaling-rules label: Scaling Rules schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/controller/properties/scalingRules @@ -643,9 +636,6 @@ step: func: handleUnit|autoscalingKubedbComKafkaAutoscaler/spec/storage/controller/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/controller/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/controller/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/controller/properties/upperBound @@ -699,10 +689,6 @@ step: subtitle: Set the storage usage percentage that triggers automatic expansion customClass: width-300 schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/node/properties/usageThreshold - - type: input - label: Scaling Threshold - customClass: width-300 - schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingThreshold - type: scaling-rules label: Scaling Rules schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingRules @@ -711,9 +697,6 @@ step: func: handleUnit|autoscalingKubedbComKafkaAutoscaler/spec/storage/node/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComKafkaAutoscaler/properties/spec/properties/storage/properties/node/properties/upperBound diff --git a/charts/kubedbcom-mongodb-editor/ui/edit-ui.yaml b/charts/kubedbcom-mongodb-editor/ui/edit-ui.yaml index 34908f40c3..1effd18128 100644 --- a/charts/kubedbcom-mongodb-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-mongodb-editor/ui/edit-ui.yaml @@ -1441,9 +1441,6 @@ step: func: handleUnit|autoscalingKubedbComMongoDBAutoscaler/spec/storage/standalone/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/standalone/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/standalone/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/standalone/properties/upperBound @@ -1503,9 +1500,6 @@ step: func: handleUnit|autoscalingKubedbComMongoDBAutoscaler/spec/storage/replicaSet/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/replicaSet/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/replicaSet/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/replicaSet/properties/upperBound @@ -1575,9 +1569,6 @@ step: func: handleUnit|autoscalingKubedbComMongoDBAutoscaler/spec/storage/shard/upperBound paths: - schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/shard/properties/upperBound - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/shard/properties/scalingThreshold - type: switch label: Trigger fullwidth: true @@ -1624,9 +1615,6 @@ step: func: handleUnit|autoscalingKubedbComMongoDBAutoscaler/spec/storage/configServer/upperBound paths: - schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/configServer/properties/upperBound - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/configServer/properties/scalingThreshold - type: switch label: Trigger fullwidth: true @@ -1676,9 +1664,6 @@ step: func: handleUnit|autoscalingKubedbComMongoDBAutoscaler/spec/storage/hidden/upperBound paths: - schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/hidden/properties/upperBound - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComMongoDBAutoscaler/properties/spec/properties/storage/properties/hidden/properties/scalingThreshold - type: block-layout label: Ops Request Options showLabels: true diff --git a/charts/kubedbcom-mysql-editor/ui/edit-ui.yaml b/charts/kubedbcom-mysql-editor/ui/edit-ui.yaml index 4bd37a704a..8607c4fafa 100644 --- a/charts/kubedbcom-mysql-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-mysql-editor/ui/edit-ui.yaml @@ -428,9 +428,6 @@ step: func: handleUnit|autoscalingKubedbComMySQLAutoscaler/spec/storage/mysql/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComMySQLAutoscaler/properties/spec/properties/storage/properties/mysql/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComMySQLAutoscaler/properties/spec/properties/storage/properties/mysql/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComMySQLAutoscaler/properties/spec/properties/storage/properties/mysql/properties/upperBound diff --git a/charts/kubedbcom-perconaxtradb-editor/ui/edit-ui.yaml b/charts/kubedbcom-perconaxtradb-editor/ui/edit-ui.yaml index 0d9ba37dac..186a8cb120 100644 --- a/charts/kubedbcom-perconaxtradb-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-perconaxtradb-editor/ui/edit-ui.yaml @@ -267,9 +267,6 @@ step: func: handleUnit|autoscalingKubedbComPerconaXtraDBAutoscaler/spec/storage/perconaxtradb/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComPerconaXtraDBAutoscaler/properties/spec/properties/storage/properties/perconaxtradb/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComPerconaXtraDBAutoscaler/properties/spec/properties/storage/properties/perconaxtradb/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComPerconaXtraDBAutoscaler/properties/spec/properties/storage/properties/perconaxtradb/properties/upperBound diff --git a/charts/kubedbcom-postgres-editor/ui/edit-ui.yaml b/charts/kubedbcom-postgres-editor/ui/edit-ui.yaml index be188275bb..2283ce6d91 100644 --- a/charts/kubedbcom-postgres-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-postgres-editor/ui/edit-ui.yaml @@ -428,9 +428,6 @@ step: func: handleUnit|autoscalingKubedbComPostgresAutoscaler/spec/storage/postgres/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComPostgresAutoscaler/properties/spec/properties/storage/properties/postgres/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComPostgresAutoscaler/properties/spec/properties/storage/properties/postgres/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComPostgresAutoscaler/properties/spec/properties/storage/properties/postgres/properties/upperBound diff --git a/charts/kubedbcom-redis-editor/ui/edit-ui.yaml b/charts/kubedbcom-redis-editor/ui/edit-ui.yaml index 20bc1e2ff2..adddecc3a5 100644 --- a/charts/kubedbcom-redis-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-redis-editor/ui/edit-ui.yaml @@ -640,9 +640,6 @@ step: func: handleUnit|autoscalingKubedbComRedisAutoscaler/spec/storage/redis/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComRedisAutoscaler/properties/spec/properties/storage/properties/redis/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComRedisAutoscaler/properties/spec/properties/storage/properties/redis/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComRedisAutoscaler/properties/spec/properties/storage/properties/redis/properties/upperBound diff --git a/charts/kubedbcom-singlestore-editor/ui/edit-ui.yaml b/charts/kubedbcom-singlestore-editor/ui/edit-ui.yaml index 9f9b5d005e..91d933dd6d 100644 --- a/charts/kubedbcom-singlestore-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-singlestore-editor/ui/edit-ui.yaml @@ -651,9 +651,6 @@ step: func: handleUnit|autoscalingKubedbComSinglestoreAutoscaler/spec/storage/aggregator/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/aggregator/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/aggregator/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/aggregator/properties/upperBound @@ -718,9 +715,6 @@ step: func: handleUnit|autoscalingKubedbComSinglestoreAutoscaler/spec/storage/leaf/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/leaf/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/leaf/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/leaf/properties/upperBound @@ -785,9 +779,6 @@ step: func: handleUnit|autoscalingKubedbComSinglestoreAutoscaler/spec/storage/node/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingThreshold - type: input label: UpperBound schema: schema/properties/resources/properties/autoscalingKubedbComSinglestoreAutoscaler/properties/spec/properties/storage/properties/node/properties/upperBound diff --git a/charts/kubedbcom-solr-editor/ui/edit-ui.yaml b/charts/kubedbcom-solr-editor/ui/edit-ui.yaml index 2b923eaf48..424799e954 100644 --- a/charts/kubedbcom-solr-editor/ui/edit-ui.yaml +++ b/charts/kubedbcom-solr-editor/ui/edit-ui.yaml @@ -116,9 +116,6 @@ step: func: handleUnit|autoscalingKubedbComSolrAutoscaler/spec/storage/coordinator/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/coordinator/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/coordinator/properties/scalingThreshold - type: input label: Upper Bound schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/coordinator/properties/upperBound @@ -181,9 +178,6 @@ step: func: handleUnit|autoscalingKubedbComSolrAutoscaler/spec/storage/data/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/data/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/data/properties/scalingThreshold - type: input label: Upper Bound schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/data/properties/upperBound @@ -246,9 +240,6 @@ step: func: handleUnit|autoscalingKubedbComSolrAutoscaler/spec/storage/overseer/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/overseer/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/overseer/properties/scalingThreshold - type: input label: Upper Bound schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/overseer/properties/upperBound @@ -311,9 +302,6 @@ step: func: handleUnit|autoscalingKubedbComSolrAutoscaler/spec/storage/node/scalingRules|scalingRules paths: - schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingRules - - type: input - label: Scaling Threshold - schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/node/properties/scalingThreshold - type: input label: Upper Bound schema: schema/properties/resources/properties/autoscalingKubedbComSolrAutoscaler/properties/spec/properties/storage/properties/node/properties/upperBound