diff --git a/pkg/harvester/edit/harvesterhci.io.storage/index.vue b/pkg/harvester/edit/harvesterhci.io.storage/index.vue index d3533cb4..1ee1dc1d 100644 --- a/pkg/harvester/edit/harvesterhci.io.storage/index.vue +++ b/pkg/harvester/edit/harvesterhci.io.storage/index.vue @@ -13,21 +13,18 @@ import Loading from '@shell/components/Loading'; import { _CREATE, _VIEW } from '@shell/config/query-params'; import { mapFeature, UNSUPPORTED_STORAGE_DRIVERS } from '@shell/store/features'; -import { - STORAGE_CLASS, LONGHORN, LONGHORN_DRIVER, SECRET, NAMESPACE +import { + STORAGE_CLASS, LONGHORN, LONGHORN_DRIVER, SECRET, NAMESPACE } from '@shell/config/types'; import { allHash } from '@shell/utils/promise'; import { clone } from '@shell/utils/object'; import { CSI_DRIVER } from '../../types'; import Tags from '../../components/DiskTags'; - +import { DATA_ENGINE_V1, DATA_ENGINE_V2 } from '../../models/harvester/persistentvolumeclaim'; import { LVM_DRIVER } from '../../models/harvester/storage.k8s.io.storageclass'; const LONGHORN_V2_DATA_ENGINE = 'longhorn-system/v2-data-engine'; -export const DATA_ENGINE_V1 = 'v1'; -export const DATA_ENGINE_V2 = 'v2'; - export const LVM_TOPOLOGY_LABEL = 'topology.lvm.csi/node'; const VOLUME_BINDING_MODE_IMMEDIATE = 'Immediate'; @@ -304,10 +301,10 @@ export default { class="mb-20" /> - -
diff --git a/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io_v1.vue b/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io_v1.vue index 10f8c806..9196603c 100644 --- a/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io_v1.vue +++ b/pkg/harvester/edit/harvesterhci.io.storage/provisioners/driver.longhorn.io_v1.vue @@ -8,7 +8,7 @@ import { _CREATE, _VIEW } from '@shell/config/query-params'; import { CSI_SECRETS } from '@pkg/harvester/config/harvester-map'; import { clone } from '@shell/utils/object'; import { uniq } from '@shell/utils/array'; -import { DATA_ENGINE_V1 } from '../index.vue'; +import { DATA_ENGINE_V1 } from '../../../models/harvester/persistentvolumeclaim'; // UI components for Longhorn storage class parameters const DEFAULT_PARAMETERS = [ @@ -282,9 +282,9 @@ export default { :mode="mode" >