diff --git a/src/pages/cluster/components/plugin/uiSchemas.js b/src/pages/cluster/components/plugin/uiSchemas.js index 1ec286ec..ab0a2eed 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/pages/cluster/containers/Cluster/actions/Create/Cluster.jsx b/src/pages/cluster/containers/Cluster/actions/Create/Cluster.jsx index 4c4d040c..3f6ef516 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 5312803d..ad2f3efa 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 }); } diff --git a/src/utils/object.mapper.js b/src/utils/object.mapper.js index ff6a4358..b7090996 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(