From b5a02d3f3f6f43ff3ca34bab0ed305705adcb717 Mon Sep 17 00:00:00 2001 From: lixd Date: Tue, 13 Oct 2026 22:49:17 +0800 Subject: [PATCH 1/2] fix: load cluster versions before initializing configuration step Signed-off-by: lixd --- .../cluster/containers/Cluster/actions/Create/Cluster.jsx | 1 + .../cluster/containers/Cluster/actions/Create/index.jsx | 5 ----- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/pages/cluster/containers/Cluster/actions/Create/Cluster.jsx b/src/pages/cluster/containers/Cluster/actions/Create/Cluster.jsx index 4c4d040..3f6ef51 100644 --- a/src/pages/cluster/containers/Cluster/actions/Create/Cluster.jsx +++ b/src/pages/cluster/containers/Cluster/actions/Create/Cluster.jsx @@ -61,6 +61,7 @@ export default class Cluster extends BaseForm { await Promise.all([ this.getBackupPoint(), this.registryStore.fetchList({ limit: -1 }), + this.store.fetchVersion({ limit: -1 }), ]); await this.initVersions(); } diff --git a/src/pages/cluster/containers/Cluster/actions/Create/index.jsx b/src/pages/cluster/containers/Cluster/actions/Create/index.jsx index 5312803..ad2f3ef 100644 --- a/src/pages/cluster/containers/Cluster/actions/Create/index.jsx +++ b/src/pages/cluster/containers/Cluster/actions/Create/index.jsx @@ -108,7 +108,6 @@ export default class Create extends StepAction { this.templatesStore = rootStore.templatesStore; this.fetchTemplates(); - this.fetchVersion(); } async fetchTemplates() { @@ -116,10 +115,6 @@ export default class Create extends StepAction { this.updateData({ templates }); } - async fetchVersion() { - await this.store.fetchVersion({ limit: -1 }); - } - get successText() { return t('Cluster {name} is installing.', { name: this.instanceName }); } From e3bd65bf577271c39e2557b4d11fb6c17433dfa6 Mon Sep 17 00:00:00 2001 From: lixd Date: Wed, 14 Oct 2026 09:31:39 +0800 Subject: [PATCH 2/2] fix(console): remove retired nfs-provisioner addon entry Signed-off-by: lixd --- .../cluster/components/plugin/uiSchemas.js | 26 ------------------- src/utils/object.mapper.js | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-) diff --git a/src/pages/cluster/components/plugin/uiSchemas.js b/src/pages/cluster/components/plugin/uiSchemas.js index 1ec286e..ab0a2ee 100644 --- a/src/pages/cluster/components/plugin/uiSchemas.js +++ b/src/pages/cluster/components/plugin/uiSchemas.js @@ -48,32 +48,6 @@ export const uiSchemas = [ }, }, }, - { - name: 'nfs-provisioner', - schema: { - properties: { - enable: { - default: false, - priority: 0, - title: 'nfs-provisioner', - type: 'boolean', - }, - reclaimPolicy: { - widget: 'select', - props: {}, - enum: ['Retain', 'Delete'], - enumNames: ['Retain', 'Delete'], - }, - mountOptions: { - widget: 'ArrayString', - props: { - isInput: true, - width: '100%', - }, - }, - }, - }, - }, { name: 'nfs-csi', schema: { diff --git a/src/utils/object.mapper.js b/src/utils/object.mapper.js index ff6a435..b709099 100644 --- a/src/utils/object.mapper.js +++ b/src/utils/object.mapper.js @@ -99,7 +99,7 @@ function filterComponents(array, filters) { */ const ClusterMapper = (item) => { const { metadata, networking } = item; - const STORAGES = ['nfs-provisioner', 'nfs-csi', 'ceph-csi', 'cinder']; + const STORAGES = ['nfs-csi', 'ceph-csi', 'cinder']; const PLUGINS = ['kubesphere', 'metallb']; const components = Object.fromEntries(