mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-25 01:50:53 +08:00
Compare commits
19
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03918dcec7 | ||
|
|
0c6eee1744 | ||
|
|
e66b61d0d1 | ||
|
|
b3961a3483 | ||
|
|
aa5a501c29 | ||
|
|
6a20578424 | ||
|
|
97ce1e90f6 | ||
|
|
f3ca9e4c44 | ||
|
|
08e483e3c8 | ||
|
|
ee915249ce | ||
|
|
784c22e27e | ||
|
|
aa6d11a840 | ||
|
|
67ff2777d6 | ||
|
|
73eaccc2ad | ||
|
|
12c28c08fa | ||
|
|
840f9de73e | ||
|
|
3fb2d3da56 | ||
|
|
77b643540e | ||
|
|
78d0a591a8 |
No files matched your search
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "harvester-ui-extension",
|
||||
"version": "1.10.0-rc3",
|
||||
"version": "1.10.0-dev",
|
||||
"private": false,
|
||||
"engines": {
|
||||
"node": ">=24.0.0"
|
||||
@@ -51,7 +51,7 @@
|
||||
"qs": "6.16.0",
|
||||
"roarr": "7.21.7",
|
||||
"semver": "7.5.4",
|
||||
"serialize-javascript": "7.0.5",
|
||||
"serialize-javascript": "7.1.3",
|
||||
"uuid": "11.1.1",
|
||||
"webpack-dev-server": "5.2.6",
|
||||
"ws": "8.21.0",
|
||||
|
||||
@@ -1,102 +0,0 @@
|
||||
import { shallowMount } from '@vue/test-utils';
|
||||
import BackupTarget from '../backup-target.vue';
|
||||
|
||||
function mountTarget(target) {
|
||||
const setting = { value: JSON.stringify(target) };
|
||||
|
||||
return {
|
||||
setting,
|
||||
wrapper: shallowMount(BackupTarget, {
|
||||
props: { value: setting, mode: 'edit' },
|
||||
global: {
|
||||
mocks: {
|
||||
t: (key) => key,
|
||||
$store: { getters: { 'harvester-common/getFeatureEnabled': () => true } },
|
||||
},
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
describe('component: backup-target', () => {
|
||||
it('should keep virtualHostedStyle, which is part of the Restic and Kopia repository identity', () => {
|
||||
const { setting } = mountTarget({ type: 's3', virtualHostedStyle: true });
|
||||
|
||||
expect(JSON.parse(setting.value).virtualHostedStyle).toBe(true);
|
||||
});
|
||||
|
||||
it('should default virtualHostedStyle to false', () => {
|
||||
const { setting } = mountTarget({ type: 's3' });
|
||||
|
||||
expect(JSON.parse(setting.value).virtualHostedStyle).toBe(false);
|
||||
});
|
||||
|
||||
it.each([
|
||||
['kopiaGCEnabled', { kopiaGCEnabled: true, thirdPartyBackupEnabled: true }],
|
||||
['thirdPartyBackupEnabled', { thirdPartyBackupEnabled: true }],
|
||||
])('should keep %s on S3 and drop it on NFS, where only S3 uses it', (field, fields) => {
|
||||
const { wrapper, setting } = mountTarget({ type: 's3', ...fields });
|
||||
|
||||
expect(JSON.parse(setting.value)[field]).toBe(true);
|
||||
|
||||
wrapper.vm.parseDefaultValue.type = 'nfs';
|
||||
wrapper.vm.update();
|
||||
|
||||
expect(JSON.parse(setting.value)[field]).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should offer the Restic and Kopia switch on S3', () => {
|
||||
const { wrapper } = mountTarget({ type: 's3' });
|
||||
|
||||
expect(wrapper.find('[data-testid="backup-target-third-party-backup"]').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('should ask for the repository password only while Restic and Kopia are on', () => {
|
||||
const off = mountTarget({ type: 's3' }).wrapper;
|
||||
const on = mountTarget({ type: 's3', thirdPartyBackupEnabled: true }).wrapper;
|
||||
|
||||
expect(off.find('[data-testid="backup-target-repository-password"]').exists()).toBe(false);
|
||||
expect(on.find('[data-testid="backup-target-repository-password"]').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('should offer Kopia garbage collection only while Restic and Kopia are on, the only time the backend runs it', () => {
|
||||
const off = mountTarget({ type: 's3' }).wrapper;
|
||||
const on = mountTarget({ type: 's3', thirdPartyBackupEnabled: true }).wrapper;
|
||||
|
||||
expect(off.find('[data-testid="backup-target-kopia-gc"]').exists()).toBe(false);
|
||||
expect(on.find('[data-testid="backup-target-kopia-gc"]').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('should drop Kopia garbage collection when Restic and Kopia are turned off, so the setting matches what runs', () => {
|
||||
const { wrapper, setting } = mountTarget({
|
||||
type: 's3', thirdPartyBackupEnabled: true, kopiaGCEnabled: true
|
||||
});
|
||||
|
||||
expect(JSON.parse(setting.value).kopiaGCEnabled).toBe(true);
|
||||
|
||||
wrapper.vm.parseDefaultValue.thirdPartyBackupEnabled = false;
|
||||
wrapper.vm.update();
|
||||
|
||||
expect(JSON.parse(setting.value).kopiaGCEnabled).toBeUndefined();
|
||||
});
|
||||
|
||||
it.each([
|
||||
['Restic and Kopia are turned off', (vm) => {
|
||||
vm.parseDefaultValue.thirdPartyBackupEnabled = false;
|
||||
}],
|
||||
['the target changes to NFS', (vm) => {
|
||||
vm.parseDefaultValue.type = 'nfs';
|
||||
}],
|
||||
])('should drop the repository password when %s, which the backend rejects', (_, change) => {
|
||||
const { wrapper, setting } = mountTarget({
|
||||
type: 's3', thirdPartyBackupEnabled: true, thirdPartyRepositoryPassword: 'secret'
|
||||
});
|
||||
|
||||
expect(JSON.parse(setting.value).thirdPartyRepositoryPassword).toBe('secret');
|
||||
|
||||
change(wrapper.vm);
|
||||
wrapper.vm.update();
|
||||
|
||||
expect(JSON.parse(setting.value).thirdPartyRepositoryPassword).toBeUndefined();
|
||||
});
|
||||
});
|
||||
@@ -1,74 +0,0 @@
|
||||
import { shallowMount } from '@vue/test-utils';
|
||||
import UnitInput from '@shell/components/form/UnitInput';
|
||||
import ThirdPartyBackupConfig from '../third-party-backup-config.vue';
|
||||
|
||||
const JOB = {
|
||||
memoryRequest: '1Gi', memoryLimit: '4Gi', cacheSize: '2Gi', maxConcurrentJobs: 5, ephemeralRequest: '512Mi', ephemeralLimit: '3Gi'
|
||||
};
|
||||
const DEFAULT = JSON.stringify({ restic: { ...JOB, noCache: false }, kopia: JOB });
|
||||
|
||||
function mountConfig(value) {
|
||||
const setting = { value, default: DEFAULT };
|
||||
|
||||
return {
|
||||
setting,
|
||||
wrapper: shallowMount(ThirdPartyBackupConfig, {
|
||||
props: { value: setting, registerBeforeHook: jest.fn() },
|
||||
global: {
|
||||
mocks: { t: (key) => key },
|
||||
stubs: { RcSection: { template: '<section><slot /></section>' } },
|
||||
},
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
describe('component: third-party-backup-config', () => {
|
||||
it('should fill omitted fields from the default', () => {
|
||||
const { wrapper } = mountConfig(JSON.stringify({ kopia: { memoryLimit: '8Gi' } }));
|
||||
|
||||
expect(wrapper.vm.config.kopia).toStrictEqual({ ...JOB, memoryLimit: '8Gi' });
|
||||
expect(wrapper.vm.config.restic.noCache).toBe(false);
|
||||
});
|
||||
|
||||
it('should show the default values when the setting is empty', () => {
|
||||
const { wrapper } = mountConfig('');
|
||||
|
||||
expect(wrapper.vm.config).toStrictEqual(JSON.parse(DEFAULT));
|
||||
});
|
||||
|
||||
it('should write the form to the setting before saving', async() => {
|
||||
const { wrapper, setting } = mountConfig('');
|
||||
|
||||
wrapper.vm.config.kopia.maxConcurrentJobs = 0;
|
||||
await wrapper.vm.willSave();
|
||||
|
||||
expect(JSON.parse(setting.value).kopia.maxConcurrentJobs).toBe(0);
|
||||
});
|
||||
|
||||
it('should go back to the default', () => {
|
||||
const { wrapper, setting } = mountConfig(JSON.stringify({ kopia: { memoryLimit: '8Gi' } }));
|
||||
|
||||
wrapper.vm.useDefault();
|
||||
|
||||
expect(wrapper.vm.config).toStrictEqual(JSON.parse(DEFAULT));
|
||||
expect(JSON.parse(setting.value)).toStrictEqual(JSON.parse(DEFAULT));
|
||||
});
|
||||
|
||||
it('should take every size in MiB so a bare number is not saved as bytes', () => {
|
||||
const { wrapper } = mountConfig('');
|
||||
const inputs = wrapper.findAllComponents(UnitInput);
|
||||
|
||||
expect(inputs).toHaveLength(10);
|
||||
inputs.forEach((input) => {
|
||||
expect(input.props()).toMatchObject({
|
||||
increment: 1024, inputExponent: 2, outputModifier: true
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
it('should show the default values when the setting is not JSON', () => {
|
||||
const { wrapper } = mountConfig('{not json');
|
||||
|
||||
expect(wrapper.vm.config).toStrictEqual(JSON.parse(DEFAULT));
|
||||
});
|
||||
});
|
||||
@@ -3,7 +3,6 @@ import Tip from '@shell/components/Tip';
|
||||
import Password from '@shell/components/form/Password';
|
||||
import MessageLink from '@shell/components/MessageLink';
|
||||
import CreateEditView from '@shell/mixins/create-edit-view';
|
||||
import { Checkbox } from '@components/Form/Checkbox';
|
||||
import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
import { HCI_SETTING } from '../../config/settings';
|
||||
@@ -15,7 +14,7 @@ export default {
|
||||
name: 'HarvesterEditBackupTarget',
|
||||
|
||||
components: {
|
||||
Checkbox, LabeledInput, LabeledSelect, Tip, Password, MessageLink, UnitInput
|
||||
LabeledInput, LabeledSelect, Tip, Password, MessageLink, UnitInput
|
||||
},
|
||||
|
||||
mixins: [CreateEditView],
|
||||
@@ -37,7 +36,7 @@ export default {
|
||||
}
|
||||
|
||||
// set default virtualHostedStyle to false
|
||||
parseDefaultValue.virtualHostedStyle = !!parseDefaultValue.virtualHostedStyle;
|
||||
parseDefaultValue.virtualHostedStyle = false;
|
||||
|
||||
return {
|
||||
parseDefaultValue,
|
||||
@@ -70,10 +69,6 @@ export default {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('refreshIntervalInSecond');
|
||||
},
|
||||
|
||||
thirdPartyBackupFeatureEnabled() {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('thirdPartyVMBackup');
|
||||
},
|
||||
|
||||
isS3() {
|
||||
return this.parseDefaultValue.type === DEFAULT_TYPE;
|
||||
},
|
||||
@@ -119,17 +114,9 @@ export default {
|
||||
delete this.parseDefaultValue.bucketName;
|
||||
delete this.parseDefaultValue.bucketRegion;
|
||||
delete this.parseDefaultValue.virtualHostedStyle;
|
||||
delete this.parseDefaultValue.kopiaGCEnabled;
|
||||
delete this.parseDefaultValue.thirdPartyBackupEnabled;
|
||||
delete this.parseDefaultValue.cert;
|
||||
}
|
||||
|
||||
// While Restic and Kopia are off, the backend rejects a repository password and runs no Kopia garbage collection
|
||||
if (!this.parseDefaultValue.thirdPartyBackupEnabled) {
|
||||
delete this.parseDefaultValue.thirdPartyRepositoryPassword;
|
||||
delete this.parseDefaultValue.kopiaGCEnabled;
|
||||
}
|
||||
|
||||
if (this.isS3 && !this.parseDefaultValue.virtualHostedStyle) {
|
||||
this.parseDefaultValue.virtualHostedStyle = false;
|
||||
}
|
||||
@@ -235,45 +222,6 @@ export default {
|
||||
@update:value="update"
|
||||
/>
|
||||
|
||||
<!-- Checkbox is inline, so each gets its own line -->
|
||||
<template v-if="thirdPartyBackupFeatureEnabled">
|
||||
<div class="mb-20">
|
||||
<Checkbox
|
||||
v-model:value="parseDefaultValue.thirdPartyBackupEnabled"
|
||||
data-testid="backup-target-third-party-backup"
|
||||
:label="t('harvester.backup.thirdPartyBackup.label')"
|
||||
:mode="mode"
|
||||
:tooltip="t('harvester.backup.thirdPartyBackup.tooltip', {}, true)"
|
||||
@update:value="update"
|
||||
/>
|
||||
</div>
|
||||
<template v-if="parseDefaultValue.thirdPartyBackupEnabled">
|
||||
<Password
|
||||
v-model:value="parseDefaultValue.thirdPartyRepositoryPassword"
|
||||
data-testid="backup-target-repository-password"
|
||||
class="mb-5"
|
||||
:mode="mode"
|
||||
:label="t('harvester.backup.thirdPartyBackup.password.label')"
|
||||
required
|
||||
/>
|
||||
<Tip
|
||||
class="mb-20"
|
||||
icon="icon icon-info"
|
||||
:text="t('harvester.backup.thirdPartyBackup.password.tip', {}, true)"
|
||||
/>
|
||||
<div class="mb-20">
|
||||
<Checkbox
|
||||
v-model:value="parseDefaultValue.kopiaGCEnabled"
|
||||
data-testid="backup-target-kopia-gc"
|
||||
:label="t('harvester.backup.kopiaGC.label')"
|
||||
:mode="mode"
|
||||
:tooltip="t('harvester.backup.kopiaGC.tooltip', {}, true)"
|
||||
@update:value="update"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<div class="mb-20">
|
||||
<Tip icon="icon icon-info">
|
||||
<MessageLink
|
||||
|
||||
@@ -1,149 +0,0 @@
|
||||
<script>
|
||||
import { Checkbox } from '@components/Form/Checkbox';
|
||||
import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
import { RcSection } from '@components/RcSection';
|
||||
import UnitInput from '@shell/components/form/UnitInput';
|
||||
import { BACKUP_TYPE } from '../../config/types';
|
||||
|
||||
const ENGINES = [BACKUP_TYPE.RESTIC, BACKUP_TYPE.KOPIA];
|
||||
const QUANTITY_FIELDS = ['memoryRequest', 'memoryLimit', 'ephemeralRequest', 'ephemeralLimit', 'cacheSize'];
|
||||
|
||||
// The webhook only stores JSON objects, so a value that doesn't parse falls back to the default like the other settings forms
|
||||
function parseJSON(string) {
|
||||
try {
|
||||
return JSON.parse(string || '{}');
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
// The backend fills omitted fields from the default, so show those values instead of empty inputs
|
||||
function parseConfig(value, defaultValue) {
|
||||
const defaults = parseJSON(defaultValue);
|
||||
const current = parseJSON(value);
|
||||
|
||||
return Object.fromEntries(ENGINES.map((engine) => [engine, { ...defaults[engine], ...current[engine] }]));
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'ThirdPartyBackupConfig',
|
||||
|
||||
components: {
|
||||
Checkbox,
|
||||
LabeledInput,
|
||||
RcSection,
|
||||
UnitInput,
|
||||
},
|
||||
|
||||
props: {
|
||||
registerBeforeHook: {
|
||||
type: Function,
|
||||
required: true
|
||||
},
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'edit'
|
||||
},
|
||||
value: {
|
||||
type: Object,
|
||||
default: () => ({
|
||||
value: '',
|
||||
default: '{}'
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
ENGINES,
|
||||
QUANTITY_FIELDS,
|
||||
RESTIC: BACKUP_TYPE.RESTIC,
|
||||
config: parseConfig(this.value?.value, this.value?.default),
|
||||
};
|
||||
},
|
||||
|
||||
created() {
|
||||
this.registerBeforeHook?.(this.willSave, 'willSave');
|
||||
},
|
||||
|
||||
methods: {
|
||||
updateValue() {
|
||||
if (this.value) {
|
||||
this.value.value = JSON.stringify(this.config);
|
||||
}
|
||||
},
|
||||
|
||||
useDefault() {
|
||||
this.config = parseConfig('', this.value?.default);
|
||||
this.updateValue();
|
||||
},
|
||||
|
||||
willSave() {
|
||||
this.updateValue();
|
||||
|
||||
return Promise.resolve();
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div data-testid="third-party-backup-config">
|
||||
<RcSection
|
||||
v-for="engine in ENGINES"
|
||||
:key="engine"
|
||||
background="secondary"
|
||||
class="mb-20"
|
||||
:data-testid="`${ engine }-section`"
|
||||
:expandable="false"
|
||||
mode="with-header"
|
||||
:title="t(`harvester.backup.type.${ engine }`)"
|
||||
type="secondary"
|
||||
>
|
||||
<div class="engine-fields">
|
||||
<UnitInput
|
||||
v-for="field in QUANTITY_FIELDS"
|
||||
:key="field"
|
||||
v-model:value="config[engine][field]"
|
||||
:data-testid="`${ engine }-${ field }`"
|
||||
:disabled="field === 'cacheSize' && !!config[engine].noCache"
|
||||
:increment="1024"
|
||||
:input-exponent="2"
|
||||
:label="t(`harvester.setting.thirdPartyBackupConfig.${ field }`)"
|
||||
min="1"
|
||||
:mode="mode"
|
||||
:output-modifier="true"
|
||||
:positive="true"
|
||||
:sub-label="field === 'cacheSize' ? t('harvester.setting.thirdPartyBackupConfig.cacheSizeHint') : ''"
|
||||
/>
|
||||
<LabeledInput
|
||||
v-model:value.number="config[engine].maxConcurrentJobs"
|
||||
:data-testid="`${ engine }-maxConcurrentJobs`"
|
||||
:label="t('harvester.setting.thirdPartyBackupConfig.maxConcurrentJobs')"
|
||||
min="0"
|
||||
:mode="mode"
|
||||
:sub-label="t('harvester.setting.thirdPartyBackupConfig.maxConcurrentJobsHint')"
|
||||
type="number"
|
||||
/>
|
||||
</div>
|
||||
|
||||
<Checkbox
|
||||
v-if="engine === RESTIC"
|
||||
v-model:value="config[engine].noCache"
|
||||
:data-testid="`${ engine }-noCache`"
|
||||
:label="t('harvester.setting.thirdPartyBackupConfig.noCache')"
|
||||
:mode="mode"
|
||||
/>
|
||||
</RcSection>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.engine-fields {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 20px;
|
||||
// The hints under the last row overflow the height of their inputs
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
</style>
|
||||
@@ -89,8 +89,6 @@ const FEATURE_FLAGS = {
|
||||
'repositoryStorageClass',
|
||||
'shutdownVMOnMigrationFailure',
|
||||
'vmListPagination',
|
||||
'kubeovnBgp',
|
||||
'thirdPartyVMBackup',
|
||||
],
|
||||
};
|
||||
|
||||
|
||||
@@ -77,8 +77,6 @@ const EXTERNAL_IPS_GROUP = `${ NAT_INTERNET_GROUP }::External IPs`;
|
||||
const RULES_GROUP = `${ NAT_INTERNET_GROUP }::Rules`;
|
||||
const SOURCE_RULES_GROUP = `${ RULES_GROUP }::Source Rules`;
|
||||
const DESTINATION_RULES_GROUP = `${ RULES_GROUP }::Destination Rules`;
|
||||
// The BGP speaker part of the Kube-OVN Configuration. If more parts get a form, they can move into a Configuration group.
|
||||
const BGP_SPEAKER = 'bgp-speaker';
|
||||
|
||||
export const PRODUCT_NAME = 'harvester';
|
||||
|
||||
@@ -666,11 +664,6 @@ export function init($plugin, store) {
|
||||
OVERLAY_NETWORKS_GROUP
|
||||
);
|
||||
|
||||
basicType(
|
||||
[BGP_SPEAKER],
|
||||
OVERLAY_NETWORKS_GROUP
|
||||
);
|
||||
|
||||
basicType(
|
||||
[HCI.VPC_NAT_GATEWAY, HCI.VPC_EGRESS_GATEWAY],
|
||||
GATEWAYS_GROUP
|
||||
@@ -969,16 +962,6 @@ export function init($plugin, store) {
|
||||
ifHaveType: NETWORK_POLICY,
|
||||
});
|
||||
|
||||
virtualType({
|
||||
labelKey: 'harvester.bgp.label',
|
||||
name: BGP_SPEAKER,
|
||||
namespaced: false,
|
||||
weight: 190,
|
||||
route: { name: `${ PRODUCT_NAME }-c-cluster-bgp-speaker` },
|
||||
exact: false,
|
||||
ifHaveType: HCI.KUBEOVN_CONFIG,
|
||||
});
|
||||
|
||||
configureType(HCI.PROVIDER_NETWORK, { hiddenNamespaceGroupButton: true, canYaml: false });
|
||||
|
||||
virtualType({
|
||||
|
||||
@@ -91,9 +91,7 @@ export const HCI = {
|
||||
STATIC_IP: 'static-ip.harvesterhci.io',
|
||||
NODE_UPGRADE_PAUSE_MAP: 'harvesterhci.io/node-upgrade-pause-map',
|
||||
CDI_POPULATOR_KIND: 'cdi.kubevirt.io/storage.populator.kind',
|
||||
CDI_CREATED_FOR_DATA_VOLUME: 'cdi.kubevirt.io/createdForDataVolume',
|
||||
CNI_NETWORKS: 'k8s.v1.cni.cncf.io/networks',
|
||||
KUBEOVN_BGP: 'ovn.kubernetes.io/bgp',
|
||||
WINDOWS_SYSPREP: 'harvesterhci.io/windows-sysprep',
|
||||
SKIP_MIG_CONFIGURATION: 'harvesterhci.io/skip-mig-configuration',
|
||||
};
|
||||
@@ -30,7 +30,6 @@ export const HCI_SETTING = {
|
||||
RELEASE_DOWNLOAD_URL: 'release-download-url',
|
||||
CCM_CSI_VERSION: 'harvester-csi-ccm-versions',
|
||||
CSI_DRIVER_CONFIG: 'csi-driver-config',
|
||||
THIRD_PARTY_BACKUP_CONFIG: 'third-party-backup-config',
|
||||
CSI_ONLINE_EXPAND_VALIDATION: 'csi-online-expand-validation',
|
||||
VM_TERMINATION_PERIOD: 'default-vm-termination-grace-period-seconds',
|
||||
NTP_SERVERS: 'ntp-servers',
|
||||
@@ -145,9 +144,6 @@ export const HCI_ALLOWED_SETTINGS = {
|
||||
[HCI_SETTING.KUBEVIRT_MIGRATION]: {
|
||||
kind: 'json', from: 'import', canReset: true, featureFlag: 'kubevirtMigration',
|
||||
},
|
||||
[HCI_SETTING.THIRD_PARTY_BACKUP_CONFIG]: {
|
||||
kind: 'json', from: 'import', canReset: true, featureFlag: 'thirdPartyVMBackup',
|
||||
},
|
||||
[HCI_SETTING.INSTANCE_MANAGER_RESOURCES]: {
|
||||
kind: 'json', from: 'import', featureFlag: 'instanceManagerResourcesSetting'
|
||||
},
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
export const BACKUP_TYPE = {
|
||||
BACKUP: 'backup',
|
||||
SNAPSHOT: 'snapshot',
|
||||
RESTIC: 'restic',
|
||||
KOPIA: 'kopia'
|
||||
SNAPSHOT: 'snapshot'
|
||||
};
|
||||
|
||||
export const NETWORK_TYPE = {
|
||||
|
||||
@@ -3,13 +3,10 @@ import { exceptionToErrorsArray } from '@shell/utils/error';
|
||||
import { mapGetters } from 'vuex';
|
||||
import { Card } from '@components/Card';
|
||||
import { Banner } from '@components/Banner';
|
||||
import AsyncButton from '@shell/components/AsyncButton';
|
||||
import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
import { RcButton } from '@components/RcButton';
|
||||
import { RcHeading } from '@components/RcHeading';
|
||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
import { DEFAULT_FS_FREEZE_DEADLINE, getFsFreezeDeadlineOptions } from '../utils/backup';
|
||||
import { BACKUP_TYPE } from '../config/types';
|
||||
import { HCI } from '../types';
|
||||
|
||||
export default {
|
||||
name: 'HarvesterBackupModal',
|
||||
@@ -17,12 +14,11 @@ export default {
|
||||
emits: ['close'],
|
||||
|
||||
components: {
|
||||
AsyncButton,
|
||||
Card,
|
||||
LabeledInput,
|
||||
LabeledSelect,
|
||||
Banner,
|
||||
RcButton,
|
||||
RcHeading
|
||||
Banner
|
||||
},
|
||||
|
||||
props: {
|
||||
@@ -32,23 +28,11 @@ export default {
|
||||
}
|
||||
},
|
||||
|
||||
async fetch() {
|
||||
if (!this.thirdPartyBackupFeatureEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
await this.actionResource.fetchBackupTypeRequirements();
|
||||
|
||||
this.backupType = this.backupTypeOptions.find((option) => !option.disabled)?.value;
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
backUpName: '',
|
||||
backupType: BACKUP_TYPE.BACKUP,
|
||||
errors: [],
|
||||
fsFreezeDeadline: DEFAULT_FS_FREEZE_DEADLINE,
|
||||
saving: false
|
||||
fsFreezeDeadline: DEFAULT_FS_FREEZE_DEADLINE
|
||||
};
|
||||
},
|
||||
|
||||
@@ -65,31 +49,6 @@ export default {
|
||||
|
||||
fsFreezeDeadlineOptions() {
|
||||
return getFsFreezeDeadlineOptions(this.t);
|
||||
},
|
||||
|
||||
thirdPartyBackupFeatureEnabled() {
|
||||
return !!this.actionResource?.thirdPartyBackupFeatureEnabled;
|
||||
},
|
||||
|
||||
backupTypeOptions() {
|
||||
return this.thirdPartyBackupFeatureEnabled ? this.actionResource.backupTypeOptions : [];
|
||||
},
|
||||
|
||||
// Shown outside the select too: its disabled options can't be reached by keyboard
|
||||
unavailableBackupTypeOptions() {
|
||||
return this.backupTypeOptions.filter((option) => option.disabled);
|
||||
},
|
||||
|
||||
isLoading() {
|
||||
return this.thirdPartyBackupFeatureEnabled && this.$fetchState.pending;
|
||||
},
|
||||
|
||||
noBackupTypeAvailable() {
|
||||
return this.thirdPartyBackupFeatureEnabled && !this.isLoading && !this.backupType;
|
||||
},
|
||||
|
||||
canCreate() {
|
||||
return !!this.backUpName && !this.isLoading && !this.noBackupTypeAvailable && !this.saving;
|
||||
}
|
||||
},
|
||||
|
||||
@@ -101,69 +60,42 @@ export default {
|
||||
this.$emit('close');
|
||||
},
|
||||
|
||||
backupCreated() {
|
||||
this.$store.dispatch(
|
||||
'growl/success',
|
||||
{
|
||||
title: this.t('generic.notification.title.succeed'),
|
||||
message: this.t('harvester.modal.backup.success', { backUpName: this.backUpName })
|
||||
},
|
||||
{ root: true }
|
||||
);
|
||||
async save(buttonCb) {
|
||||
if (this.actionResource) {
|
||||
try {
|
||||
const res = await this.actionResource.doAction(
|
||||
'backup',
|
||||
{ name: this.backUpName, fsFreezeDeadline: this.fsFreezeDeadline },
|
||||
{},
|
||||
false
|
||||
);
|
||||
|
||||
this.close();
|
||||
},
|
||||
if (res._status === 200 || res._status === 204) {
|
||||
this.$store.dispatch(
|
||||
'growl/success',
|
||||
{
|
||||
title: this.t('generic.notification.title.succeed'),
|
||||
message: this.t('harvester.modal.backup.success', { backUpName: this.backUpName })
|
||||
},
|
||||
{ root: true }
|
||||
);
|
||||
|
||||
// No ownerReferences, like the backup action: deleting the VM must leave its backups and their remote data
|
||||
async createDataMoverBackup() {
|
||||
const backup = await this.$store.dispatch('harvester/create', {
|
||||
metadata: {
|
||||
name: this.backUpName,
|
||||
namespace: this.actionResource.metadata.namespace,
|
||||
},
|
||||
spec: {
|
||||
fsFreezeDeadline: this.fsFreezeDeadline,
|
||||
source: {
|
||||
apiGroup: 'kubevirt.io',
|
||||
kind: 'VirtualMachine',
|
||||
name: this.actionResource.metadata.name
|
||||
},
|
||||
type: this.backupType
|
||||
},
|
||||
type: HCI.BACKUP
|
||||
});
|
||||
this.close();
|
||||
|
||||
await backup.save();
|
||||
},
|
||||
buttonCb(true);
|
||||
} else {
|
||||
const error = [res?.data] || exceptionToErrorsArray(res);
|
||||
|
||||
async save() {
|
||||
this.saving = true;
|
||||
this.errors = [];
|
||||
this['errors'] = error;
|
||||
buttonCb(false);
|
||||
}
|
||||
} catch (err) {
|
||||
const error = err?.data || err;
|
||||
const message = exceptionToErrorsArray(error);
|
||||
|
||||
try {
|
||||
if (this.backupType !== BACKUP_TYPE.BACKUP) {
|
||||
await this.createDataMoverBackup();
|
||||
this.backupCreated();
|
||||
|
||||
return;
|
||||
this['errors'] = message;
|
||||
buttonCb(false);
|
||||
}
|
||||
|
||||
const res = await this.actionResource.doAction(
|
||||
'backup',
|
||||
{ name: this.backUpName, fsFreezeDeadline: this.fsFreezeDeadline },
|
||||
{},
|
||||
false
|
||||
);
|
||||
|
||||
if (res._status === 200 || res._status === 204) {
|
||||
this.backupCreated();
|
||||
} else {
|
||||
this.errors = [res?.data] || exceptionToErrorsArray(res);
|
||||
}
|
||||
} catch (err) {
|
||||
this.errors = exceptionToErrorsArray(err?.data || err);
|
||||
} finally {
|
||||
this.saving = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -173,73 +105,27 @@ export default {
|
||||
<template>
|
||||
<Card :show-highlight-border="false">
|
||||
<template #title>
|
||||
<RcHeading :size="3">
|
||||
{{ t('harvester.modal.backup.addBackup') }}
|
||||
</RcHeading>
|
||||
<h4
|
||||
v-clean-html="t('harvester.modal.backup.addBackup')"
|
||||
class="text-default-text"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<template #body>
|
||||
<Banner
|
||||
v-if="noBackupTypeAvailable"
|
||||
<LabeledInput
|
||||
v-model:value="backUpName"
|
||||
class="mt-20"
|
||||
color="warning"
|
||||
data-testid="backup-no-type-available"
|
||||
>
|
||||
<div>
|
||||
<p class="mb-5">
|
||||
{{ t('harvester.modal.backup.noTypeAvailable') }}
|
||||
</p>
|
||||
<ul class="mb-0">
|
||||
<li
|
||||
v-for="option in backupTypeOptions"
|
||||
:key="option.value"
|
||||
>
|
||||
{{ option.label }}: {{ option.unavailableReason }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</Banner>
|
||||
<template v-else>
|
||||
<LabeledInput
|
||||
v-model:value="backUpName"
|
||||
class="mt-20"
|
||||
:label="t('generic.name')"
|
||||
required
|
||||
/>
|
||||
<LabeledSelect
|
||||
v-if="thirdPartyBackupFeatureEnabled"
|
||||
v-model:value="backupType"
|
||||
class="mt-20"
|
||||
data-testid="backup-type-select"
|
||||
:label="t('harvester.fields.type')"
|
||||
:loading="isLoading"
|
||||
:options="backupTypeOptions"
|
||||
:searchable="false"
|
||||
required
|
||||
/>
|
||||
<Banner
|
||||
v-if="unavailableBackupTypeOptions.length"
|
||||
color="info"
|
||||
data-testid="backup-type-unavailable"
|
||||
>
|
||||
<ul class="mb-0">
|
||||
<li
|
||||
v-for="option in unavailableBackupTypeOptions"
|
||||
:key="option.value"
|
||||
>
|
||||
{{ option.label }}: {{ option.unavailableReason }}
|
||||
</li>
|
||||
</ul>
|
||||
</Banner>
|
||||
<LabeledSelect
|
||||
v-if="fsFreezeDeadlineEnabled"
|
||||
v-model:value="fsFreezeDeadline"
|
||||
class="mt-20"
|
||||
:options="fsFreezeDeadlineOptions"
|
||||
:label="t('harvester.modal.backup.fileSystemFreezeDeadline.label')"
|
||||
required
|
||||
/>
|
||||
</template>
|
||||
:label="t('generic.name')"
|
||||
required
|
||||
/>
|
||||
<LabeledSelect
|
||||
v-if="fsFreezeDeadlineEnabled"
|
||||
v-model:value="fsFreezeDeadline"
|
||||
class="mt-20"
|
||||
:options="fsFreezeDeadlineOptions"
|
||||
:label="t('harvester.modal.backup.fileSystemFreezeDeadline.label')"
|
||||
required
|
||||
/>
|
||||
<Banner
|
||||
v-for="(err, i) in errors"
|
||||
:key="i"
|
||||
@@ -251,26 +137,18 @@ export default {
|
||||
<template #actions>
|
||||
<div class="actions">
|
||||
<div class="buttons">
|
||||
<RcButton
|
||||
class="mr-10"
|
||||
data-testid="backup-cancel"
|
||||
size="large"
|
||||
variant="secondary"
|
||||
<button
|
||||
class="btn role-secondary mr-10"
|
||||
@click="close"
|
||||
>
|
||||
{{ t('generic.cancel') }}
|
||||
</RcButton>
|
||||
</button>
|
||||
|
||||
<RcButton
|
||||
:aria-busy="saving"
|
||||
data-testid="backup-create"
|
||||
:disabled="!canCreate"
|
||||
size="large"
|
||||
variant="primary"
|
||||
<AsyncButton
|
||||
mode="create"
|
||||
:disabled="!backUpName"
|
||||
@click="save"
|
||||
>
|
||||
{{ t('generic.create') }}
|
||||
</RcButton>
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -1,144 +0,0 @@
|
||||
import { shallowMount } from '@vue/test-utils';
|
||||
import HarvesterBackupModal from '../HarvesterBackupModal.vue';
|
||||
import { HCI } from '../../types';
|
||||
|
||||
const OPTIONS = {
|
||||
backup: {
|
||||
value: 'backup', label: 'Native', disabled: true, unavailableReason: 'native reason'
|
||||
},
|
||||
restic: {
|
||||
value: 'restic', label: 'Restic', disabled: false
|
||||
},
|
||||
kopia: {
|
||||
value: 'kopia', label: 'Kopia', disabled: false
|
||||
},
|
||||
};
|
||||
|
||||
function mountModal({
|
||||
enabled = true, options = Object.values(OPTIONS), doAction = jest.fn().mockResolvedValue({ _status: 204 }), save = jest.fn().mockResolvedValue()
|
||||
} = {}) {
|
||||
const vm = {
|
||||
metadata: { name: 'vm1', namespace: 'ns1' },
|
||||
thirdPartyBackupFeatureEnabled: enabled,
|
||||
backupTypeOptions: options,
|
||||
fetchBackupTypeRequirements: jest.fn().mockResolvedValue(),
|
||||
doAction,
|
||||
};
|
||||
const dispatch = jest.fn((action) => (action === 'harvester/create' ? Promise.resolve({ save }) : Promise.resolve()));
|
||||
const wrapper = shallowMount(HarvesterBackupModal, {
|
||||
props: { resources: [vm] },
|
||||
global: {
|
||||
stubs: {
|
||||
Banner: { template: '<div><slot /></div>' },
|
||||
Card: { template: '<div><slot name="title" /><slot name="body" /><slot name="actions" /></div>' },
|
||||
},
|
||||
mocks: {
|
||||
t: (key) => key,
|
||||
$fetchState: { pending: false },
|
||||
$store: {
|
||||
dispatch,
|
||||
getters: {
|
||||
'i18n/t': (key) => key,
|
||||
'harvester-common/getFeatureEnabled': () => false,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
return {
|
||||
wrapper, vm, dispatch, doAction, save
|
||||
};
|
||||
}
|
||||
|
||||
describe('component: HarvesterBackupModal', () => {
|
||||
it('should keep the plain dialog while the feature is off', async() => {
|
||||
const { wrapper, doAction, dispatch } = mountModal({ enabled: false });
|
||||
|
||||
expect(wrapper.find('[data-testid="backup-type-select"]').exists()).toBe(false);
|
||||
|
||||
await wrapper.setData({ backUpName: 'b1' });
|
||||
await wrapper.vm.save();
|
||||
|
||||
expect(doAction).toHaveBeenCalledWith('backup', expect.objectContaining({ name: 'b1' }), {}, false);
|
||||
expect(dispatch).not.toHaveBeenCalledWith('harvester/create', expect.anything());
|
||||
expect(wrapper.emitted('close')).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('should load the requirements and select the first available type', async() => {
|
||||
const { wrapper, vm } = mountModal();
|
||||
|
||||
await HarvesterBackupModal.fetch.call(wrapper.vm);
|
||||
|
||||
expect(vm.fetchBackupTypeRequirements).toHaveBeenCalledTimes(1);
|
||||
expect(wrapper.vm.backupType).toBe('restic');
|
||||
});
|
||||
|
||||
it('should keep native on the backup action', async() => {
|
||||
const { wrapper, doAction, dispatch } = mountModal();
|
||||
|
||||
await wrapper.setData({ backUpName: 'b1', backupType: 'backup' });
|
||||
await wrapper.vm.save();
|
||||
|
||||
expect(doAction).toHaveBeenCalledTimes(1);
|
||||
expect(dispatch).not.toHaveBeenCalledWith('harvester/create', expect.anything());
|
||||
});
|
||||
|
||||
it('should create Kopia directly, without an owner reference on the VM', async() => {
|
||||
const {
|
||||
wrapper, doAction, dispatch, save
|
||||
} = mountModal();
|
||||
|
||||
await wrapper.setData({ backUpName: 'b1', backupType: 'kopia' });
|
||||
await wrapper.vm.save();
|
||||
|
||||
expect(doAction).not.toHaveBeenCalled();
|
||||
expect(save).toHaveBeenCalledTimes(1);
|
||||
|
||||
const [, resource] = dispatch.mock.calls.find(([action]) => action === 'harvester/create');
|
||||
|
||||
expect(resource.type).toBe(HCI.BACKUP);
|
||||
expect(resource.metadata).toStrictEqual({ name: 'b1', namespace: 'ns1' });
|
||||
expect(resource.spec.type).toBe('kopia');
|
||||
expect(resource.spec.source.name).toBe('vm1');
|
||||
expect(wrapper.emitted('close')).toHaveLength(1);
|
||||
});
|
||||
|
||||
it('should show the webhook error and stay open', async() => {
|
||||
const { wrapper } = mountModal({ save: jest.fn().mockRejectedValue({ status: 422, message: 'vm is in migration' }) });
|
||||
|
||||
await wrapper.setData({ backUpName: 'b1', backupType: 'kopia' });
|
||||
await wrapper.vm.save();
|
||||
|
||||
expect(wrapper.vm.errors).toStrictEqual(['vm is in migration']);
|
||||
expect(wrapper.vm.saving).toBe(false);
|
||||
expect(wrapper.emitted('close')).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should list the reasons of unavailable types next to the select', async() => {
|
||||
const { wrapper } = mountModal();
|
||||
|
||||
await HarvesterBackupModal.fetch.call(wrapper.vm);
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
expect(wrapper.find('[data-testid="backup-type-unavailable"]').exists()).toBe(true);
|
||||
expect(wrapper.findAll('li').map((li) => li.text())).toStrictEqual(['Native: native reason']);
|
||||
});
|
||||
|
||||
it('should explain why when no type is available and hide the form', async() => {
|
||||
const disabled = Object.values(OPTIONS).map((option) => ({
|
||||
...option, disabled: true, unavailableReason: `${ option.value } reason`
|
||||
}));
|
||||
const { wrapper } = mountModal({ options: disabled });
|
||||
|
||||
await HarvesterBackupModal.fetch.call(wrapper.vm);
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
expect(wrapper.vm.noBackupTypeAvailable).toBe(true);
|
||||
expect(wrapper.vm.canCreate).toBe(false);
|
||||
expect(wrapper.find('[data-testid="backup-type-select"]').exists()).toBe(false);
|
||||
expect(wrapper.findAll('li').map((li) => li.text())).toStrictEqual([
|
||||
'Native: backup reason', 'Restic: restic reason', 'Kopia: kopia reason'
|
||||
]);
|
||||
});
|
||||
});
|
||||
@@ -1,148 +0,0 @@
|
||||
import EditImage from '../harvesterhci.io.virtualmachineimage.vue';
|
||||
|
||||
function storageClass(name, options = {}) {
|
||||
return {
|
||||
name,
|
||||
metadata: { name },
|
||||
...options,
|
||||
};
|
||||
}
|
||||
|
||||
function defaultStorageClassName(storageClasses) {
|
||||
return EditImage.methods.defaultStorageClassName.call({ selectableStorageClasses: selectableStorageClasses(storageClasses) });
|
||||
}
|
||||
|
||||
function selectableStorageClasses(storageClasses) {
|
||||
const availableStorageClasses = EditImage.computed.availableStorageClasses.call({
|
||||
value: {
|
||||
spec: { thirdPartyStorageFeatureEnabled: true },
|
||||
thirdPartyStorageFeatureEnabled: true,
|
||||
},
|
||||
encryptedStorageClasses: [],
|
||||
nonEncryptedStorageClasses: storageClasses,
|
||||
});
|
||||
|
||||
return EditImage.computed.selectableStorageClasses.call({ availableStorageClasses });
|
||||
}
|
||||
|
||||
async function fetchStorageClass(storageClasses, storageClassName, isCreate = true) {
|
||||
const context = {
|
||||
isCreate,
|
||||
storageClassName,
|
||||
selectableStorageClasses: storageClasses,
|
||||
images: [],
|
||||
storages: [],
|
||||
value: { spec: {} },
|
||||
$store: {
|
||||
getters: {
|
||||
currentProduct: { inStore: 'harvester' },
|
||||
'harvester/all': () => storageClasses,
|
||||
},
|
||||
dispatch: () => Promise.resolve([]),
|
||||
},
|
||||
defaultStorageClassName() {
|
||||
return EditImage.methods.defaultStorageClassName.call(this);
|
||||
},
|
||||
};
|
||||
|
||||
await EditImage.fetch.call(context);
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
describe('component: EditImage', () => {
|
||||
it('leaves the storage class empty when none are selectable', () => {
|
||||
expect(defaultStorageClassName([])).toBe('');
|
||||
});
|
||||
|
||||
it('selects the cluster default storage class before longhorn', () => {
|
||||
expect(defaultStorageClassName([
|
||||
storageClass('fast', { isDefault: true }),
|
||||
storageClass('longhorn'),
|
||||
])).toBe('fast');
|
||||
});
|
||||
|
||||
it('selects longhorn when the cluster default storage class is unavailable', () => {
|
||||
expect(defaultStorageClassName([
|
||||
storageClass('slow'),
|
||||
storageClass('longhorn'),
|
||||
])).toBe('longhorn');
|
||||
});
|
||||
|
||||
it('selects the first selectable storage class when no preferred class is available', () => {
|
||||
expect(defaultStorageClassName([
|
||||
storageClass('backing-image', { parameters: { backingImage: 'image' } }),
|
||||
storageClass('fast'),
|
||||
storageClass('slow'),
|
||||
])).toBe('fast');
|
||||
});
|
||||
|
||||
it('does not include backing-image or internal classes among selectable classes', () => {
|
||||
expect(selectableStorageClasses([
|
||||
storageClass('longhorn', { parameters: { backingImage: 'image' } }),
|
||||
storageClass('longhorn-static'),
|
||||
storageClass('fast'),
|
||||
]).map((storageClass) => storageClass.name)).toStrictEqual(['fast']);
|
||||
});
|
||||
|
||||
it('falls back when the annotated storage class is unavailable during creation', async() => {
|
||||
const context = await fetchStorageClass([storageClass('fast')], 'missing');
|
||||
|
||||
expect(context.storageClassName).toBe('fast');
|
||||
expect(context.storageClassesLoaded).toBe(true);
|
||||
});
|
||||
|
||||
it('preserves a selectable annotated storage class during creation', async() => {
|
||||
const context = await fetchStorageClass([
|
||||
storageClass('fast', { isDefault: true }),
|
||||
storageClass('selected'),
|
||||
], 'selected');
|
||||
|
||||
expect(context.storageClassName).toBe('selected');
|
||||
});
|
||||
|
||||
it('preserves an unavailable annotated storage class when editing', async() => {
|
||||
const context = await fetchStorageClass([storageClass('fast')], 'missing', false);
|
||||
|
||||
expect(context.storageClassName).toBe('missing');
|
||||
});
|
||||
|
||||
it('uses encryption-specific guidance when no encrypted storage class is selectable', () => {
|
||||
const storageClassUnavailableMessage = EditImage.computed.storageClassUnavailableMessage;
|
||||
|
||||
expect(storageClassUnavailableMessage.call({ value: { spec: { securityParameters: { cryptoOperation: 'encrypt' } } } })).toBe('harvester.image.encryptedStorageClassUnavailable');
|
||||
expect(storageClassUnavailableMessage.call({ value: { spec: {} } })).toBe('harvester.image.storageClassUnavailable');
|
||||
});
|
||||
|
||||
it('prevents creation when no storage class is selectable', async() => {
|
||||
const buttonCb = jest.fn();
|
||||
const context = {
|
||||
showStorageClassUnavailableBanner: true,
|
||||
storageClassUnavailableMessage: 'harvester.image.storageClassUnavailable',
|
||||
t: (key) => key,
|
||||
value: { spec: { displayName: '' } },
|
||||
};
|
||||
|
||||
await EditImage.methods.saveImage.call(context, buttonCb);
|
||||
|
||||
expect(buttonCb).toHaveBeenCalledWith(false);
|
||||
expect(context.errors).toStrictEqual(['harvester.image.storageClassUnavailable']);
|
||||
});
|
||||
|
||||
it('waits for storage classes before showing the unavailable banner', () => {
|
||||
const showBanner = EditImage.computed.showStorageClassUnavailableBanner;
|
||||
|
||||
expect(showBanner.call({
|
||||
mode: 'create', isCreate: true, storageClassesLoaded: false, selectableStorageClasses: []
|
||||
})).toBe(false);
|
||||
expect(showBanner.call({
|
||||
mode: 'create', isCreate: true, storageClassesLoaded: true, selectableStorageClasses: []
|
||||
})).toBe(true);
|
||||
expect(showBanner.call({
|
||||
mode: 'view', isCreate: false, storageClassesLoaded: true, selectableStorageClasses: []
|
||||
})).toBe(false);
|
||||
expect(showBanner.call({
|
||||
mode: 'edit', isCreate: false, storageClassesLoaded: true, selectableStorageClasses: []
|
||||
})).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -1,135 +0,0 @@
|
||||
import HarvesterVolume from '../harvesterhci.io.volume.vue';
|
||||
|
||||
async function fetchStorageClass(storageClasses, storageClassName, isCreate = true) {
|
||||
const context = {
|
||||
isCreate,
|
||||
value: { spec: {} },
|
||||
snapshots: [],
|
||||
images: [],
|
||||
$store: {
|
||||
getters: {
|
||||
currentProduct: { inStore: 'harvester' },
|
||||
'harvester/schemaFor': () => false,
|
||||
'harvester/all': () => storageClasses,
|
||||
},
|
||||
dispatch: () => Promise.resolve([]),
|
||||
},
|
||||
};
|
||||
|
||||
if (storageClassName) {
|
||||
context.value.spec.storageClassName = storageClassName;
|
||||
}
|
||||
|
||||
await HarvesterVolume.fetch.call(context);
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
function storageClass(name, options = {}) {
|
||||
return {
|
||||
name,
|
||||
metadata: { name },
|
||||
...options,
|
||||
};
|
||||
}
|
||||
|
||||
describe('component: HarvesterVolume', () => {
|
||||
it('leaves the storage class unselected when the cluster has no selectable class', async() => {
|
||||
const context = await fetchStorageClass([]);
|
||||
|
||||
expect(context.value.spec.storageClassName).toBeUndefined();
|
||||
expect(context.storageClassesLoaded).toBe(true);
|
||||
});
|
||||
|
||||
it('selects the cluster default storage class before longhorn', async() => {
|
||||
const context = await fetchStorageClass([
|
||||
storageClass('fast', { isDefault: true }),
|
||||
storageClass('longhorn'),
|
||||
]);
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('fast');
|
||||
});
|
||||
|
||||
it('selects longhorn when the cluster default storage class is unavailable', async() => {
|
||||
const context = await fetchStorageClass([
|
||||
storageClass('slow'),
|
||||
storageClass('longhorn'),
|
||||
]);
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('longhorn');
|
||||
});
|
||||
|
||||
it('selects the first selectable storage class when no preferred class is available', async() => {
|
||||
const context = await fetchStorageClass([
|
||||
storageClass('backing-image', { parameters: { backingImage: 'image' } }),
|
||||
storageClass('fast'),
|
||||
storageClass('slow'),
|
||||
]);
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('fast');
|
||||
});
|
||||
|
||||
it('does not select backing-image or internal classes', async() => {
|
||||
const context = await fetchStorageClass([
|
||||
storageClass('longhorn', { parameters: { backingImage: 'image' } }),
|
||||
storageClass('longhorn-static'),
|
||||
storageClass('fast'),
|
||||
]);
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('fast');
|
||||
});
|
||||
|
||||
it('preserves an existing selectable storage class', async() => {
|
||||
const context = await fetchStorageClass([
|
||||
storageClass('existing'),
|
||||
storageClass('fast', { isDefault: true }),
|
||||
], 'existing');
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('existing');
|
||||
});
|
||||
|
||||
it('falls back when the existing storage class is unavailable during creation', async() => {
|
||||
const context = await fetchStorageClass([storageClass('fast')], 'missing');
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('fast');
|
||||
});
|
||||
|
||||
it('preserves an unavailable storage class when editing', async() => {
|
||||
const context = await fetchStorageClass([storageClass('fast')], 'missing', false);
|
||||
|
||||
expect(context.value.spec.storageClassName).toBe('missing');
|
||||
});
|
||||
|
||||
it('prevents blank volume creation when no storage class is selectable', async() => {
|
||||
const buttonDone = jest.fn();
|
||||
const context = {
|
||||
showStorageClassUnavailableBanner: true,
|
||||
t: (key) => key,
|
||||
};
|
||||
|
||||
await HarvesterVolume.methods.save.call(context, buttonDone);
|
||||
|
||||
expect(buttonDone).toHaveBeenCalledWith(false);
|
||||
expect(context.errors).toStrictEqual(['harvester.volume.storageClassUnavailable']);
|
||||
});
|
||||
|
||||
it('waits for storage classes before showing the unavailable banner', () => {
|
||||
const showBanner = HarvesterVolume.computed.showStorageClassUnavailableBanner;
|
||||
|
||||
expect(showBanner.call({
|
||||
mode: 'create', isCreate: true, storageClassesLoaded: false, selectableStorageClasses: [], isBlank: true
|
||||
})).toBe(false);
|
||||
expect(showBanner.call({
|
||||
mode: 'create', isCreate: true, storageClassesLoaded: true, selectableStorageClasses: [], isBlank: true
|
||||
})).toBe(true);
|
||||
expect(showBanner.call({
|
||||
mode: 'create', isCreate: true, storageClassesLoaded: true, selectableStorageClasses: [], isBlank: false
|
||||
})).toBe(false);
|
||||
expect(showBanner.call({
|
||||
mode: 'view', isCreate: false, storageClassesLoaded: true, selectableStorageClasses: [], isBlank: true
|
||||
})).toBe(false);
|
||||
expect(showBanner.call({
|
||||
mode: 'edit', isCreate: false, storageClassesLoaded: true, selectableStorageClasses: [], isBlank: true
|
||||
})).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -6,7 +6,6 @@ import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
import KeyValue from '@shell/components/form/KeyValue';
|
||||
import NameNsDescription from '@shell/components/form/NameNsDescription';
|
||||
import { RadioGroup } from '@components/Form/Radio';
|
||||
import { Banner } from '@components/Banner';
|
||||
import Select from '@shell/components/form/Select';
|
||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
import CreateEditView from '@shell/mixins/create-edit-view';
|
||||
@@ -44,7 +43,6 @@ export default {
|
||||
LabeledInput,
|
||||
NameNsDescription,
|
||||
RadioGroup,
|
||||
Banner,
|
||||
LabeledSelect,
|
||||
},
|
||||
|
||||
@@ -65,14 +63,11 @@ export default {
|
||||
storageClasses: this.$store.dispatch(`${ inStore }/findAll`, { type: STORAGE_CLASS }),
|
||||
});
|
||||
|
||||
this['storageClassName'] = this.storageClassName || this.defaultStorageClassName();
|
||||
this.images = this.$store.getters[`${ inStore }/all`](HCI.IMAGE);
|
||||
|
||||
this.storages = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS);
|
||||
|
||||
const storageClassName = this.storageClassName;
|
||||
|
||||
this['storageClassName'] = this.isCreate && !this.selectableStorageClasses.some((storageClass) => storageClass.name === storageClassName) ? this.defaultStorageClassName() : storageClassName || this.defaultStorageClassName();
|
||||
this.storageClassesLoaded = true;
|
||||
|
||||
const { securityParameters } = this.value.spec;
|
||||
|
||||
// edit and view mode should show the source image
|
||||
@@ -107,16 +102,15 @@ export default {
|
||||
}
|
||||
|
||||
return {
|
||||
selectedImage: null,
|
||||
storageClasses: [],
|
||||
storageClassesLoaded: false,
|
||||
images: [],
|
||||
url: this.value.spec.url,
|
||||
files: [],
|
||||
resource: '',
|
||||
headers: {},
|
||||
fileUrl: '',
|
||||
file: '',
|
||||
selectedImage: null,
|
||||
storageClasses: [],
|
||||
images: [],
|
||||
url: this.value.spec.url,
|
||||
files: [],
|
||||
resource: '',
|
||||
headers: {},
|
||||
fileUrl: '',
|
||||
file: '',
|
||||
HCI_ANNOTATIONS,
|
||||
};
|
||||
},
|
||||
@@ -168,27 +162,12 @@ export default {
|
||||
return storages.filter((s) => !s.isEncrypted);
|
||||
},
|
||||
|
||||
availableStorageClasses() {
|
||||
const storages = this.value.spec?.securityParameters?.cryptoOperation === ENCRYPT ? this.encryptedStorageClasses : this.nonEncryptedStorageClasses;
|
||||
|
||||
return this.value.thirdPartyStorageFeatureEnabled ? storages.filter((s) => !s.parameters?.backingImage) : storages
|
||||
.filter((s) => !s.parameters?.backingImage && s.provisioner !== LVM_DRIVER);
|
||||
},
|
||||
|
||||
selectableStorageClasses() {
|
||||
return this.availableStorageClasses.filter((storageClass) => !isInternalStorageClass(storageClass.name));
|
||||
},
|
||||
|
||||
showStorageClassUnavailableBanner() {
|
||||
return this.isCreate && this.storageClassesLoaded && !this.selectableStorageClasses.length;
|
||||
},
|
||||
|
||||
storageClassUnavailableMessage() {
|
||||
return this.value.spec?.securityParameters?.cryptoOperation === ENCRYPT ? 'harvester.image.encryptedStorageClassUnavailable' : 'harvester.image.storageClassUnavailable';
|
||||
},
|
||||
|
||||
storageClassOptions() {
|
||||
return this.availableStorageClasses
|
||||
const storages = this.value.spec?.securityParameters?.cryptoOperation === ENCRYPT ? this.encryptedStorageClasses : this.nonEncryptedStorageClasses;
|
||||
const filteredStorages = this.value.thirdPartyStorageFeatureEnabled ? storages.filter((s) => !s.parameters?.backingImage) : storages
|
||||
.filter((s) => !s.parameters?.backingImage && s.provisioner !== LVM_DRIVER) ;
|
||||
|
||||
return filteredStorages
|
||||
.map((s) => {
|
||||
let label = s.isDefault ? `${ s.name } (${ this.t('generic.default') })` : s.name;
|
||||
let disabled = false;
|
||||
@@ -306,13 +285,6 @@ export default {
|
||||
|
||||
methods: {
|
||||
async saveImage(buttonCb) {
|
||||
if (this.showStorageClassUnavailableBanner) {
|
||||
this.errors = [this.t(this.storageClassUnavailableMessage)];
|
||||
buttonCb(false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
this.value.spec.displayName = (this.value.spec.displayName || '').trim();
|
||||
|
||||
if (this.isEdit) return await this.handleEditImage(buttonCb);
|
||||
@@ -459,10 +431,15 @@ export default {
|
||||
},
|
||||
|
||||
defaultStorageClassName() {
|
||||
const storageClass = this.selectableStorageClasses.find((storageClass) => storageClass.isDefault) ||
|
||||
this.selectableStorageClasses.find((storageClass) => storageClass.name === LONGHORN) || this.selectableStorageClasses[0];
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
const defaultStorage = this.$store.getters[`${ inStore }/all`](STORAGE_CLASS).find((s) => s.isDefault);
|
||||
|
||||
return storageClass?.metadata?.name || '';
|
||||
if (!defaultStorage) {
|
||||
return LONGHORN;
|
||||
}
|
||||
|
||||
// if default sc is encrypted, use longhorn as default
|
||||
return defaultStorage.isEncrypted ? LONGHORN : defaultStorage?.metadata?.name;
|
||||
}
|
||||
},
|
||||
};
|
||||
@@ -609,13 +586,6 @@ export default {
|
||||
:disabled="isEdit"
|
||||
class="mb-20"
|
||||
/>
|
||||
|
||||
<Banner
|
||||
v-if="showStorageClassUnavailableBanner"
|
||||
color="info"
|
||||
>
|
||||
<span>{{ t(storageClassUnavailableMessage) }}</span>
|
||||
</Banner>
|
||||
</div>
|
||||
</div>
|
||||
</Tab>
|
||||
|
||||
@@ -32,10 +32,6 @@ import { isInternalStorageClass } from '../utils/storage-class';
|
||||
|
||||
const { READ_WRITE_MANY, READ_WRITE_ONCE, READ_ONLY_MANY } = ACCESS_MODE;
|
||||
|
||||
function getSelectableStorageClasses(storageClasses = []) {
|
||||
return storageClasses.filter((storageClass) => !storageClass.parameters?.backingImage && !isInternalStorageClass(storageClass.name));
|
||||
}
|
||||
|
||||
export default {
|
||||
name: 'HarvesterVolume',
|
||||
|
||||
@@ -82,15 +78,9 @@ export default {
|
||||
this.snapshots = hash.snapshots;
|
||||
this.images = hash.images;
|
||||
|
||||
const storageClasses = getSelectableStorageClasses(this.$store.getters[`harvester/all`](STORAGE_CLASS));
|
||||
const selectedStorage = storageClasses.find((storageClass) => storageClass.isDefault) ||
|
||||
storageClasses.find((storageClass) => storageClass.name === 'longhorn') || storageClasses[0];
|
||||
const defaultStorage = this.$store.getters[`harvester/all`](STORAGE_CLASS).find( (O) => O.isDefault);
|
||||
|
||||
const existingStorageClassName = this.value?.spec?.storageClassName;
|
||||
const storageClassName = this.isCreate && !storageClasses.some((storageClass) => storageClass.name === existingStorageClassName) ? undefined : existingStorageClassName;
|
||||
|
||||
this.value.spec['storageClassName'] = storageClassName || selectedStorage?.metadata?.name;
|
||||
this.storageClassesLoaded = true;
|
||||
this.value.spec['storageClassName'] = this.value?.spec?.storageClassName || defaultStorage?.metadata?.name || 'longhorn';
|
||||
},
|
||||
|
||||
data() {
|
||||
@@ -112,7 +102,6 @@ export default {
|
||||
createWithDataVolume: false,
|
||||
snapshots: [],
|
||||
images: [],
|
||||
storageClassesLoaded: false,
|
||||
GIBIBYTE,
|
||||
// Default KubeVirt high-performance disk profile, stored as annotations and
|
||||
// applied when this volume is later attached to a VM as a disk.
|
||||
@@ -258,14 +247,6 @@ export default {
|
||||
return true;
|
||||
},
|
||||
|
||||
selectableStorageClasses() {
|
||||
return getSelectableStorageClasses(this.storageClasses);
|
||||
},
|
||||
|
||||
showStorageClassUnavailableBanner() {
|
||||
return this.isCreate && this.isBlank && this.storageClassesLoaded && !this.selectableStorageClasses.length;
|
||||
},
|
||||
|
||||
storageClassOptions() {
|
||||
return this.storageClasses.filter((s) => !s.parameters?.backingImage).map((s) => {
|
||||
let label = s.isDefault ? `${ s.name } (${ this.t('generic.default') })` : s.name;
|
||||
@@ -437,13 +418,6 @@ export default {
|
||||
},
|
||||
|
||||
async save(buttonDone) {
|
||||
if (this.showStorageClassUnavailableBanner) {
|
||||
this.errors = [this.t('harvester.volume.storageClassUnavailable')];
|
||||
buttonDone(false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.isCreate && this.isBlank && this.createWithDataVolume) {
|
||||
try {
|
||||
this.update();
|
||||
@@ -606,14 +580,6 @@ export default {
|
||||
@update:value="update"
|
||||
/>
|
||||
|
||||
<Banner
|
||||
v-if="showStorageClassUnavailableBanner"
|
||||
color="info"
|
||||
class="mb-20"
|
||||
>
|
||||
<span>{{ t('harvester.volume.storageClassUnavailable') }}</span>
|
||||
</Banner>
|
||||
|
||||
<UnitInput
|
||||
v-model:value="storage"
|
||||
:label="t('harvester.volume.size')"
|
||||
|
||||
@@ -1,117 +0,0 @@
|
||||
import EditSubnet from '../index.vue';
|
||||
|
||||
const BGP_ANNOTATION = 'ovn.kubernetes.io/bgp';
|
||||
const { bgpEnabled } = EditSubnet.computed;
|
||||
|
||||
function createContext(annotations) {
|
||||
const value = {
|
||||
metadata: annotations ? { annotations: { ...annotations } } : {},
|
||||
setAnnotation(key, val) {
|
||||
if (val) {
|
||||
this.metadata.annotations = { ...this.metadata.annotations, [key]: val };
|
||||
} else if (this.metadata.annotations) {
|
||||
delete this.metadata.annotations[key];
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
return {
|
||||
value,
|
||||
get bgpEnabled() {
|
||||
return bgpEnabled.get.call(this);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
describe('edit: kubeovn.io.subnet BGP', () => {
|
||||
it.each([
|
||||
[undefined, false],
|
||||
[{}, false],
|
||||
[{ [BGP_ANNOTATION]: 'false' }, false],
|
||||
[{ [BGP_ANNOTATION]: 'true' }, true],
|
||||
[{ [BGP_ANNOTATION]: 'cluster' }, true],
|
||||
[{ [BGP_ANNOTATION]: 'local' }, true],
|
||||
])('should read the annotations %j as BGP enabled = %s', (annotations, expected) => {
|
||||
expect(createContext(annotations).bgpEnabled).toBe(expected);
|
||||
});
|
||||
|
||||
it('should add the BGP annotation when BGP is enabled', () => {
|
||||
const context = createContext();
|
||||
|
||||
bgpEnabled.set.call(context, true);
|
||||
|
||||
expect(context.value.metadata.annotations).toStrictEqual({ [BGP_ANNOTATION]: 'true' });
|
||||
});
|
||||
|
||||
it('should remove the BGP annotation when BGP is disabled', () => {
|
||||
const context = createContext({ [BGP_ANNOTATION]: 'true', other: 'kept' });
|
||||
|
||||
bgpEnabled.set.call(context, false);
|
||||
|
||||
expect(context.value.metadata.annotations).toStrictEqual({ other: 'kept' });
|
||||
});
|
||||
|
||||
it('should keep a "local" annotation set outside the form when BGP stays enabled', () => {
|
||||
const context = createContext({ [BGP_ANNOTATION]: 'local' });
|
||||
|
||||
bgpEnabled.set.call(context, true);
|
||||
|
||||
expect(context.value.metadata.annotations).toStrictEqual({ [BGP_ANNOTATION]: 'local' });
|
||||
});
|
||||
});
|
||||
|
||||
describe('edit: kubeovn.io.subnet BGP speaker hint', () => {
|
||||
function fetchContext({ featureEnabled = true, configuration } = {}) {
|
||||
const dispatch = jest.fn((action) => {
|
||||
if (action === 'harvester/find') {
|
||||
return configuration instanceof Error ? Promise.reject(configuration) : Promise.resolve(configuration);
|
||||
}
|
||||
|
||||
return Promise.resolve([]);
|
||||
});
|
||||
|
||||
return {
|
||||
bgpFeatureEnabled: featureEnabled,
|
||||
bgpSpeakerOff: false,
|
||||
$store: {
|
||||
dispatch,
|
||||
getters: {
|
||||
currentProduct: { inStore: 'harvester' },
|
||||
'harvester/schemaFor': () => ({}),
|
||||
},
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
it.each([
|
||||
['no speaker hosts', { bgpSpeakerHosts: [] }, true],
|
||||
['speaker hosts', { bgpSpeakerHosts: ['node-1'] }, false],
|
||||
])('should know whether a host runs the BGP speaker: %s', async(_, configuration, speakerOff) => {
|
||||
const context = fetchContext({ configuration });
|
||||
|
||||
await EditSubnet.fetch.call(context);
|
||||
|
||||
expect(context.$store.dispatch).toHaveBeenCalledWith('harvester/find', { type: 'kubeovn.io.configuration', id: 'kube-system/kubeovn' });
|
||||
expect(context.bgpSpeakerOff).toBe(speakerOff);
|
||||
});
|
||||
|
||||
it('should not warn when the Kube-OVN configuration cannot be read', async() => {
|
||||
const context = fetchContext({ configuration: new Error('forbidden') });
|
||||
|
||||
await EditSubnet.fetch.call(context);
|
||||
|
||||
expect(context.bgpSpeakerOff).toBe(false);
|
||||
});
|
||||
|
||||
it('should not read the Kube-OVN configuration on Harvester versions without BGP support', async() => {
|
||||
const context = fetchContext({ featureEnabled: false });
|
||||
|
||||
await EditSubnet.fetch.call(context);
|
||||
|
||||
expect(context.$store.dispatch).not.toHaveBeenCalledWith('harvester/find', expect.anything());
|
||||
});
|
||||
|
||||
it('should link to the BGP Speaker page', () => {
|
||||
expect(EditSubnet.computed.bgpSettingsLocation.call({})).toStrictEqual({ name: 'harvester-c-cluster-bgp-speaker' });
|
||||
});
|
||||
});
|
||||
@@ -13,12 +13,8 @@ import { set, remove } from '@shell/utils/object';
|
||||
import ArrayList from '@shell/components/form/ArrayList';
|
||||
import { allHash } from '@shell/utils/promise';
|
||||
import { HCI } from '../../types';
|
||||
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
|
||||
import ResourceTabs from '@shell/components/form/ResourceTabs/index';
|
||||
import { Banner } from '@components/Banner';
|
||||
import MessageLink from '@shell/components/MessageLink';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../config/harvester';
|
||||
import { KUBEOVN_CONFIGURATION_ID } from '../../models/kubeovn.io.configuration';
|
||||
import AccessControlList from './AccessControlList';
|
||||
|
||||
export default {
|
||||
@@ -37,7 +33,6 @@ export default {
|
||||
ArrayList,
|
||||
ResourceTabs,
|
||||
Loading,
|
||||
MessageLink,
|
||||
AccessControlList
|
||||
},
|
||||
|
||||
@@ -45,10 +40,6 @@ export default {
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
data() {
|
||||
return { bgpSpeakerOff: false };
|
||||
},
|
||||
|
||||
created() {
|
||||
const vpc = this.$route.query.vpc || '';
|
||||
const enableDHCP = this.value?.spec?.enableDHCP || false;
|
||||
@@ -78,16 +69,7 @@ export default {
|
||||
vlans: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VLAN }),
|
||||
};
|
||||
|
||||
// BGP on a subnet only has an effect when some host runs the BGP speaker (Overlay Networks > Settings)
|
||||
if (this.bgpFeatureEnabled && this.$store.getters[`${ inStore }/schemaFor`](HCI.KUBEOVN_CONFIG)) {
|
||||
hash.kubeovnConfig = this.$store.dispatch(`${ inStore }/find`, { type: HCI.KUBEOVN_CONFIG, id: KUBEOVN_CONFIGURATION_ID }).catch(() => null);
|
||||
}
|
||||
|
||||
const res = await allHash(hash);
|
||||
|
||||
if (res.kubeovnConfig) {
|
||||
this.bgpSpeakerOff = !res.kubeovnConfig.bgpSpeakerHosts?.length;
|
||||
}
|
||||
await allHash(hash);
|
||||
},
|
||||
|
||||
computed: {
|
||||
@@ -151,29 +133,6 @@ export default {
|
||||
value: n.id,
|
||||
}));
|
||||
},
|
||||
bgpFeatureEnabled() {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('kubeovnBgp');
|
||||
},
|
||||
|
||||
bgpSettingsLocation() {
|
||||
return { name: `${ HARVESTER_PRODUCT }-c-cluster-bgp-speaker` };
|
||||
},
|
||||
|
||||
bgpEnabled: {
|
||||
get() {
|
||||
const bgp = this.value?.metadata?.annotations?.[HCI_ANNOTATIONS.KUBEOVN_BGP];
|
||||
|
||||
// Kube-OVN also accepts "cluster" (same as "true") and "local" (only the pod IPs, from the hosts running them)
|
||||
return !!bgp && bgp !== 'false';
|
||||
},
|
||||
|
||||
set(enabled) {
|
||||
if (enabled !== this.bgpEnabled) {
|
||||
this.value.setAnnotation(HCI_ANNOTATIONS.KUBEOVN_BGP, enabled ? 'true' : null);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
natOutgoingDisabled() {
|
||||
// Disable the NAT Outgoing option when the subnet belongs to the ovn-cluster VPC and its name is join or ovn-default.
|
||||
return this.value?.spec?.vpc === 'ovn-cluster' && ['join', 'ovn-default'].includes(this.value?.metadata?.name);
|
||||
@@ -410,40 +369,6 @@ export default {
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div
|
||||
v-if="bgpFeatureEnabled"
|
||||
class="row mt-20"
|
||||
>
|
||||
<div class="col span-6">
|
||||
<RadioGroup
|
||||
v-model:value="bgpEnabled"
|
||||
name="bgp"
|
||||
:options="[true, false]"
|
||||
:label="t('harvester.subnet.bgp.label')"
|
||||
:labels="[t('generic.enabled'), t('generic.disabled')]"
|
||||
:mode="mode"
|
||||
tooltip-key="harvester.subnet.bgp.tooltip"
|
||||
/>
|
||||
<Banner
|
||||
v-if="bgpEnabled && bgpSpeakerOff"
|
||||
color="warning"
|
||||
data-testid="subnet-bgp-speaker-off"
|
||||
>
|
||||
<MessageLink
|
||||
:to="bgpSettingsLocation"
|
||||
prefix-label="harvester.subnet.bgp.speakerOff.prefix"
|
||||
middle-label="harvester.subnet.bgp.speakerOff.middle"
|
||||
suffix-label="harvester.subnet.bgp.speakerOff.suffix"
|
||||
/>
|
||||
</Banner>
|
||||
<Banner
|
||||
v-if="bgpEnabled"
|
||||
color="info"
|
||||
data-testid="subnet-bgp-external-gateway"
|
||||
:label="t('harvester.subnet.bgp.externalGateway', null, true)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<ArrayList
|
||||
v-if="showAllowSubnets"
|
||||
v-model:value="value.spec.allowSubnets"
|
||||
|
||||
@@ -96,7 +96,6 @@ harvester:
|
||||
backup:
|
||||
success: 'Backup { backUpName } has been initiated.'
|
||||
addBackup: Add Backup
|
||||
noTypeAvailable: No backup type can protect this virtual machine.
|
||||
fileSystemFreezeDeadline:
|
||||
label: 'File System Freeze Deadline'
|
||||
quota:
|
||||
@@ -1194,7 +1193,6 @@ harvester:
|
||||
size: Size
|
||||
volumeMode: Volume Mode
|
||||
accessModes: Access Modes
|
||||
storageClassUnavailable: No selectable StorageClasses are available. Create a StorageClass before creating a volume.
|
||||
createWithDataVolume: Create with DataVolume
|
||||
createWithDataVolumeTooltip: Create Volume with Kubevirt/Containerized Data Importer way. It can fill accessMode/volumeMode automatically.
|
||||
showAdvanced: Show Advanced Options
|
||||
@@ -1237,8 +1235,6 @@ harvester:
|
||||
fileName: File Name
|
||||
uploadFile: Upload File
|
||||
source: Source Type
|
||||
storageClassUnavailable: No selectable StorageClasses are available. Create a StorageClass before creating an image.
|
||||
encryptedStorageClassUnavailable: No selectable encrypted StorageClasses are available. Create an encrypted StorageClass before creating an image.
|
||||
sourceType:
|
||||
download: URL
|
||||
upload: File
|
||||
@@ -1364,31 +1360,6 @@ harvester:
|
||||
label: Refresh Interval
|
||||
tip: The interval for the backup target to sync data to [[Harvester]] cluster. Set to 0 to disable refresh mechanism.
|
||||
backupTargetTip: The endpoint used to access the backupstore. NFS and S3 are supported.
|
||||
thirdPartyBackup:
|
||||
label: Enable Restic and Kopia Backups
|
||||
tooltip: Allows Restic and Kopia virtual machine backups to this S3 target. Native backups and snapshots are not affected.
|
||||
password:
|
||||
label: Repository Password
|
||||
tip: Restic and Kopia encrypt their backups with this password. Enter it every time you save this setting. It can't be changed for an existing repository, so keep a copy.
|
||||
kopiaGC:
|
||||
label: Enable Kopia Garbage Collection
|
||||
tooltip: Runs scheduled Kopia maintenance to remove unused data from the S3 repository.
|
||||
type:
|
||||
backup: Native
|
||||
snapshot: Snapshot
|
||||
restic: Restic
|
||||
kopia: Kopia
|
||||
typeUnavailable:
|
||||
native: Not supported by the volumes of this virtual machine.
|
||||
longhornV2: Not supported on Longhorn V2 volumes such as {volume}.
|
||||
cdi: Not supported on volumes created from a CDI image such as {volume}.
|
||||
noBackupSnapshotClass: Set a backup volume snapshot class for {driver} in the csi-driver-config setting.
|
||||
requiresS3: Requires an S3 backup target.
|
||||
requiresBlock: Requires Block volume mode, but {volume} uses Filesystem.
|
||||
longhornV1: Not supported on Longhorn V1 volumes such as {volume}.
|
||||
noSnapshotClass: Set a volume snapshot class for {driver} in the csi-driver-config setting.
|
||||
snapshot: The volumes of this virtual machine cannot be snapshotted.
|
||||
thirdPartyBackupOff: Not enabled in the backup-target setting.
|
||||
message:
|
||||
noSetting:
|
||||
prefix: You must configure the backup target
|
||||
@@ -1461,14 +1432,6 @@ harvester:
|
||||
private:
|
||||
label: Private Subnet
|
||||
tooltip: Enable network isolation for this Subnet. When enabled, VMs can only communicate within this subnet, even if other subnets exist under the same VPC.
|
||||
bgp:
|
||||
label: BGP
|
||||
tooltip: Advertise this subnet to the BGP neighbors set in Overlay Networks > BGP Speaker.
|
||||
externalGateway: Label the hosts that act as gateways for external traffic with the key "ovn.kubernetes.io/external-gw" and the value "true".
|
||||
speakerOff:
|
||||
prefix: No host runs the BGP speaker yet, so this subnet isn't advertised. Set it up on the
|
||||
middle: BGP Speaker
|
||||
suffix: page under Overlay Networks.
|
||||
allowSubnet:
|
||||
label: Allow Subnets
|
||||
tooltip: You can specify certain subnets which can communicate with this subnet.
|
||||
@@ -1552,63 +1515,6 @@ harvester:
|
||||
validation:
|
||||
ip: '"IP Address" must be an IPv4 address, an IPv6 address, or one of each separated by a comma.'
|
||||
subnet: '"IP Address" must not be in subnet {subnet} ({cidr}) of this VPC.'
|
||||
bgp:
|
||||
label: BGP Speaker
|
||||
noAddonEnabled:
|
||||
prefix: The kubeovn-operator add-on is not enabled, click
|
||||
middle: here
|
||||
suffix: to enable the add-on before setting up the BGP speaker.
|
||||
unsupported: The BGP speaker requires [[Harvester]] v1.10.0 or later.
|
||||
description: The BGP speaker runs on the selected hosts and advertises every subnet that has BGP enabled to the BGP neighbors. Enable BGP on each subnet that should be reachable from the external network. When the speaker is disabled, no host runs it, and its settings are kept for when you enable it again.
|
||||
sections:
|
||||
advanced: Advanced
|
||||
nodeNames:
|
||||
label: Speaker Hosts
|
||||
placeholder: Select hosts
|
||||
tooltip: The hosts that run the BGP speaker. Each host connects to every neighbor.
|
||||
clusterAS:
|
||||
label: Cluster AS
|
||||
placeholder: e.g. 65000
|
||||
tooltip: The autonomous system (AS) number of this cluster.
|
||||
routerID:
|
||||
label: Router ID
|
||||
placeholder: Each host's own IPv4 address
|
||||
tooltip: Optional. Leave it empty so each host uses its own IPv4 address. Set it only when a single host runs the speaker.
|
||||
neighborAS:
|
||||
label: Neighbor AS
|
||||
placeholder: e.g. 65030
|
||||
tooltip: The autonomous system (AS) number of the neighbors. All neighbors must be in the same AS.
|
||||
neighbors:
|
||||
label: Neighbors
|
||||
description: The addresses of the external BGP routers the speaker connects to. Add at least one, IPv4 or IPv6.
|
||||
neighborsV4:
|
||||
label: IPv4 Address
|
||||
placeholder: e.g. 10.115.53.2
|
||||
add: Add IPv4 Neighbor
|
||||
neighborsV6:
|
||||
label: IPv6 Address
|
||||
placeholder: e.g. 2001:db8::2
|
||||
add: Add IPv6 Neighbor
|
||||
nextHopV4:
|
||||
label: Next Hop (IPv4)
|
||||
placeholder: Each host's own address
|
||||
tooltip: Optional. The IPv4 next hop of the advertised routes. Leave it empty to use each host's own address.
|
||||
nextHopV6:
|
||||
label: Next Hop (IPv6)
|
||||
placeholder: Each host's own address
|
||||
tooltip: Optional. The IPv6 next hop of the advertised routes. Leave it empty to use each host's own address.
|
||||
validation:
|
||||
hostsRequired: Select at least one speaker host, or set the BGP speaker to Disabled.
|
||||
neighborRequired: Add at least one neighbor address, IPv4 or IPv6.
|
||||
neighborV4: '"{ip}" is not an IPv4 address.'
|
||||
neighborV6: '"{ip}" is not an IPv6 address.'
|
||||
placeholderNeighbor: '{ip} is the placeholder address Harvester installs, not a BGP router.'
|
||||
leadingZero: '"{ip}" has a leading zero; write it as {fixed}.'
|
||||
asNumber: '"{key}" must be a whole number from 1 to {max}.'
|
||||
routerID: '"Router ID" must be an IPv4 address.'
|
||||
routerIDMultipleHosts: Leave "Router ID" empty when more than one host runs the speaker, so each host uses its own address.
|
||||
ipv4: '"{key}" must be an IPv4 address.'
|
||||
ipv6: '"{key}" must be an IPv6 address.'
|
||||
natGateway:
|
||||
label: NAT Gateways
|
||||
internalTenantNetwork:
|
||||
@@ -1984,16 +1890,6 @@ harvester:
|
||||
allowWorkloadDisruption: "Allow Workload Disruption"
|
||||
disableTLS: "Disable TLS"
|
||||
matchSELinuxLevelOnMigration: "Match SELinux Level On Migration"
|
||||
thirdPartyBackupConfig:
|
||||
memoryRequest: Memory Request
|
||||
memoryLimit: Memory Limit
|
||||
ephemeralRequest: Ephemeral Storage Request
|
||||
ephemeralLimit: Ephemeral Storage Limit
|
||||
cacheSize: Cache Size
|
||||
cacheSizeHint: Must be less than the ephemeral storage limit.
|
||||
maxConcurrentJobs: Maximum Concurrent Jobs
|
||||
maxConcurrentJobsHint: Set to 0 for no limit.
|
||||
noCache: Disable Cache
|
||||
|
||||
cloudTemplate:
|
||||
label: Cloud Configuration Templates
|
||||
@@ -2892,7 +2788,6 @@ advancedSettings:
|
||||
'harv-rancher-cluster': 'Configure Rancher cluster integration settings for guest cluster management.'
|
||||
'harv-max-hotplug-ratio': 'The ratio for kubevirt to limit the maximum CPU and memory that can be hotplugged to a VM. The value could be an integer between 1 and 20, default to 4.'
|
||||
'harv-kubevirt-migration': 'Configure cluster-wide KubeVirt live migration parameters.'
|
||||
'harv-third-party-backup-config': 'Configure the resources and concurrency of Restic and Kopia virtual machine backup jobs.'
|
||||
'harv-instance-manager-resources': 'Configure resource percentage reservations for Longhorn instance manager V1 and V2. Valid instance manager CPU range between 0 - 40.'
|
||||
'harv-cluster-pod-security-standard': 'Enforce Kubernetes Pod Security Standards (PSS) at the cluster level.'
|
||||
'harv-maintenance-mode-drain-timeout': 'Maintenance mode drain timeout in minutes. Use 0 to disable the timeout.'
|
||||
|
||||
@@ -112,15 +112,6 @@ export default {
|
||||
},
|
||||
];
|
||||
|
||||
if (this.thirdPartyBackupFeatureEnabled) {
|
||||
cols.push({
|
||||
name: 'backupType',
|
||||
labelKey: 'harvester.fields.type',
|
||||
value: 'backupTypeLabel',
|
||||
sort: 'backupTypeLabel',
|
||||
});
|
||||
}
|
||||
|
||||
if (this.schedulingVMBackupFeatureEnabled) {
|
||||
cols.push({
|
||||
name: 'backupCreatedFrom',
|
||||
@@ -162,10 +153,6 @@ export default {
|
||||
return cols;
|
||||
},
|
||||
|
||||
thirdPartyBackupFeatureEnabled() {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('thirdPartyVMBackup');
|
||||
},
|
||||
|
||||
schedulingVMBackupFeatureEnabled() {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('schedulingVMBackup');
|
||||
},
|
||||
@@ -177,7 +164,7 @@ export default {
|
||||
return this.backups.filter((r) => r.spec?.type !== BACKUP_TYPE.SNAPSHOT);
|
||||
},
|
||||
getRawRows() {
|
||||
return this.rows.filter((r) => r.spec?.type !== BACKUP_TYPE.SNAPSHOT);
|
||||
return this.rows.filter((r) => r.spec?.type === BACKUP_TYPE.BACKUP);
|
||||
},
|
||||
backupTargetResource() {
|
||||
return this.settings.find((O) => O.id === 'backup-target');
|
||||
|
||||
@@ -114,7 +114,7 @@ export default {
|
||||
},
|
||||
|
||||
filteredRows() {
|
||||
return this.snapshots.filter((r) => r.spec?.type === BACKUP_TYPE.SNAPSHOT);
|
||||
return this.snapshots.filter((r) => r.spec?.type !== BACKUP_TYPE.BACKUP);
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -1,43 +0,0 @@
|
||||
import HciVmBackup from '../harvesterhci.io.virtualmachinebackup';
|
||||
import { HCI } from '../../types';
|
||||
|
||||
jest.mock('../harvester', () => ({ __esModule: true, default: class {} }));
|
||||
jest.mock('@shell/plugins/dashboard-store/resource-class', () => ({ colorForState: jest.fn() }));
|
||||
|
||||
function createBackup(type) {
|
||||
const backup = Object.create(HciVmBackup.prototype);
|
||||
const push = jest.fn();
|
||||
|
||||
Object.assign(backup, { spec: { type } });
|
||||
Object.defineProperty(backup, 'name', { value: 'b1' });
|
||||
Object.defineProperty(backup, 't', { value: (key) => key });
|
||||
Object.defineProperty(backup, 'currentRouter', { value: () => ({ push }) });
|
||||
|
||||
return { backup, push };
|
||||
}
|
||||
|
||||
describe('class HciVmBackup', () => {
|
||||
it.each([
|
||||
['backup', HCI.BACKUP],
|
||||
['restic', HCI.BACKUP],
|
||||
['kopia', HCI.BACKUP],
|
||||
[undefined, HCI.BACKUP],
|
||||
['snapshot', HCI.VM_SNAPSHOT],
|
||||
])('should restore a %s backup through %s', (type, resource) => {
|
||||
const { backup, push } = createBackup(type);
|
||||
|
||||
backup.restoreNewVM();
|
||||
backup.restoreExistingVM();
|
||||
|
||||
expect(push).toHaveBeenCalledTimes(2);
|
||||
expect(push.mock.calls[0][0].params.resource).toBe(resource);
|
||||
expect(push.mock.calls[1][0].params.resource).toBe(resource);
|
||||
});
|
||||
|
||||
it.each([
|
||||
['kopia', 'harvester.backup.type.kopia'],
|
||||
[undefined, 'harvester.backup.type.backup'],
|
||||
])('should label type %s as %s', (type, label) => {
|
||||
expect(createBackup(type).backup.backupTypeLabel).toBe(label);
|
||||
});
|
||||
});
|
||||
@@ -1,6 +1,6 @@
|
||||
import { reactive } from 'vue';
|
||||
import VirtVm from '../kubevirt.io.virtualmachine';
|
||||
import { POD, PV, PVC } from '@shell/config/types';
|
||||
import { POD, PVC } from '@shell/config/types';
|
||||
import { HCI } from '../../types';
|
||||
|
||||
// The Steve base model and the shell resource class pull in most of the dashboard, none of that is needed here
|
||||
@@ -15,7 +15,7 @@ const VM_ID = 'ns1/vm1';
|
||||
// Creates a VM model with mocked store getters. Like the real store, `all` returns the same array that is mutated in place.
|
||||
// Reads from the global `$rootGetters` are recorded in `globalReads`.
|
||||
function createVm({
|
||||
vm = {}, vmi, pods = [], pvcs = [], restores = [], backups = [], claims = ['disk-pvc'], printableStatus, root = {}
|
||||
vm = {}, vmi, pods = [], pvcs = [], restores = [], backups = [], claims = ['disk-pvc'], printableStatus
|
||||
} = {}) {
|
||||
const lists = reactive({
|
||||
[POD]: pods,
|
||||
@@ -31,7 +31,7 @@ function createVm({
|
||||
schemaFor: () => undefined,
|
||||
};
|
||||
const globalReads = [];
|
||||
const rootGetters = new Proxy({ 'harvester-common/getFeatureEnabled': () => false, ...root }, {
|
||||
const rootGetters = new Proxy({ 'harvester-common/getFeatureEnabled': () => false }, {
|
||||
get(target, key) {
|
||||
globalReads.push(key);
|
||||
|
||||
@@ -86,193 +86,7 @@ const pvc = (name, encrypted, ns = 'ns1') => ({
|
||||
isEncrypted: encrypted,
|
||||
});
|
||||
|
||||
const LONGHORN_CSI = { 'driver.longhorn.io': { volumeSnapshotClassName: 'longhorn-snapshot', backupVolumeSnapshotClassName: 'longhorn' } };
|
||||
|
||||
function backupVm({
|
||||
actions = { backup: '/backup', snapshot: '/snapshot' }, volumes = [{}], target = 's3', thirdPartyBackupEnabled = true, csi = {}
|
||||
} = {}) {
|
||||
// target null: a user who can't read backup-target or csi-driver-config
|
||||
const settings = target === null ? {} : {
|
||||
'backup-target': { value: JSON.stringify({ type: target, thirdPartyBackupEnabled }) },
|
||||
'csi-driver-config': { value: JSON.stringify(csi), default: JSON.stringify(LONGHORN_CSI) },
|
||||
};
|
||||
const pvcs = volumes.map((volume, i) => ({
|
||||
id: `ns1/disk-${ i }`, name: `disk-${ i }`, isBlockVolume: true, ...volume
|
||||
}));
|
||||
const { vm } = createVm({
|
||||
pvcs,
|
||||
claims: pvcs.map((p) => p.name),
|
||||
root: {
|
||||
'harvester-common/getFeatureEnabled': (feature) => feature === 'thirdPartyVMBackup',
|
||||
'harvester/byId': (type, id) => settings[id],
|
||||
},
|
||||
});
|
||||
|
||||
vm.actions = actions;
|
||||
|
||||
return Object.fromEntries(vm.backupTypeOptions.map((option) => [option.value, option.unavailableReason]));
|
||||
}
|
||||
|
||||
const LVM_CSI = { 'lvm.driver.harvesterhci.io': { volumeSnapshotClassName: 'lvm', backupVolumeSnapshotClassName: 'lvm' } };
|
||||
|
||||
describe('class VirtVm', () => {
|
||||
describe('canTakeBackup', () => {
|
||||
it.each([
|
||||
[{ backup: '/b' }, true, true],
|
||||
[{ snapshot: '/s' }, true, true],
|
||||
[{ snapshot: '/s' }, false, false],
|
||||
[{ backup: '/b' }, false, true],
|
||||
[{}, true, false],
|
||||
])('with actions %j and the feature %s returns %s', (actions, enabled, expected) => {
|
||||
const { vm } = createVm({ root: { 'harvester-common/getFeatureEnabled': () => enabled, 'harvester/byId': () => undefined } });
|
||||
|
||||
vm.actions = actions;
|
||||
|
||||
expect(vm.canTakeBackup).toBe(expected);
|
||||
});
|
||||
|
||||
it.each([
|
||||
['an NFS target', { type: 'nfs' }, false],
|
||||
['an S3 target with Restic and Kopia enabled', { type: 's3', thirdPartyBackupEnabled: true }, true],
|
||||
['an S3 target with Restic and Kopia not enabled', { type: 's3' }, false],
|
||||
['a target the user cannot read', undefined, true],
|
||||
])('with only the snapshot action and %s returns %s', (_, target, expected) => {
|
||||
const { vm } = createVm({
|
||||
root: {
|
||||
'harvester-common/getFeatureEnabled': () => true,
|
||||
'harvester/byId': () => (target ? { value: JSON.stringify(target) } : undefined),
|
||||
},
|
||||
});
|
||||
|
||||
vm.actions = { snapshot: '/s' };
|
||||
|
||||
expect(vm.canTakeBackup).toBe(expected);
|
||||
});
|
||||
|
||||
it.each([
|
||||
['a Longhorn v1 volume', { isLonghornV1: true, isBlockVolume: true }, false],
|
||||
['a Filesystem volume', { isBlockVolume: false }, false],
|
||||
['a CDI Block volume', { isCreatedForDataVolume: true, isBlockVolume: true }, true],
|
||||
])('with only the snapshot action, a target the user cannot read and %s returns %s', (_, volume, expected) => {
|
||||
const { vm } = createVm({
|
||||
pvcs: [{ id: 'ns1/disk-0', ...volume }],
|
||||
claims: ['disk-0'],
|
||||
root: { 'harvester-common/getFeatureEnabled': () => true, 'harvester/byId': () => undefined },
|
||||
});
|
||||
|
||||
vm.actions = { snapshot: '/s' };
|
||||
|
||||
expect(vm.canTakeBackup).toBe(expected);
|
||||
});
|
||||
});
|
||||
|
||||
describe('backupTypeOptions', () => {
|
||||
it('should offer every type when a third-party driver has both snapshot classes', () => {
|
||||
const reasons = backupVm({ csi: LVM_CSI, volumes: [{ volumeProvider: 'lvm.driver.harvesterhci.io' }] });
|
||||
|
||||
expect(reasons).toStrictEqual({
|
||||
backup: undefined, restic: undefined, kopia: undefined
|
||||
});
|
||||
});
|
||||
|
||||
it('should explain a driver without a backup snapshot class on native only', () => {
|
||||
const reasons = backupVm({
|
||||
csi: { 'lvm.driver.harvesterhci.io': { volumeSnapshotClassName: 'lvm' } },
|
||||
volumes: [{ volumeProvider: 'lvm.driver.harvesterhci.io' }],
|
||||
});
|
||||
|
||||
expect(reasons.backup).toBe('harvester.backup.typeUnavailable.noBackupSnapshotClass');
|
||||
expect(reasons.kopia).toBeUndefined();
|
||||
});
|
||||
|
||||
it.each([
|
||||
['only other drivers', LVM_CSI],
|
||||
['no drivers', {}],
|
||||
])('should keep the default Longhorn entry when the configured value has %s', (_, csi) => {
|
||||
const reasons = backupVm({ csi, volumes: [{ isLonghornV1: true, volumeProvider: 'driver.longhorn.io' }] });
|
||||
|
||||
expect(reasons.backup).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should offer only Restic and Kopia on Longhorn v2, where the backend drops the backup action', () => {
|
||||
const reasons = backupVm({
|
||||
actions: { snapshot: '/s' },
|
||||
volumes: [{ isLonghornV2: true, volumeProvider: 'driver.longhorn.io' }],
|
||||
});
|
||||
|
||||
expect(reasons.backup).toBe('harvester.backup.typeUnavailable.longhornV2');
|
||||
expect(reasons.restic).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should explain a CDI volume on native', () => {
|
||||
const reasons = backupVm({ actions: { snapshot: '/s' }, volumes: [{ isCreatedForDataVolume: true }] });
|
||||
|
||||
expect(reasons.backup).toBe('harvester.backup.typeUnavailable.cdi');
|
||||
expect(reasons.kopia).toBeUndefined();
|
||||
});
|
||||
|
||||
it.each([
|
||||
['an NFS target', { target: 'nfs' }, 'requiresS3'],
|
||||
['a Filesystem volume', { volumes: [{ isBlockVolume: false }] }, 'requiresBlock'],
|
||||
['a Longhorn v1 volume', { volumes: [{ isLonghornV1: true }] }, 'longhornV1'],
|
||||
['one bad volume among good ones', { volumes: [{}, { isLonghornV1: true }] }, 'longhornV1'],
|
||||
['a driver without a snapshot class', {
|
||||
actions: { backup: '/b' },
|
||||
csi: { 'lvm.driver.harvesterhci.io': { backupVolumeSnapshotClassName: 'lvm' } },
|
||||
volumes: [{ volumeProvider: 'lvm.driver.harvesterhci.io' }],
|
||||
}, 'noSnapshotClass'],
|
||||
['no snapshot action', { actions: { backup: '/b' } }, 'snapshot'],
|
||||
['an S3 target with Restic and Kopia not enabled', { thirdPartyBackupEnabled: false }, 'thirdPartyBackupOff'],
|
||||
])('should block Restic and Kopia with %s', (_, args, reason) => {
|
||||
const reasons = backupVm(args);
|
||||
|
||||
expect(reasons.restic).toBe(`harvester.backup.typeUnavailable.${ reason }`);
|
||||
expect(reasons.kopia).toBe(`harvester.backup.typeUnavailable.${ reason }`);
|
||||
});
|
||||
|
||||
it('should explain a volume problem before a target that only needs Restic and Kopia enabled', () => {
|
||||
const reasons = backupVm({ thirdPartyBackupEnabled: false, volumes: [{ isLonghornV1: true }] });
|
||||
|
||||
expect(reasons.kopia).toBe('harvester.backup.typeUnavailable.longhornV1');
|
||||
});
|
||||
|
||||
it('should leave the target check to the webhook when the user cannot read it', () => {
|
||||
const reasons = backupVm({
|
||||
actions: { snapshot: '/s' }, target: null, volumes: [{ isCreatedForDataVolume: true }]
|
||||
});
|
||||
|
||||
expect(reasons.restic).toBeUndefined();
|
||||
expect(reasons.kopia).toBeUndefined();
|
||||
});
|
||||
|
||||
it('should leave a driver check to the webhook when the CSI config is unreadable', () => {
|
||||
const { vm } = createVm({
|
||||
pvcs: [{ id: 'ns1/disk-pvc', volumeProvider: 'lvm.driver.harvesterhci.io' }],
|
||||
root: { 'harvester/byId': () => undefined },
|
||||
});
|
||||
|
||||
expect(vm.driverMissingSnapshotClass('backupVolumeSnapshotClassName')).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
||||
describe('fetchBackupTypeRequirements', () => {
|
||||
it('should load only what the VM needs and survive a resource the user cannot read', async() => {
|
||||
const { vm, lists } = createVm({ pvcs: [{ id: 'ns1/disk-pvc', spec: { volumeName: 'pv-1' } }] });
|
||||
const dispatch = jest.fn((_, { type }) => (type === PV ? Promise.reject(new Error('forbidden')) : Promise.resolve()));
|
||||
|
||||
Object.defineProperty(vm, '$dispatch', { value: dispatch });
|
||||
|
||||
await expect(vm.fetchBackupTypeRequirements()).resolves.toBeUndefined();
|
||||
|
||||
expect(lists[PVC]).toHaveLength(1);
|
||||
expect(dispatch).toHaveBeenCalledWith('find', { type: PVC, id: 'ns1/disk-pvc' });
|
||||
expect(dispatch).toHaveBeenCalledWith('find', { type: HCI.SETTING, id: 'backup-target' });
|
||||
expect(dispatch).toHaveBeenCalledWith('find', { type: HCI.SETTING, id: 'csi-driver-config' });
|
||||
expect(dispatch).toHaveBeenCalledWith('find', { type: PV, id: 'pv-1' });
|
||||
expect(dispatch).toHaveBeenCalledTimes(4);
|
||||
});
|
||||
});
|
||||
|
||||
describe('restoreResource', () => {
|
||||
it('should distinguish snapshots from backups and follow backup updates', () => {
|
||||
const { vm, lists } = createVm({
|
||||
@@ -293,9 +107,6 @@ describe('class VirtVm', () => {
|
||||
expect(vm.restoreResource.fromSnapshot).toBe(false);
|
||||
expect(vm.restoreState).toBe(false);
|
||||
|
||||
lists[HCI.BACKUP][1].spec.type = 'kopia';
|
||||
expect(vm.restoreResource.fromSnapshot).toBe(false);
|
||||
|
||||
lists[HCI.BACKUP][1].spec.type = 'snapshot';
|
||||
expect(vm.restoreResource.fromSnapshot).toBe(true);
|
||||
|
||||
|
||||
@@ -353,14 +353,6 @@ export default class HciPv extends HarvesterResource {
|
||||
return this.dataEngine === DATA_ENGINE_V2;
|
||||
}
|
||||
|
||||
get isBlockVolume() {
|
||||
return this.spec?.volumeMode === 'Block';
|
||||
}
|
||||
|
||||
get isCreatedForDataVolume() {
|
||||
return !!this.metadata?.annotations?.[HCI_ANNOTATIONS.CDI_CREATED_FOR_DATA_VOLUME];
|
||||
}
|
||||
|
||||
get isGoldenImageVolume() {
|
||||
return this?.metadata?.annotations?.[HCI_ANNOTATIONS.GOLDEN_IMAGE] === 'true';
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ export default class HciVmBackup extends HarvesterResource {
|
||||
|
||||
restoreExistingVM(resource = this) {
|
||||
const router = this.currentRouter();
|
||||
const targetResource = resource.spec.type === BACKUP_TYPE.SNAPSHOT ? HCI.VM_SNAPSHOT : HCI.BACKUP;
|
||||
const targetResource = resource.spec.type === BACKUP_TYPE.BACKUP ? HCI.BACKUP : HCI.VM_SNAPSHOT;
|
||||
|
||||
router.push({
|
||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
||||
@@ -100,7 +100,7 @@ export default class HciVmBackup extends HarvesterResource {
|
||||
|
||||
restoreNewVM(resource = this) {
|
||||
const router = this.currentRouter();
|
||||
const targetResource = resource.spec.type === BACKUP_TYPE.SNAPSHOT ? HCI.VM_SNAPSHOT : HCI.BACKUP;
|
||||
const targetResource = resource.spec.type === BACKUP_TYPE.BACKUP ? HCI.BACKUP : HCI.VM_SNAPSHOT;
|
||||
|
||||
router.push({
|
||||
name: `${ HARVESTER_PRODUCT }-c-cluster-resource-create`,
|
||||
@@ -143,10 +143,6 @@ export default class HciVmBackup extends HarvesterResource {
|
||||
return this.spec.source.name;
|
||||
}
|
||||
|
||||
get backupTypeLabel() {
|
||||
return this.t(`harvester.backup.type.${ this.spec?.type || BACKUP_TYPE.BACKUP }`);
|
||||
}
|
||||
|
||||
get backupContentName() {
|
||||
return this?.status?.virtualMachineBackupContentName || '';
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
import { isIpv4 } from '@shell/utils/string';
|
||||
import { isValidIP } from '@shell/utils/validators/cidr';
|
||||
import HarvesterResource from './harvester';
|
||||
|
||||
// The kubeovn-operator keeps a single Configuration; the BGP speaker reads its spec.bgp
|
||||
export const KUBEOVN_CONFIGURATION_ID = 'kube-system/kubeovn';
|
||||
|
||||
// Values Harvester installs before anyone sets up BGP. The addresses are documentation addresses, never a real neighbor.
|
||||
const PLACEHOLDER_AS = { neighborAS: 64512, clusterAS: 64513 };
|
||||
const PLACEHOLDER_NEIGHBORS = ['192.0.2.1', '2001:db8::1'];
|
||||
|
||||
// spec.bgp keeps its lists as comma-separated strings
|
||||
const splitList = (value) => `${ value || '' }`.split(',').map((item) => item.trim()).filter(Boolean);
|
||||
|
||||
export const isIpv6 = (ip) => isValidIP(ip) && !isIpv4(ip);
|
||||
|
||||
export const isPlaceholderNeighbor = (ip) => PLACEHOLDER_NEIGHBORS.includes(`${ ip || '' }`.trim());
|
||||
|
||||
// The speaker parses its addresses with Go, which rejects an IPv4 part written with a leading zero (192.0.2.010), so
|
||||
// the speaker would not start. Returns the address without those zeros, or null when it has none. An IPv6 address
|
||||
// can end in an IPv4 one (::ffff:10.0.0.1), so only its dotted tail is checked.
|
||||
export const withoutLeadingZeros = (ip) => {
|
||||
const value = `${ ip || '' }`.trim();
|
||||
const tailStart = value.lastIndexOf(':') + 1;
|
||||
const parts = value.slice(tailStart).split('.');
|
||||
|
||||
if (parts.length !== 4 || !parts.some((part) => /^0\d/.test(part))) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return value.slice(0, tailStart) + parts.map((part) => part.replace(/^0+(?=\d)/, '')).join('.');
|
||||
};
|
||||
|
||||
export default class KubeOvnConfiguration extends HarvesterResource {
|
||||
get bgp() {
|
||||
return this.spec?.bgp || {};
|
||||
}
|
||||
|
||||
// The speaker only runs on these hosts: none means BGP is off
|
||||
get bgpSpeakerHosts() {
|
||||
return splitList(this.bgp.nodeNames);
|
||||
}
|
||||
|
||||
// The placeholder neighbors are left out: they are never a real BGP router
|
||||
get bgpNeighborsV4() {
|
||||
return splitList(this.bgp.neighborV4Address).filter((ip) => !isPlaceholderNeighbor(ip));
|
||||
}
|
||||
|
||||
get bgpNeighborsV6() {
|
||||
return splitList(this.bgp.neighborV6Address).filter((ip) => !isPlaceholderNeighbor(ip));
|
||||
}
|
||||
|
||||
get bgpNeighbors() {
|
||||
return [...this.bgpNeighborsV4, ...this.bgpNeighborsV6];
|
||||
}
|
||||
|
||||
get bgpNextHops() {
|
||||
return splitList(this.bgp.nextHops);
|
||||
}
|
||||
|
||||
// Nobody has set up BGP yet: only the values Harvester installs. A speaker that was set up and then disabled keeps
|
||||
// its neighbors, so it never matches, even when its AS numbers happen to be the placeholder ones (they are private
|
||||
// AS numbers anyone can pick).
|
||||
get bgpUntouched() {
|
||||
const bgp = this.bgp;
|
||||
|
||||
return !this.bgpSpeakerHosts.length &&
|
||||
!this.bgpNeighbors.length &&
|
||||
!bgp.routerID &&
|
||||
!this.bgpNextHops.length &&
|
||||
bgp.neighborAS === PLACEHOLDER_AS.neighborAS &&
|
||||
bgp.clusterAS === PLACEHOLDER_AS.clusterAS;
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import { load } from 'js-yaml';
|
||||
import { omitBy, pickBy } from 'lodash';
|
||||
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../config/harvester';
|
||||
import { colorForState, stateSort } from '@shell/plugins/dashboard-store/resource-class';
|
||||
import { POD, NODE, PV, PVC } from '@shell/config/types';
|
||||
import { POD, NODE, PVC } from '@shell/config/types';
|
||||
import { FilterArgs, PaginationParamFilter } from '@shell/types/store/pagination.types';
|
||||
import { findBy } from '@shell/utils/array';
|
||||
import { parseSi } from '@shell/utils/units';
|
||||
@@ -16,7 +16,7 @@ import { HCI } from '../types';
|
||||
import HarvesterResource from './harvester';
|
||||
import { getVmCPUMemoryValues } from '../utils/cpuMemory';
|
||||
import { sharedComputed } from '../utils/shared-computed';
|
||||
import { getBackupTarget, isBackupTargetSettingUnavailable } from '../utils/setting';
|
||||
import { isBackupTargetSettingUnavailable } from '../utils/setting';
|
||||
|
||||
export const OFF = 'Off';
|
||||
|
||||
@@ -202,7 +202,7 @@ export default class VirtVm extends HarvesterResource {
|
||||
},
|
||||
{
|
||||
action: 'backupVM',
|
||||
enabled: this.canTakeBackup && !this.isBackupTargetUnavailable,
|
||||
enabled: !!this.actions?.backup && !this.isBackupTargetUnavailable,
|
||||
icon: 'icon icon-backup',
|
||||
label: this.t('harvester.action.backup')
|
||||
},
|
||||
@@ -976,7 +976,7 @@ export default class VirtVm extends HarvesterResource {
|
||||
const backup = this.$getters['byId'](HCI.BACKUP, backupId);
|
||||
|
||||
// Snapshots and backups are told apart by spec.type
|
||||
res.fromSnapshot = !!backup && backup.spec?.type === BACKUP_TYPE.SNAPSHOT;
|
||||
res.fromSnapshot = !!backup && backup.spec?.type !== BACKUP_TYPE.BACKUP;
|
||||
}
|
||||
|
||||
return res;
|
||||
@@ -1396,123 +1396,6 @@ export default class VirtVm extends HarvesterResource {
|
||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('hotplugCdRom');
|
||||
}
|
||||
|
||||
get thirdPartyBackupFeatureEnabled() {
|
||||
return this.$rootGetters['harvester-common/getFeatureEnabled']('thirdPartyVMBackup');
|
||||
}
|
||||
|
||||
// The backend drops the backup action on Longhorn v2 and CDI volumes, which Restic and Kopia can still protect on S3.
|
||||
// Without it, offer the menu only on VMs whose volumes Restic and Kopia support, as the snapshot action isn't gated on a target
|
||||
get canTakeBackup() {
|
||||
return !!this.actions?.backup || (this.thirdPartyBackupFeatureEnabled && !!this.actions?.snapshot && !this.dataMoverBackupUnavailableReason);
|
||||
}
|
||||
|
||||
// Only users who can read backup-target know its type and whether it allows Restic and Kopia, for everyone else the webhook decides
|
||||
get isBackupTargetNotS3() {
|
||||
const { type } = getBackupTarget(this.$rootGetters['harvester/byId'](HCI.SETTING, 'backup-target'));
|
||||
|
||||
return !!type && type !== 's3';
|
||||
}
|
||||
|
||||
// The backend rejects Restic and Kopia until thirdPartyBackupEnabled is set on the S3 target
|
||||
get isThirdPartyBackupOffOnTarget() {
|
||||
const { type, thirdPartyBackupEnabled } = getBackupTarget(this.$rootGetters['harvester/byId'](HCI.SETTING, 'backup-target'));
|
||||
|
||||
return type === 's3' && !thirdPartyBackupEnabled;
|
||||
}
|
||||
|
||||
async fetchBackupTypeRequirements() {
|
||||
const claimNames = this.spec.template.spec.volumes?.map((v) => v.persistentVolumeClaim?.claimName).filter((v) => !!v) || [];
|
||||
|
||||
// Each rule is enforced by the webhook too, so a resource this user can't read must not block the dialog
|
||||
await Promise.allSettled([
|
||||
...claimNames.map((name) => this.$dispatch('find', { type: PVC, id: `${ this.metadata.namespace }/${ name }` })),
|
||||
this.$dispatch('find', { type: HCI.SETTING, id: 'backup-target' }),
|
||||
this.$dispatch('find', { type: HCI.SETTING, id: 'csi-driver-config' }),
|
||||
]);
|
||||
|
||||
await Promise.allSettled(
|
||||
this.volumes.filter((pvc) => pvc.spec?.volumeName).map((pvc) => this.$dispatch('find', { type: PV, id: pvc.spec.volumeName }))
|
||||
);
|
||||
}
|
||||
|
||||
get backupTypeOptions() {
|
||||
const nativeReason = this.nativeBackupUnavailableReason;
|
||||
const dataMoverReason = this.dataMoverBackupUnavailableReason;
|
||||
|
||||
return [BACKUP_TYPE.BACKUP, BACKUP_TYPE.RESTIC, BACKUP_TYPE.KOPIA].map((value) => {
|
||||
const unavailableReason = value === BACKUP_TYPE.BACKUP ? nativeReason : dataMoverReason;
|
||||
|
||||
return {
|
||||
value,
|
||||
label: this.t(`harvester.backup.type.${ value }`),
|
||||
disabled: !!unavailableReason,
|
||||
unavailableReason,
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
get nativeBackupUnavailableReason() {
|
||||
if (!this.actions?.backup) {
|
||||
const longhornV2 = this.longhornV2Volumes[0];
|
||||
const cdi = this.volumes.find((pvc) => pvc.isCreatedForDataVolume);
|
||||
|
||||
if (longhornV2) {
|
||||
return this.t('harvester.backup.typeUnavailable.longhornV2', { volume: longhornV2.name });
|
||||
}
|
||||
|
||||
return cdi ? this.t('harvester.backup.typeUnavailable.cdi', { volume: cdi.name }) : this.t('harvester.backup.typeUnavailable.native');
|
||||
}
|
||||
|
||||
const driver = this.driverMissingSnapshotClass('backupVolumeSnapshotClassName');
|
||||
|
||||
return driver ? this.t('harvester.backup.typeUnavailable.noBackupSnapshotClass', { driver }) : undefined;
|
||||
}
|
||||
|
||||
get dataMoverBackupUnavailableReason() {
|
||||
if (this.isBackupTargetNotS3) {
|
||||
return this.t('harvester.backup.typeUnavailable.requiresS3');
|
||||
}
|
||||
|
||||
const filesystem = this.volumes.find((pvc) => !pvc.isBlockVolume);
|
||||
|
||||
if (filesystem) {
|
||||
return this.t('harvester.backup.typeUnavailable.requiresBlock', { volume: filesystem.name });
|
||||
}
|
||||
|
||||
const longhornV1 = this.volumes.find((pvc) => pvc.isLonghornV1);
|
||||
|
||||
if (longhornV1) {
|
||||
return this.t('harvester.backup.typeUnavailable.longhornV1', { volume: longhornV1.name });
|
||||
}
|
||||
|
||||
if (!this.actions?.snapshot) {
|
||||
const driver = this.driverMissingSnapshotClass('volumeSnapshotClassName');
|
||||
|
||||
return driver ? this.t('harvester.backup.typeUnavailable.noSnapshotClass', { driver }) : this.t('harvester.backup.typeUnavailable.snapshot');
|
||||
}
|
||||
|
||||
// Last, so a reason that turning it on wouldn't fix is shown first
|
||||
if (this.isThirdPartyBackupOffOnTarget) {
|
||||
return this.t('harvester.backup.typeUnavailable.thirdPartyBackupOff');
|
||||
}
|
||||
|
||||
return undefined;
|
||||
}
|
||||
|
||||
driverMissingSnapshotClass(classKey) {
|
||||
const setting = this.$rootGetters['harvester/byId'](HCI.SETTING, 'csi-driver-config');
|
||||
let config;
|
||||
|
||||
// Like the backend's LoadCSIDriverConfig: value adds drivers, the default's entries win
|
||||
try {
|
||||
config = { ...JSON.parse(setting?.value || '{}'), ...JSON.parse(setting?.default) };
|
||||
} catch (e) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return this.volumes.map((pvc) => pvc.volumeProvider).find((driver) => driver && !config[driver]?.[classKey]);
|
||||
}
|
||||
|
||||
get isBackupTargetUnavailable() {
|
||||
const backupTargetSetting = this.$rootGetters['harvester/byId'](HCI.SETTING, 'backup-target');
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "harvester",
|
||||
"description": "Rancher UI Extension for Harvester",
|
||||
"version": "1.10.0-rc3",
|
||||
"version": "1.10.0-dev",
|
||||
"private": false,
|
||||
"rancher": {
|
||||
"annotations": {
|
||||
|
||||
@@ -1,441 +0,0 @@
|
||||
import { shallowMount } from '@vue/test-utils';
|
||||
import { Banner } from '@components/Banner';
|
||||
import ArrayList from '@shell/components/form/ArrayList';
|
||||
import CruResource from '@shell/components/CruResource';
|
||||
import { RcSection } from '@components/RcSection';
|
||||
import OverlayNetworkSettings from '../index.vue';
|
||||
import KubeOvnConfiguration, { withoutLeadingZeros } from '../../../../../models/kubeovn.io.configuration';
|
||||
|
||||
// What Harvester installs before anyone sets up BGP
|
||||
const PLACEHOLDER_BGP = {
|
||||
neighborV4Address: '192.0.2.1',
|
||||
neighborV6Address: '2001:db8::1',
|
||||
neighborAS: 64512,
|
||||
clusterAS: 64513,
|
||||
};
|
||||
|
||||
const CONFIGURED_BGP = {
|
||||
nodeNames: 'node-1',
|
||||
neighborV4Address: '10.115.53.2',
|
||||
neighborV6Address: '2001:db8::1',
|
||||
neighborAS: 65030,
|
||||
clusterAS: 65000,
|
||||
};
|
||||
|
||||
// A real model, so the page reads the same getters as in the app
|
||||
function createConfiguration(bgp = PLACEHOLDER_BGP) {
|
||||
const configuration = Object.create(KubeOvnConfiguration.prototype);
|
||||
|
||||
Object.defineProperty(configuration, 'spec', {
|
||||
value: { enableBGP: true, bgp: { ...bgp } }, writable: true, configurable: true
|
||||
});
|
||||
Object.defineProperty(configuration, 'canUpdate', { value: true, configurable: true });
|
||||
Object.defineProperty(configuration, 'save', { value: jest.fn().mockResolvedValue({}), configurable: true });
|
||||
|
||||
return configuration;
|
||||
}
|
||||
|
||||
// latest: what the API returns at save time, when it differs from the copy loaded with the page
|
||||
// findError: the API refuses to return the Configuration
|
||||
function mountPage({
|
||||
featureEnabled = true, addonEnabled = true, configuration = createConfiguration(), latest = null, findError = null
|
||||
} = {}) {
|
||||
const dispatch = jest.fn((action, payload) => {
|
||||
if (action === 'harvester/find') {
|
||||
return findError ? Promise.reject(findError) : Promise.resolve(latest || configuration);
|
||||
}
|
||||
|
||||
if (action === 'harvester/clone') {
|
||||
return Promise.resolve(payload.resource);
|
||||
}
|
||||
|
||||
if (action === 'harvester/findAll' && payload.type === 'harvesterhci.io.addon') {
|
||||
return Promise.resolve([{ name: 'kubeovn-operator', spec: { enabled: addonEnabled } }]);
|
||||
}
|
||||
|
||||
return Promise.resolve([]);
|
||||
});
|
||||
const router = { push: jest.fn() };
|
||||
|
||||
const wrapper = shallowMount(OverlayNetworkSettings, {
|
||||
data: () => ({ addonEnabled, configuration }),
|
||||
global: {
|
||||
// the section and the form are stubbed, but what they hold is rendered
|
||||
renderStubDefaultSlot: true,
|
||||
mocks: {
|
||||
$fetchState: { pending: false },
|
||||
$router: router,
|
||||
t: (key, args) => (args ? `${ key } ${ JSON.stringify(args) }` : key),
|
||||
$store: {
|
||||
dispatch,
|
||||
getters: {
|
||||
currentProduct: { inStore: 'harvester' },
|
||||
'harvester/all': () => [],
|
||||
'harvester-common/getFeatureEnabled': () => featureEnabled,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
if (configuration) {
|
||||
wrapper.vm.loadBgp(configuration);
|
||||
}
|
||||
|
||||
return {
|
||||
wrapper, configuration, dispatch, router
|
||||
};
|
||||
}
|
||||
|
||||
// A valid, enabled form; each case overrides what it checks
|
||||
function fill(wrapper, values) {
|
||||
wrapper.setData({
|
||||
bgpEnabled: true,
|
||||
nodeNames: ['node-1'],
|
||||
neighborsV4: ['10.115.53.2'],
|
||||
neighborsV6: [],
|
||||
neighborAS: '65030',
|
||||
clusterAS: '65000',
|
||||
routerID: '',
|
||||
nextHopV4: '',
|
||||
nextHopV6: '',
|
||||
...values,
|
||||
});
|
||||
}
|
||||
|
||||
describe('page: Overlay Networks > BGP Speaker', () => {
|
||||
it('should load an untouched install as disabled, without the placeholder values', async() => {
|
||||
const { wrapper, dispatch } = mountPage();
|
||||
|
||||
await OverlayNetworkSettings.fetch.call(wrapper.vm);
|
||||
|
||||
expect(dispatch).toHaveBeenCalledWith('harvester/find', { type: 'kubeovn.io.configuration', id: 'kube-system/kubeovn' });
|
||||
expect(wrapper.vm.formState()).toStrictEqual({
|
||||
enabled: false,
|
||||
nodeNames: [],
|
||||
neighborsV4: [],
|
||||
neighborsV6: [],
|
||||
neighborAS: '',
|
||||
clusterAS: '',
|
||||
routerID: '',
|
||||
nextHopV4: '',
|
||||
nextHopV6: '',
|
||||
});
|
||||
});
|
||||
|
||||
it('should keep the AS numbers of a disabled speaker, even when they are the ones Harvester installs', () => {
|
||||
// set up with the private AS numbers 64512/64513, then disabled: only the hosts are gone
|
||||
const configuration = createConfiguration({ ...PLACEHOLDER_BGP, neighborV4Address: '10.115.53.2' });
|
||||
const { wrapper } = mountPage({ configuration });
|
||||
|
||||
expect(wrapper.vm.formState()).toStrictEqual({
|
||||
enabled: false,
|
||||
nodeNames: [],
|
||||
neighborsV4: ['10.115.53.2'],
|
||||
neighborsV6: [],
|
||||
neighborAS: '64512',
|
||||
clusterAS: '64513',
|
||||
routerID: '',
|
||||
nextHopV4: '',
|
||||
nextHopV6: '',
|
||||
});
|
||||
});
|
||||
|
||||
it('should load a configured speaker, with each neighbor family in its own list', () => {
|
||||
const configuration = createConfiguration({
|
||||
...CONFIGURED_BGP, nodeNames: 'node-1,node-2', neighborV6Address: '2001:db8::2', nextHops: '10.115.48.1,2001:db8::9'
|
||||
});
|
||||
const { wrapper } = mountPage({ configuration });
|
||||
|
||||
expect(wrapper.vm.formState()).toStrictEqual({
|
||||
enabled: true,
|
||||
nodeNames: ['node-1', 'node-2'],
|
||||
neighborsV4: ['10.115.53.2'],
|
||||
neighborsV6: ['2001:db8::2'],
|
||||
neighborAS: '65030',
|
||||
clusterAS: '65000',
|
||||
routerID: '',
|
||||
nextHopV4: '10.115.48.1',
|
||||
nextHopV6: '2001:db8::9',
|
||||
});
|
||||
});
|
||||
|
||||
it('should edit the BGP speaker on this page, titled BGP Speaker, without a Cancel button', () => {
|
||||
const { wrapper } = mountPage();
|
||||
|
||||
expect(wrapper.find('h1').text()).toBe('harvester.bgp.label');
|
||||
// the page title names it, so the outer section has no header of its own
|
||||
expect(wrapper.findComponent(RcSection).props()).toStrictEqual(expect.objectContaining({ type: 'primary', mode: 'no-header' }));
|
||||
expect(wrapper.findComponent(CruResource).props('showCancel')).toBe(false);
|
||||
});
|
||||
|
||||
it('should name the Enabled/Disabled choice and both neighbor lists for screen readers', async() => {
|
||||
const { wrapper } = mountPage({ configuration: createConfiguration(CONFIGURED_BGP) });
|
||||
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
expect(wrapper.find('[data-testid="bgp-enabled"]').attributes('aria-label')).toBe('harvester.bgp.label');
|
||||
expect(wrapper.findAllComponents(ArrayList).map((list) => list.props('a11yLabel'))).toStrictEqual([
|
||||
'harvester.bgp.neighborsV4.label',
|
||||
'harvester.bgp.neighborsV6.label',
|
||||
]);
|
||||
});
|
||||
|
||||
it('should group the neighbors and the advanced options in their own sections when the speaker is enabled', async() => {
|
||||
const { wrapper } = mountPage({ configuration: createConfiguration(CONFIGURED_BGP) });
|
||||
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
expect(wrapper.findAllComponents(RcSection).map((section) => [section.props('title'), section.props('type')])).toStrictEqual([
|
||||
['', 'primary'],
|
||||
['harvester.bgp.neighbors.label', 'secondary'],
|
||||
['harvester.bgp.sections.advanced', 'secondary'],
|
||||
]);
|
||||
});
|
||||
|
||||
it('should say the BGP speaker needs v1.10.0 on older Harvester versions', () => {
|
||||
const { wrapper } = mountPage({ featureEnabled: false, configuration: null });
|
||||
|
||||
expect(wrapper.findComponent(RcSection).exists()).toBe(true);
|
||||
expect(wrapper.findAllComponents(Banner).map((b) => b.props('label'))).toStrictEqual(['harvester.bgp.unsupported']);
|
||||
expect(wrapper.findComponent(CruResource).exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('should only point to the add-on when it is disabled', () => {
|
||||
const { wrapper } = mountPage({ addonEnabled: false, configuration: null });
|
||||
const banners = wrapper.findAllComponents(Banner);
|
||||
|
||||
expect(banners).toHaveLength(1);
|
||||
expect(banners[0].props('color')).toBe('warning');
|
||||
expect(wrapper.findComponent(CruResource).exists()).toBe(false);
|
||||
});
|
||||
|
||||
it('should show why there is no form when the configuration cannot be read', async() => {
|
||||
const findError = Object.assign(new Error('configurations.kubeovn.io "kubeovn" is forbidden'), { status: 403 });
|
||||
const { wrapper } = mountPage({ configuration: null, findError });
|
||||
|
||||
await OverlayNetworkSettings.fetch.call(wrapper.vm);
|
||||
await wrapper.vm.$nextTick();
|
||||
|
||||
expect(wrapper.vm.configuration).toBeNull();
|
||||
expect(wrapper.findAllComponents(Banner).map((b) => b.props('label'))).toStrictEqual(['configurations.kubeovn.io "kubeovn" is forbidden']);
|
||||
});
|
||||
|
||||
it('should link to the kubeovn-operator add-on by route name', () => {
|
||||
const { wrapper } = mountPage();
|
||||
|
||||
expect(wrapper.vm.addonLocation).toStrictEqual({
|
||||
name: 'harvester-c-cluster-resource-namespace-id',
|
||||
params: {
|
||||
resource: 'harvesterhci.io.addon', namespace: 'kube-system', id: 'kubeovn-operator'
|
||||
},
|
||||
query: { mode: 'edit' },
|
||||
});
|
||||
});
|
||||
|
||||
it('should not load the configuration when the add-on is disabled', async() => {
|
||||
const { wrapper, dispatch } = mountPage({ addonEnabled: false, configuration: null });
|
||||
|
||||
await OverlayNetworkSettings.fetch.call(wrapper.vm);
|
||||
|
||||
expect(wrapper.vm.addonEnabled).toBe(false);
|
||||
expect(dispatch).not.toHaveBeenCalledWith('harvester/find', expect.anything());
|
||||
});
|
||||
|
||||
it('should save both neighbor lists without duplicates or empty rows, keep the rest of the configuration and stay on the page', async() => {
|
||||
const { wrapper, configuration, router } = mountPage();
|
||||
const buttonCb = jest.fn();
|
||||
|
||||
fill(wrapper, {
|
||||
nodeNames: ['node-1', 'node-2'],
|
||||
neighborsV4: [' 10.115.53.2 ', '10.115.53.3', '10.115.53.2', ''],
|
||||
neighborsV6: ['2001:db8::2', ''],
|
||||
nextHopV4: '10.115.48.1',
|
||||
nextHopV6: '2001:db8::9',
|
||||
});
|
||||
|
||||
await wrapper.vm.save(buttonCb);
|
||||
|
||||
expect(buttonCb).toHaveBeenCalledWith(true);
|
||||
expect(configuration.save).toHaveBeenCalledTimes(1);
|
||||
expect(configuration.spec).toStrictEqual({
|
||||
enableBGP: true,
|
||||
bgp: {
|
||||
nodeNames: 'node-1,node-2',
|
||||
neighborV4Address: '10.115.53.2,10.115.53.3',
|
||||
neighborV6Address: '2001:db8::2',
|
||||
neighborAS: 65030,
|
||||
clusterAS: 65000,
|
||||
nextHops: '10.115.48.1,2001:db8::9',
|
||||
},
|
||||
});
|
||||
expect(router.push).not.toHaveBeenCalled();
|
||||
// the form now shows what was saved, so saving again without a change writes nothing
|
||||
expect(wrapper.vm.formState()).toStrictEqual(expect.objectContaining({ neighborsV4: ['10.115.53.2', '10.115.53.3'], neighborsV6: ['2001:db8::2'] }));
|
||||
|
||||
await wrapper.vm.save(buttonCb);
|
||||
|
||||
expect(configuration.save).toHaveBeenCalledTimes(1);
|
||||
});
|
||||
|
||||
it('should save on top of the latest copy of the configuration', async() => {
|
||||
// the operator updated the Configuration after the page loaded it
|
||||
const latest = createConfiguration();
|
||||
|
||||
latest.spec = {
|
||||
enableBGP: false, ovnCentral: { replicas: 3 }, bgp: { ...PLACEHOLDER_BGP }
|
||||
};
|
||||
const { wrapper, configuration, dispatch } = mountPage({ latest });
|
||||
|
||||
fill(wrapper);
|
||||
|
||||
await wrapper.vm.save(jest.fn());
|
||||
|
||||
expect(dispatch).toHaveBeenCalledWith('harvester/find', {
|
||||
type: 'kubeovn.io.configuration', id: 'kube-system/kubeovn', opt: { force: true }
|
||||
});
|
||||
expect(configuration.save).not.toHaveBeenCalled();
|
||||
expect(latest.save).toHaveBeenCalledTimes(1);
|
||||
expect(latest.spec).toStrictEqual({
|
||||
enableBGP: false,
|
||||
ovnCentral: { replicas: 3 },
|
||||
bgp: {
|
||||
nodeNames: 'node-1', neighborV4Address: '10.115.53.2', neighborAS: 65030, clusterAS: 65000
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
it('should only remove the speaker hosts when BGP is disabled', async() => {
|
||||
const { wrapper, configuration } = mountPage({ configuration: createConfiguration(CONFIGURED_BGP) });
|
||||
|
||||
// invalid values are ignored while disabled
|
||||
fill(wrapper, { bgpEnabled: false, neighborAS: '' });
|
||||
|
||||
expect(wrapper.vm.validationPassed).toBe(true);
|
||||
await wrapper.vm.save(jest.fn());
|
||||
|
||||
const { nodeNames, ...rest } = CONFIGURED_BGP;
|
||||
|
||||
expect(configuration.spec.bgp).toStrictEqual(rest);
|
||||
});
|
||||
|
||||
it.each([
|
||||
['an untouched install', PLACEHOLDER_BGP],
|
||||
['a configured speaker', CONFIGURED_BGP],
|
||||
])('should not save the configuration when nothing changed on %s', async(_, bgp) => {
|
||||
const { wrapper, configuration, router } = mountPage({ configuration: createConfiguration(bgp) });
|
||||
const buttonCb = jest.fn();
|
||||
|
||||
await wrapper.vm.save(buttonCb);
|
||||
|
||||
expect(configuration.save).not.toHaveBeenCalled();
|
||||
expect(buttonCb).toHaveBeenCalledWith(true);
|
||||
expect(router.push).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should report a failed save as plain messages and stay on the page', async() => {
|
||||
const { wrapper, configuration, router } = mountPage();
|
||||
const buttonCb = jest.fn();
|
||||
|
||||
configuration.save.mockRejectedValue({ status: 409, message: 'the object has been modified' });
|
||||
fill(wrapper);
|
||||
|
||||
await wrapper.vm.save(buttonCb);
|
||||
|
||||
expect(buttonCb).toHaveBeenCalledWith(false);
|
||||
expect(wrapper.vm.errors).toStrictEqual(['the object has been modified']);
|
||||
expect(router.push).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it.each([
|
||||
['no speaker hosts', { nodeNames: [] }, 'harvester.bgp.validation.hostsRequired'],
|
||||
['no neighbor', { neighborsV4: ['', ' '], neighborsV6: [''] }, 'harvester.bgp.validation.neighborRequired'],
|
||||
['an invalid IPv4 neighbor', { neighborsV4: ['10.115.53.300'] }, 'harvester.bgp.validation.neighborV4'],
|
||||
['an IPv6 address in the IPv4 neighbors', { neighborsV4: ['2001:db8::2'] }, 'harvester.bgp.validation.neighborV4'],
|
||||
['an IPv4 address in the IPv6 neighbors', { neighborsV4: [], neighborsV6: ['10.115.53.2'] }, 'harvester.bgp.validation.neighborV6'],
|
||||
['the IPv4 placeholder neighbor', { neighborsV4: ['192.0.2.1'] }, 'harvester.bgp.validation.placeholderNeighbor'],
|
||||
['the IPv6 placeholder neighbor', { neighborsV6: ['2001:db8::1'] }, 'harvester.bgp.validation.placeholderNeighbor'],
|
||||
['an IPv4 neighbor with a leading zero', { neighborsV4: ['192.0.2.010'] }, 'harvester.bgp.validation.leadingZero'],
|
||||
['an IPv6 neighbor ending in an IPv4 address with a leading zero', { neighborsV6: ['::ffff:10.0.0.010'] }, 'harvester.bgp.validation.leadingZero'],
|
||||
['a router ID with a leading zero', { routerID: '10.115.048.1' }, 'harvester.bgp.validation.leadingZero'],
|
||||
['an IPv4 next hop with a leading zero', { nextHopV4: '010.115.48.1' }, 'harvester.bgp.validation.leadingZero'],
|
||||
['an IPv6 next hop ending in an IPv4 address with a leading zero', { nextHopV6: '::ffff:10.115.48.01' }, 'harvester.bgp.validation.leadingZero'],
|
||||
['an empty AS number', { neighborAS: '' }, 'harvester.bgp.validation.asNumber'],
|
||||
['an AS number out of range', { clusterAS: '4294967295' }, 'harvester.bgp.validation.asNumber'],
|
||||
['a router ID that is not IPv4', { routerID: '2001:db8::1' }, 'harvester.bgp.validation.routerID'],
|
||||
['a router ID shared by two hosts', { nodeNames: ['node-1', 'node-2'], routerID: '10.115.48.1' }, 'harvester.bgp.validation.routerIDMultipleHosts'],
|
||||
['an IPv6 address as the IPv4 next hop', { nextHopV4: '2001:db8::9' }, 'harvester.bgp.validation.ipv4'],
|
||||
['an IPv4 address as the IPv6 next hop', { nextHopV6: '10.115.48.1' }, 'harvester.bgp.validation.ipv6'],
|
||||
])('should disable Save and not save %s', async(_, values, errorKey) => {
|
||||
const { wrapper, configuration } = mountPage();
|
||||
const buttonCb = jest.fn();
|
||||
|
||||
fill(wrapper, values);
|
||||
|
||||
expect(wrapper.vm.validationPassed).toBe(false);
|
||||
|
||||
await wrapper.vm.save(buttonCb);
|
||||
|
||||
expect(buttonCb).toHaveBeenCalledWith(false);
|
||||
expect(wrapper.vm.errors).toStrictEqual([expect.stringContaining(errorKey)]);
|
||||
expect(configuration.save).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
it('should flag missing speaker hosts and neighbors on the fields', async() => {
|
||||
const { wrapper } = mountPage();
|
||||
const [hostsRule] = wrapper.vm.nodeNamesRules;
|
||||
const [v4Rule] = wrapper.vm.neighborV4Rules;
|
||||
const [v6Rule] = wrapper.vm.neighborV6Rules;
|
||||
|
||||
fill(wrapper, {
|
||||
nodeNames: [], neighborsV4: [''], neighborsV6: ['']
|
||||
});
|
||||
|
||||
expect(hostsRule([])).toContain('harvester.bgp.validation.hostsRequired');
|
||||
expect(hostsRule(['node-1'])).toBeUndefined();
|
||||
// no neighbor yet: both lists say so
|
||||
expect(v4Rule('')).toContain('harvester.bgp.validation.neighborRequired');
|
||||
expect(v6Rule('')).toContain('harvester.bgp.validation.neighborRequired');
|
||||
|
||||
await wrapper.setData({ neighborsV6: ['2001:db8::2'] });
|
||||
|
||||
// one neighbor in either list is enough; an address of the wrong family is flagged
|
||||
expect(v4Rule('')).toBeUndefined();
|
||||
expect(v4Rule('2001:db8::2')).toContain('harvester.bgp.validation.neighborV4');
|
||||
expect(v6Rule('10.115.53.2')).toContain('harvester.bgp.validation.neighborV6');
|
||||
expect(v6Rule('2001:db8::1')).toContain('harvester.bgp.validation.placeholderNeighbor');
|
||||
});
|
||||
|
||||
it.each([
|
||||
['192.0.2.010', '192.0.2.10'],
|
||||
['010.115.053.002', '10.115.53.2'],
|
||||
['10.0.0.00', '10.0.0.0'],
|
||||
['::ffff:10.0.0.010', '::ffff:10.0.0.10'],
|
||||
['192.0.2.10', null],
|
||||
['0.0.0.0', null],
|
||||
['2001:db8::0002', null],
|
||||
['', null],
|
||||
])('should find the leading zeros the speaker cannot parse in %j', (ip, fixed) => {
|
||||
expect(withoutLeadingZeros(ip)).toBe(fixed);
|
||||
});
|
||||
|
||||
it('should say how to write an address with a leading zero', () => {
|
||||
const { wrapper } = mountPage();
|
||||
const [rule] = wrapper.vm.neighborV4Rules;
|
||||
|
||||
fill(wrapper);
|
||||
|
||||
expect(rule('192.0.2.010')).toBe('harvester.bgp.validation.leadingZero {"ip":"192.0.2.010","fixed":"192.0.2.10"}');
|
||||
});
|
||||
|
||||
it('should flag a router ID inline as soon as a second host is picked', async() => {
|
||||
const { wrapper } = mountPage();
|
||||
const [rule] = wrapper.vm.routerIDRules;
|
||||
|
||||
fill(wrapper, { routerID: '10.115.48.1' });
|
||||
expect(rule('10.115.48.1')).toBeUndefined();
|
||||
|
||||
await wrapper.setData({ nodeNames: ['node-1', 'node-2'] });
|
||||
expect(rule('10.115.48.1')).toContain('harvester.bgp.validation.routerIDMultipleHosts');
|
||||
});
|
||||
});
|
||||
@@ -1,588 +0,0 @@
|
||||
<script>
|
||||
import isEqual from 'lodash/isEqual';
|
||||
import ArrayList from '@shell/components/form/ArrayList';
|
||||
import CruResource from '@shell/components/CruResource';
|
||||
import LabeledSelect from '@shell/components/form/LabeledSelect';
|
||||
import Loading from '@shell/components/Loading';
|
||||
import MessageLink from '@shell/components/MessageLink';
|
||||
import { LabeledInput } from '@components/Form/LabeledInput';
|
||||
import { RadioGroup } from '@components/Form/Radio';
|
||||
import { Banner } from '@components/Banner';
|
||||
import { RcSection } from '@components/RcSection';
|
||||
import { RcContentGroup } from '@components/Layout';
|
||||
import { NODE } from '@shell/config/types';
|
||||
import { _EDIT, _VIEW } from '@shell/config/query-params';
|
||||
import { isIpv4 } from '@shell/utils/string';
|
||||
import { exceptionToErrorsArray } from '@shell/utils/error';
|
||||
import { allHash } from '@shell/utils/promise';
|
||||
import { HCI } from '../../../../types';
|
||||
import { ADD_ONS } from '../../../../config/harvester-map';
|
||||
import { PRODUCT_NAME } from '../../../../config/harvester';
|
||||
import { KUBEOVN_CONFIGURATION_ID, isIpv6, isPlaceholderNeighbor, withoutLeadingZeros } from '../../../../models/kubeovn.io.configuration';
|
||||
|
||||
const AS_MAX = 4294967294;
|
||||
|
||||
const cleanList = (list) => [...new Set((list || []).map((item) => `${ item || '' }`.trim()).filter(Boolean))];
|
||||
const isAsNumber = (value) => /^\d+$/.test(`${ value ?? '' }`.trim()) && Number(value) >= 1 && Number(value) <= AS_MAX;
|
||||
const asText = (value) => `${ value ?? '' }`.trim();
|
||||
|
||||
// The BGP speaker part of the Kube-OVN Configuration (Overlay Networks > BGP Speaker)
|
||||
export default {
|
||||
name: 'HarvesterBgpSpeaker',
|
||||
|
||||
components: {
|
||||
ArrayList,
|
||||
Banner,
|
||||
CruResource,
|
||||
LabeledInput,
|
||||
LabeledSelect,
|
||||
Loading,
|
||||
MessageLink,
|
||||
RadioGroup,
|
||||
RcContentGroup,
|
||||
RcSection,
|
||||
},
|
||||
|
||||
async fetch() {
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
const hash = await allHash({
|
||||
addons: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.ADD_ONS }),
|
||||
nodes: this.$store.dispatch(`${ inStore }/findAll`, { type: NODE }),
|
||||
});
|
||||
|
||||
this.addonEnabled = hash.addons.find((addon) => addon.name === ADD_ONS.KUBEOVN_OPERATOR)?.spec?.enabled === true;
|
||||
|
||||
if (!this.addonEnabled || !this.featureEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const configuration = await this.$store.dispatch(`${ inStore }/find`, { type: HCI.KUBEOVN_CONFIG, id: KUBEOVN_CONFIGURATION_ID });
|
||||
|
||||
this.configuration = await this.$store.dispatch(`${ inStore }/clone`, { resource: configuration });
|
||||
this.loadBgp(this.configuration);
|
||||
} catch (e) {
|
||||
this.errors = exceptionToErrorsArray(e);
|
||||
}
|
||||
},
|
||||
|
||||
data() {
|
||||
return {
|
||||
addonEnabled: false,
|
||||
configuration: null,
|
||||
bgpEnabled: false,
|
||||
nodeNames: [],
|
||||
neighborsV4: [],
|
||||
neighborsV6: [],
|
||||
neighborAS: '',
|
||||
clusterAS: '',
|
||||
routerID: '',
|
||||
nextHopV4: '',
|
||||
nextHopV6: '',
|
||||
loadedState: null,
|
||||
// Bumped after a save so the form is drawn again from the saved values, as after a reload
|
||||
formKey: 0,
|
||||
errors: [],
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
featureEnabled() {
|
||||
return this.$store.getters['harvester-common/getFeatureEnabled']('kubeovnBgp');
|
||||
},
|
||||
|
||||
mode() {
|
||||
return this.configuration?.canUpdate ? _EDIT : _VIEW;
|
||||
},
|
||||
|
||||
isView() {
|
||||
return this.mode === _VIEW;
|
||||
},
|
||||
|
||||
addonLocation() {
|
||||
return {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-resource-namespace-id`,
|
||||
params: {
|
||||
resource: HCI.ADD_ONS, namespace: 'kube-system', id: ADD_ONS.KUBEOVN_OPERATOR
|
||||
},
|
||||
query: { mode: _EDIT },
|
||||
};
|
||||
},
|
||||
|
||||
// Save stays disabled until the form is valid; each field shows its own error
|
||||
validationPassed() {
|
||||
return this.validateBgp().length === 0;
|
||||
},
|
||||
|
||||
nodeOptions() {
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
const nodes = this.$store.getters[`${ inStore }/all`](NODE) || [];
|
||||
|
||||
return nodes.map((node) => ({
|
||||
label: node.nameDisplay,
|
||||
value: node.id,
|
||||
}));
|
||||
},
|
||||
|
||||
// Each field shows its own error once touched, so a disabled Save always has a visible reason
|
||||
nodeNamesRules() {
|
||||
return [(value) => ((value || []).length ? undefined : this.t('harvester.bgp.validation.hostsRequired', null, true))];
|
||||
},
|
||||
|
||||
neighborV4Rules() {
|
||||
return [(value) => this.neighborError(value, isIpv4)];
|
||||
},
|
||||
|
||||
neighborV6Rules() {
|
||||
return [(value) => this.neighborError(value, isIpv6)];
|
||||
},
|
||||
|
||||
// One neighbor in either list is enough
|
||||
hasNeighbor() {
|
||||
return cleanList(this.neighborsV4).length + cleanList(this.neighborsV6).length > 0;
|
||||
},
|
||||
|
||||
neighborASRules() {
|
||||
return [(value) => this.asError('neighborAS', value)];
|
||||
},
|
||||
|
||||
clusterASRules() {
|
||||
return [(value) => this.asError('clusterAS', value)];
|
||||
},
|
||||
|
||||
routerIDRules() {
|
||||
return [(value) => this.routerIDError(value)];
|
||||
},
|
||||
|
||||
nextHopV4Rules() {
|
||||
return [(value) => this.nextHopError('nextHopV4', value, isIpv4)];
|
||||
},
|
||||
|
||||
nextHopV6Rules() {
|
||||
return [(value) => this.nextHopError('nextHopV6', value, isIpv6)];
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
loadBgp(configuration) {
|
||||
const bgp = configuration.bgp;
|
||||
const untouched = configuration.bgpUntouched;
|
||||
|
||||
this.nodeNames = configuration.bgpSpeakerHosts;
|
||||
this.bgpEnabled = this.nodeNames.length > 0;
|
||||
this.neighborsV4 = configuration.bgpNeighborsV4;
|
||||
this.neighborsV6 = configuration.bgpNeighborsV6;
|
||||
// An untouched install only has placeholder AS numbers: show empty fields instead of values nobody chose
|
||||
this.neighborAS = untouched ? '' : bgp.neighborAS ?? '';
|
||||
this.clusterAS = untouched ? '' : bgp.clusterAS ?? '';
|
||||
this.routerID = bgp.routerID || '';
|
||||
// The speaker uses the last next hop of each family
|
||||
this.nextHopV4 = configuration.bgpNextHops.filter(isIpv4).pop() || '';
|
||||
this.nextHopV6 = configuration.bgpNextHops.filter(isIpv6).pop() || '';
|
||||
this.loadedState = this.formState();
|
||||
},
|
||||
|
||||
formState() {
|
||||
return {
|
||||
enabled: this.bgpEnabled,
|
||||
nodeNames: [...this.nodeNames],
|
||||
neighborsV4: cleanList(this.neighborsV4),
|
||||
neighborsV6: cleanList(this.neighborsV6),
|
||||
neighborAS: asText(this.neighborAS),
|
||||
clusterAS: asText(this.clusterAS),
|
||||
routerID: this.routerID.trim(),
|
||||
nextHopV4: this.nextHopV4.trim(),
|
||||
nextHopV6: this.nextHopV6.trim(),
|
||||
};
|
||||
},
|
||||
|
||||
neighborError(value, isFamily) {
|
||||
const ip = `${ value || '' }`.trim();
|
||||
|
||||
if (!ip) {
|
||||
return this.hasNeighbor ? undefined : this.t('harvester.bgp.validation.neighborRequired', null, true);
|
||||
}
|
||||
|
||||
if (withoutLeadingZeros(ip)) {
|
||||
return this.leadingZeroError(ip);
|
||||
}
|
||||
|
||||
// Harvester installs these before anyone sets up BGP, and this page hides them, so saving one would lose it
|
||||
if (isPlaceholderNeighbor(ip)) {
|
||||
return this.t('harvester.bgp.validation.placeholderNeighbor', { ip }, true);
|
||||
}
|
||||
|
||||
const key = isFamily === isIpv4 ? 'neighborV4' : 'neighborV6';
|
||||
|
||||
return isFamily(ip) ? undefined : this.t(`harvester.bgp.validation.${ key }`, { ip }, true);
|
||||
},
|
||||
|
||||
asError(field, value) {
|
||||
return isAsNumber(value) ? undefined : this.t('harvester.bgp.validation.asNumber', { key: this.t(`harvester.bgp.${ field }.label`), max: AS_MAX }, true);
|
||||
},
|
||||
|
||||
// The speaker can't parse these, so it would not start
|
||||
leadingZeroError(ip) {
|
||||
return this.t('harvester.bgp.validation.leadingZero', { ip, fixed: withoutLeadingZeros(ip) }, true);
|
||||
},
|
||||
|
||||
routerIDError(value) {
|
||||
const ip = `${ value || '' }`.trim();
|
||||
|
||||
if (!ip) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (withoutLeadingZeros(ip)) {
|
||||
return this.leadingZeroError(ip);
|
||||
}
|
||||
|
||||
if (!isIpv4(ip)) {
|
||||
return this.t('harvester.bgp.validation.routerID', null, true);
|
||||
}
|
||||
|
||||
// Every speaker needs its own router ID, and this one would go to every selected host
|
||||
return this.nodeNames.length > 1 ? this.t('harvester.bgp.validation.routerIDMultipleHosts', null, true) : undefined;
|
||||
},
|
||||
|
||||
nextHopError(field, value, isFamily) {
|
||||
const ip = `${ value || '' }`.trim();
|
||||
const key = isFamily === isIpv4 ? 'ipv4' : 'ipv6';
|
||||
|
||||
if (ip && withoutLeadingZeros(ip)) {
|
||||
return this.leadingZeroError(ip);
|
||||
}
|
||||
|
||||
return ip && !isFamily(ip) ? this.t(`harvester.bgp.validation.${ key }`, { key: this.t(`harvester.bgp.${ field }.label`) }, true) : undefined;
|
||||
},
|
||||
|
||||
validateBgp() {
|
||||
if (!this.bgpEnabled) {
|
||||
return [];
|
||||
}
|
||||
|
||||
const errors = [];
|
||||
|
||||
if (!this.nodeNames.length) {
|
||||
errors.push(this.t('harvester.bgp.validation.hostsRequired', null, true));
|
||||
}
|
||||
|
||||
if (!this.hasNeighbor) {
|
||||
errors.push(this.t('harvester.bgp.validation.neighborRequired', null, true));
|
||||
} else {
|
||||
// The first bad address is enough here: the lists flag each one
|
||||
errors.push([
|
||||
...cleanList(this.neighborsV4).map((ip) => this.neighborError(ip, isIpv4)),
|
||||
...cleanList(this.neighborsV6).map((ip) => this.neighborError(ip, isIpv6)),
|
||||
].find(Boolean));
|
||||
}
|
||||
|
||||
errors.push(
|
||||
this.asError('neighborAS', this.neighborAS),
|
||||
this.asError('clusterAS', this.clusterAS),
|
||||
this.routerIDError(this.routerID),
|
||||
this.nextHopError('nextHopV4', this.nextHopV4, isIpv4),
|
||||
this.nextHopError('nextHopV6', this.nextHopV6, isIpv6),
|
||||
);
|
||||
|
||||
return errors.filter(Boolean);
|
||||
},
|
||||
|
||||
toBgpSpec(current = {}) {
|
||||
const bgp = { ...current };
|
||||
|
||||
// Disabled: no host runs the speaker. Keep the other values for when it is turned back on.
|
||||
if (!this.bgpEnabled) {
|
||||
delete bgp.nodeNames;
|
||||
|
||||
return bgp;
|
||||
}
|
||||
|
||||
const state = this.formState();
|
||||
|
||||
Object.assign(bgp, {
|
||||
nodeNames: state.nodeNames.join(','),
|
||||
neighborV4Address: state.neighborsV4.join(','),
|
||||
neighborV6Address: state.neighborsV6.join(','),
|
||||
neighborAS: Number(state.neighborAS),
|
||||
clusterAS: Number(state.clusterAS),
|
||||
routerID: state.routerID,
|
||||
nextHops: [state.nextHopV4, state.nextHopV6].filter(Boolean).join(','),
|
||||
});
|
||||
|
||||
// The CRD omits empty strings, so drop them instead of storing ''
|
||||
Object.keys(bgp).forEach((key) => {
|
||||
if (bgp[key] === '') {
|
||||
delete bgp[key];
|
||||
}
|
||||
});
|
||||
|
||||
return bgp;
|
||||
},
|
||||
|
||||
async save(buttonCb) {
|
||||
// Save is disabled while the form is invalid; this is the backstop
|
||||
const errors = this.validateBgp();
|
||||
|
||||
if (errors.length) {
|
||||
this.errors = errors;
|
||||
buttonCb(false);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
if (!isEqual(this.formState(), this.loadedState)) {
|
||||
// The operator keeps updating the Configuration's status, so the copy loaded with the page goes stale
|
||||
// and saving it fails with a conflict. Save the BGP values on top of the latest copy instead.
|
||||
const inStore = this.$store.getters['currentProduct'].inStore;
|
||||
const latest = await this.$store.dispatch(`${ inStore }/find`, {
|
||||
type: HCI.KUBEOVN_CONFIG, id: KUBEOVN_CONFIGURATION_ID, opt: { force: true }
|
||||
});
|
||||
const configuration = await this.$store.dispatch(`${ inStore }/clone`, { resource: latest });
|
||||
const bgp = this.toBgpSpec(configuration.spec?.bgp);
|
||||
|
||||
if (!isEqual(bgp, configuration.spec?.bgp || {})) {
|
||||
configuration.spec = { ...configuration.spec, bgp };
|
||||
await configuration.save();
|
||||
}
|
||||
|
||||
// Stay on the page, showing what was saved
|
||||
this.configuration = configuration;
|
||||
this.loadBgp(configuration);
|
||||
this.formKey++;
|
||||
}
|
||||
|
||||
this.errors = [];
|
||||
buttonCb(true);
|
||||
} catch (e) {
|
||||
this.errors = exceptionToErrorsArray(e);
|
||||
buttonCb(false);
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Loading v-if="$fetchState.pending" />
|
||||
<div v-else>
|
||||
<h1 class="mb-20">
|
||||
{{ t('harvester.bgp.label') }}
|
||||
</h1>
|
||||
<CruResource
|
||||
v-if="featureEnabled && addonEnabled && configuration"
|
||||
:resource="configuration"
|
||||
:mode="mode"
|
||||
:can-yaml="false"
|
||||
:show-cancel="false"
|
||||
:validation-passed="validationPassed"
|
||||
:errors="errors"
|
||||
@finish="save"
|
||||
@error="e => errors = e"
|
||||
>
|
||||
<RcSection
|
||||
:key="formKey"
|
||||
type="primary"
|
||||
mode="no-header"
|
||||
:expandable="false"
|
||||
data-testid="bgp-section"
|
||||
>
|
||||
<RcContentGroup>
|
||||
<Banner
|
||||
color="info"
|
||||
class="mt-0 mb-0"
|
||||
:label="t('harvester.bgp.description')"
|
||||
/>
|
||||
<!-- The section title names this choice, as in the shell's own sections -->
|
||||
<RadioGroup
|
||||
v-model:value="bgpEnabled"
|
||||
data-testid="bgp-enabled"
|
||||
name="bgp-enabled"
|
||||
:aria-label="t('harvester.bgp.label')"
|
||||
:mode="mode"
|
||||
:options="[true, false]"
|
||||
:labels="[t('generic.enabled'), t('generic.disabled')]"
|
||||
/>
|
||||
</RcContentGroup>
|
||||
<template v-if="bgpEnabled">
|
||||
<RcContentGroup>
|
||||
<div class="row">
|
||||
<div class="col span-12">
|
||||
<LabeledSelect
|
||||
v-model:value="nodeNames"
|
||||
data-testid="bgp-node-names"
|
||||
:mode="mode"
|
||||
:multiple="true"
|
||||
:required="true"
|
||||
:rules="nodeNamesRules"
|
||||
:options="nodeOptions"
|
||||
:label="t('harvester.bgp.nodeNames.label')"
|
||||
:placeholder="t('harvester.bgp.nodeNames.placeholder')"
|
||||
:tooltip="t('harvester.bgp.nodeNames.tooltip')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col span-6">
|
||||
<LabeledInput
|
||||
v-model:value="clusterAS"
|
||||
data-testid="bgp-cluster-as"
|
||||
type="number"
|
||||
min="1"
|
||||
:required="true"
|
||||
:mode="mode"
|
||||
:rules="clusterASRules"
|
||||
:label="t('harvester.bgp.clusterAS.label')"
|
||||
:placeholder="t('harvester.bgp.clusterAS.placeholder')"
|
||||
:tooltip="t('harvester.bgp.clusterAS.tooltip')"
|
||||
/>
|
||||
</div>
|
||||
<div class="col span-6">
|
||||
<LabeledInput
|
||||
v-model:value="routerID"
|
||||
data-testid="bgp-router-id"
|
||||
:mode="mode"
|
||||
:rules="routerIDRules"
|
||||
:label="t('harvester.bgp.routerID.label')"
|
||||
:placeholder="t('harvester.bgp.routerID.placeholder', null, true)"
|
||||
:tooltip="t('harvester.bgp.routerID.tooltip')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</RcContentGroup>
|
||||
<RcSection
|
||||
:title="t('harvester.bgp.neighbors.label')"
|
||||
type="secondary"
|
||||
mode="with-header"
|
||||
:expandable="false"
|
||||
data-testid="bgp-neighbors-section"
|
||||
>
|
||||
<!-- One neighbor in either list is enough, so neither list is marked required -->
|
||||
<p
|
||||
v-if="!isView"
|
||||
class="mb-0"
|
||||
>
|
||||
{{ t('harvester.bgp.neighbors.description') }}
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col span-6">
|
||||
<ArrayList
|
||||
v-model:value="neighborsV4"
|
||||
data-testid="bgp-neighbors-v4"
|
||||
:mode="mode"
|
||||
:initial-empty-row="true"
|
||||
:rules="neighborV4Rules"
|
||||
:show-header="true"
|
||||
:value-label="t('harvester.bgp.neighborsV4.label')"
|
||||
:a11y-label="t('harvester.bgp.neighborsV4.label')"
|
||||
:value-placeholder="t('harvester.bgp.neighborsV4.placeholder')"
|
||||
:add-label="t('harvester.bgp.neighborsV4.add')"
|
||||
/>
|
||||
</div>
|
||||
<div class="col span-6">
|
||||
<ArrayList
|
||||
v-model:value="neighborsV6"
|
||||
data-testid="bgp-neighbors-v6"
|
||||
:mode="mode"
|
||||
:initial-empty-row="true"
|
||||
:rules="neighborV6Rules"
|
||||
:show-header="true"
|
||||
:value-label="t('harvester.bgp.neighborsV6.label')"
|
||||
:a11y-label="t('harvester.bgp.neighborsV6.label')"
|
||||
:value-placeholder="t('harvester.bgp.neighborsV6.placeholder')"
|
||||
:add-label="t('harvester.bgp.neighborsV6.add')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col span-6">
|
||||
<LabeledInput
|
||||
v-model:value="neighborAS"
|
||||
data-testid="bgp-neighbor-as"
|
||||
type="number"
|
||||
min="1"
|
||||
:required="true"
|
||||
:mode="mode"
|
||||
:rules="neighborASRules"
|
||||
:label="t('harvester.bgp.neighborAS.label')"
|
||||
:placeholder="t('harvester.bgp.neighborAS.placeholder')"
|
||||
:tooltip="t('harvester.bgp.neighborAS.tooltip')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</RcSection>
|
||||
<RcSection
|
||||
:title="t('harvester.bgp.sections.advanced')"
|
||||
type="secondary"
|
||||
mode="with-header"
|
||||
:expandable="false"
|
||||
data-testid="bgp-advanced-section"
|
||||
>
|
||||
<div class="row">
|
||||
<div class="col span-6">
|
||||
<LabeledInput
|
||||
v-model:value="nextHopV4"
|
||||
data-testid="bgp-next-hop-v4"
|
||||
:mode="mode"
|
||||
:rules="nextHopV4Rules"
|
||||
:label="t('harvester.bgp.nextHopV4.label')"
|
||||
:placeholder="t('harvester.bgp.nextHopV4.placeholder', null, true)"
|
||||
:tooltip="t('harvester.bgp.nextHopV4.tooltip')"
|
||||
/>
|
||||
</div>
|
||||
<div class="col span-6">
|
||||
<LabeledInput
|
||||
v-model:value="nextHopV6"
|
||||
data-testid="bgp-next-hop-v6"
|
||||
:mode="mode"
|
||||
:rules="nextHopV6Rules"
|
||||
:label="t('harvester.bgp.nextHopV6.label')"
|
||||
:placeholder="t('harvester.bgp.nextHopV6.placeholder', null, true)"
|
||||
:tooltip="t('harvester.bgp.nextHopV6.tooltip')"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</RcSection>
|
||||
</template>
|
||||
</RcSection>
|
||||
</CruResource>
|
||||
<!-- No form: the section says why -->
|
||||
<RcSection
|
||||
v-else
|
||||
type="primary"
|
||||
mode="no-header"
|
||||
:expandable="false"
|
||||
data-testid="bgp-section"
|
||||
>
|
||||
<Banner
|
||||
v-if="!featureEnabled"
|
||||
color="warning"
|
||||
class="mt-0 mb-0"
|
||||
:label="t('harvester.bgp.unsupported')"
|
||||
/>
|
||||
<Banner
|
||||
v-else-if="!addonEnabled"
|
||||
color="warning"
|
||||
class="mt-0 mb-0"
|
||||
>
|
||||
<MessageLink
|
||||
:to="addonLocation"
|
||||
prefix-label="harvester.bgp.noAddonEnabled.prefix"
|
||||
middle-label="harvester.bgp.noAddonEnabled.middle"
|
||||
suffix-label="harvester.bgp.noAddonEnabled.suffix"
|
||||
/>
|
||||
</Banner>
|
||||
<!-- The Configuration could not be read -->
|
||||
<template v-else>
|
||||
<Banner
|
||||
v-for="(err, i) in errors"
|
||||
:key="i"
|
||||
color="error"
|
||||
class="mt-0 mb-0"
|
||||
:label="err"
|
||||
/>
|
||||
</template>
|
||||
</RcSection>
|
||||
</div>
|
||||
</template>
|
||||
@@ -19,7 +19,6 @@ import HarvesterUnsupported from '../pages/c/_cluster/unsupported/index.vue';
|
||||
import ForkliftDashboard from '../pages/c/_cluster/vm-migration/index.vue';
|
||||
import ForkliftVmMigrationWizard from '../pages/c/_cluster/vm-migration/vm-migration-wizard.vue';
|
||||
import ForkliftProviderWizard from '../pages/c/_cluster/vm-migration/provider-wizard.vue';
|
||||
import BgpSpeaker from '../pages/c/_cluster/bgp-speaker/index.vue';
|
||||
|
||||
const routes = [
|
||||
{
|
||||
@@ -99,10 +98,6 @@ const routes = [
|
||||
name: `${ PRODUCT_NAME }-c-cluster-vm-migration-provider-wizard`,
|
||||
path: `/:product/c/:cluster/vm-migration/provider-wizard`,
|
||||
component: ForkliftProviderWizard,
|
||||
}, {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-bgp-speaker`,
|
||||
path: `/:product/c/:cluster/bgp-speaker`,
|
||||
component: BgpSpeaker,
|
||||
}, {
|
||||
name: `${ PRODUCT_NAME }-c-cluster-resource`,
|
||||
path: `/:product/c/:cluster/:resource`,
|
||||
|
||||
@@ -33,7 +33,6 @@ export const HCI = {
|
||||
PROVIDER_NETWORK: 'kubeovn.io.providernetwork',
|
||||
VPC_NAT_GATEWAY: 'kubeovn.io.vpcnatgateway',
|
||||
VPC_EGRESS_GATEWAY: 'kubeovn.io.vpcegressgateway',
|
||||
KUBEOVN_CONFIG: 'kubeovn.io.configuration',
|
||||
VM_IMAGE_DOWNLOADER: 'harvesterhci.io.virtualmachineimagedownloader',
|
||||
SUPPORT_BUNDLE: 'harvesterhci.io.supportbundle',
|
||||
NETWORK_ATTACHMENT: 'harvesterhci.io.networkattachmentdefinition',
|
||||
|
||||
@@ -23,11 +23,3 @@ export function isBackupTargetSettingUnavailable(setting = {}) {
|
||||
|
||||
return (errorMessage || isEmptyValue) && canUpdate;
|
||||
}
|
||||
|
||||
export function getBackupTarget(setting = {}) {
|
||||
try {
|
||||
return JSON.parse(setting?.value || '{}') || {};
|
||||
} catch (e) {
|
||||
return {};
|
||||
}
|
||||
}
|
||||
@@ -539,15 +539,7 @@
|
||||
"@smithy/types" "^4.14.1"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@aws-sdk/types@^3.222.0":
|
||||
version "3.973.5"
|
||||
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.973.5.tgz#0fc00f066dbaaa40c09f2b7efdd86781807b5c70"
|
||||
integrity sha512-hl7BGwDCWsjH8NkZfx+HgS7H2LyM2lTMAI7ba9c8O0KqdBLTdNJivsHpqjg9rNlAlPyREb6DeDRXUl0s8uFdmQ==
|
||||
dependencies:
|
||||
"@smithy/types" "^4.13.0"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@aws-sdk/types@^3.973.8":
|
||||
"@aws-sdk/types@^3.222.0", "@aws-sdk/types@^3.973.8":
|
||||
version "3.973.8"
|
||||
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.973.8.tgz#7352cb74a5f8bae1218eee63e714cf94302911c5"
|
||||
integrity sha512-gjlAdtHMbtR9X5iIhVUvbVcy55KnznpC6bkDUWW9z915bi0ckdUr5cjf16Kp6xq0bP5HBD2xzgbL9F9Quv5vUw==
|
||||
@@ -627,16 +619,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@aws/lambda-invoke-store/-/lambda-invoke-store-0.2.4.tgz#802f6a50f6b6589063ef63ba8acdee86fcb9f395"
|
||||
integrity sha512-iY8yvjE0y651BixKNPgmv1WrQc+GZ142sb0z4gYnChDDY2YqI4P/jsSopBWrKfAt7LOJAkOXt7rC/hms+WclQQ==
|
||||
|
||||
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.27.1", "@babel/code-frame@^7.28.6", "@babel/code-frame@^7.29.0", "@babel/code-frame@^7.8.3":
|
||||
version "7.29.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.0.tgz#7cd7a59f15b3cc0dcd803038f7792712a7d0b15c"
|
||||
integrity sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==
|
||||
dependencies:
|
||||
"@babel/helper-validator-identifier" "^7.28.5"
|
||||
js-tokens "^4.0.0"
|
||||
picocolors "^1.1.1"
|
||||
|
||||
"@babel/code-frame@^7.29.7":
|
||||
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.12.13", "@babel/code-frame@^7.27.1", "@babel/code-frame@^7.29.7", "@babel/code-frame@^7.8.3":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.29.7.tgz#f2fbbfea87c44a21590ec515b778b2c26d8866e7"
|
||||
integrity sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==
|
||||
@@ -645,12 +628,7 @@
|
||||
js-tokens "^4.0.0"
|
||||
picocolors "^1.1.1"
|
||||
|
||||
"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.0":
|
||||
version "7.29.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.0.tgz#00d03e8c0ac24dd9be942c5370990cbe1f17d88d"
|
||||
integrity sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==
|
||||
|
||||
"@babel/compat-data@^7.29.7":
|
||||
"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.0", "@babel/compat-data@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.7.tgz#6f0237f0f36d2e51c0570a636faed9d2d0efe629"
|
||||
integrity sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==
|
||||
@@ -676,18 +654,7 @@
|
||||
json5 "^2.2.3"
|
||||
semver "^6.3.1"
|
||||
|
||||
"@babel/generator@^7.29.0", "@babel/generator@^7.7.2":
|
||||
version "7.29.1"
|
||||
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.1.tgz#d09876290111abbb00ef962a7b83a5307fba0d50"
|
||||
integrity sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.29.0"
|
||||
"@babel/types" "^7.29.0"
|
||||
"@jridgewell/gen-mapping" "^0.3.12"
|
||||
"@jridgewell/trace-mapping" "^0.3.28"
|
||||
jsesc "^3.0.2"
|
||||
|
||||
"@babel/generator@^7.29.7":
|
||||
"@babel/generator@^7.29.7", "@babel/generator@^7.7.2":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.7.tgz#cca0b8827e6bcf3ba176788e7f3b180ad6db2fa3"
|
||||
integrity sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==
|
||||
@@ -698,32 +665,14 @@
|
||||
"@jridgewell/trace-mapping" "^0.3.28"
|
||||
jsesc "^3.0.2"
|
||||
|
||||
"@babel/helper-annotate-as-pure@^7.14.5", "@babel/helper-annotate-as-pure@^7.27.1", "@babel/helper-annotate-as-pure@^7.27.3":
|
||||
version "7.27.3"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz#f31fd86b915fc4daf1f3ac6976c59be7084ed9c5"
|
||||
integrity sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==
|
||||
dependencies:
|
||||
"@babel/types" "^7.27.3"
|
||||
|
||||
"@babel/helper-annotate-as-pure@^7.29.7":
|
||||
"@babel/helper-annotate-as-pure@^7.14.5", "@babel/helper-annotate-as-pure@^7.27.1", "@babel/helper-annotate-as-pure@^7.27.3", "@babel/helper-annotate-as-pure@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz#c70fe3c6ecbdc3fd2dd1b0f498428b88b82ce47f"
|
||||
integrity sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==
|
||||
dependencies:
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/helper-compilation-targets@^7.12.16", "@babel/helper-compilation-targets@^7.27.1", "@babel/helper-compilation-targets@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz#32c4a3f41f12ed1532179b108a4d746e105c2b25"
|
||||
integrity sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==
|
||||
dependencies:
|
||||
"@babel/compat-data" "^7.28.6"
|
||||
"@babel/helper-validator-option" "^7.27.1"
|
||||
browserslist "^4.24.0"
|
||||
lru-cache "^5.1.1"
|
||||
semver "^6.3.1"
|
||||
|
||||
"@babel/helper-compilation-targets@^7.29.7":
|
||||
"@babel/helper-compilation-targets@^7.12.16", "@babel/helper-compilation-targets@^7.27.1", "@babel/helper-compilation-targets@^7.28.6", "@babel/helper-compilation-targets@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz#7a1def704302401c47f64fa85589e974ae217042"
|
||||
integrity sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==
|
||||
@@ -734,20 +683,7 @@
|
||||
lru-cache "^5.1.1"
|
||||
semver "^6.3.1"
|
||||
|
||||
"@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.6.tgz#611ff5482da9ef0db6291bcd24303400bca170fb"
|
||||
integrity sha512-dTOdvsjnG3xNT9Y0AUg1wAl38y+4Rl4sf9caSQZOXdNqVn+H+HbbJ4IyyHaIqNR6SW9oJpA/RuRjsjCw2IdIow==
|
||||
dependencies:
|
||||
"@babel/helper-annotate-as-pure" "^7.27.3"
|
||||
"@babel/helper-member-expression-to-functions" "^7.28.5"
|
||||
"@babel/helper-optimise-call-expression" "^7.27.1"
|
||||
"@babel/helper-replace-supers" "^7.28.6"
|
||||
"@babel/helper-skip-transparent-expression-wrappers" "^7.27.1"
|
||||
"@babel/traverse" "^7.28.6"
|
||||
semver "^6.3.1"
|
||||
|
||||
"@babel/helper-create-class-features-plugin@^7.29.7":
|
||||
"@babel/helper-create-class-features-plugin@^7.14.5", "@babel/helper-create-class-features-plugin@^7.18.6", "@babel/helper-create-class-features-plugin@^7.28.6", "@babel/helper-create-class-features-plugin@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz#6eddf286f2ec418f740c91d60a83347c55838ddd"
|
||||
integrity sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==
|
||||
@@ -780,24 +716,11 @@
|
||||
lodash.debounce "^4.0.8"
|
||||
resolve "^1.22.11"
|
||||
|
||||
"@babel/helper-globals@^7.28.0":
|
||||
version "7.28.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-globals/-/helper-globals-7.28.0.tgz#b9430df2aa4e17bc28665eadeae8aa1d985e6674"
|
||||
integrity sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==
|
||||
|
||||
"@babel/helper-globals@^7.29.7":
|
||||
"@babel/helper-globals@^7.28.0", "@babel/helper-globals@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-globals/-/helper-globals-7.29.7.tgz#f04a96fbd8473241b1079243f5b3f03a3010ab7b"
|
||||
integrity sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==
|
||||
|
||||
"@babel/helper-member-expression-to-functions@^7.28.5":
|
||||
version "7.28.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz#f3e07a10be37ed7a63461c63e6929575945a6150"
|
||||
integrity sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==
|
||||
dependencies:
|
||||
"@babel/traverse" "^7.28.5"
|
||||
"@babel/types" "^7.28.5"
|
||||
|
||||
"@babel/helper-member-expression-to-functions@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz#8dbdb3ce0b5c487e1aec10e13c9a43a500814df8"
|
||||
@@ -806,15 +729,7 @@
|
||||
"@babel/traverse" "^7.29.7"
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.27.1", "@babel/helper-module-imports@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz#60632cbd6ffb70b22823187201116762a03e2d5c"
|
||||
integrity sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==
|
||||
dependencies:
|
||||
"@babel/traverse" "^7.28.6"
|
||||
"@babel/types" "^7.28.6"
|
||||
|
||||
"@babel/helper-module-imports@^7.29.7":
|
||||
"@babel/helper-module-imports@^7.0.0", "@babel/helper-module-imports@^7.12.13", "@babel/helper-module-imports@^7.27.1", "@babel/helper-module-imports@^7.28.6", "@babel/helper-module-imports@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz#ef25048a518e828d7393fac5882ddd73921d7396"
|
||||
integrity sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==
|
||||
@@ -822,16 +737,7 @@
|
||||
"@babel/traverse" "^7.29.7"
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/helper-module-transforms@^7.27.1", "@babel/helper-module-transforms@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz#9312d9d9e56edc35aeb6e95c25d4106b50b9eb1e"
|
||||
integrity sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==
|
||||
dependencies:
|
||||
"@babel/helper-module-imports" "^7.28.6"
|
||||
"@babel/helper-validator-identifier" "^7.28.5"
|
||||
"@babel/traverse" "^7.28.6"
|
||||
|
||||
"@babel/helper-module-transforms@^7.29.7":
|
||||
"@babel/helper-module-transforms@^7.27.1", "@babel/helper-module-transforms@^7.28.6", "@babel/helper-module-transforms@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz#b062747a5997ba138637201328bbff77960574ae"
|
||||
integrity sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==
|
||||
@@ -840,13 +746,6 @@
|
||||
"@babel/helper-validator-identifier" "^7.29.7"
|
||||
"@babel/traverse" "^7.29.7"
|
||||
|
||||
"@babel/helper-optimise-call-expression@^7.27.1":
|
||||
version "7.27.1"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz#c65221b61a643f3e62705e5dd2b5f115e35f9200"
|
||||
integrity sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==
|
||||
dependencies:
|
||||
"@babel/types" "^7.27.1"
|
||||
|
||||
"@babel/helper-optimise-call-expression@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz#77b0b5b94f1997fa9d6e3125f445227b1faf9d85"
|
||||
@@ -854,12 +753,7 @@
|
||||
dependencies:
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.27.1", "@babel/helper-plugin-utils@^7.28.6", "@babel/helper-plugin-utils@^7.8.0":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz#6f13ea251b68c8532e985fd532f28741a8af9ac8"
|
||||
integrity sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==
|
||||
|
||||
"@babel/helper-plugin-utils@^7.29.7":
|
||||
"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.16.7", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.20.2", "@babel/helper-plugin-utils@^7.27.1", "@babel/helper-plugin-utils@^7.28.6", "@babel/helper-plugin-utils@^7.29.7", "@babel/helper-plugin-utils@^7.8.0":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz#c0a0766f1a13617d8a17407d7ab8f9d486225ea4"
|
||||
integrity sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==
|
||||
@@ -873,16 +767,7 @@
|
||||
"@babel/helper-wrap-function" "^7.27.1"
|
||||
"@babel/traverse" "^7.27.1"
|
||||
|
||||
"@babel/helper-replace-supers@^7.27.1", "@babel/helper-replace-supers@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.28.6.tgz#94aa9a1d7423a00aead3f204f78834ce7d53fe44"
|
||||
integrity sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==
|
||||
dependencies:
|
||||
"@babel/helper-member-expression-to-functions" "^7.28.5"
|
||||
"@babel/helper-optimise-call-expression" "^7.27.1"
|
||||
"@babel/traverse" "^7.28.6"
|
||||
|
||||
"@babel/helper-replace-supers@^7.29.7":
|
||||
"@babel/helper-replace-supers@^7.27.1", "@babel/helper-replace-supers@^7.28.6", "@babel/helper-replace-supers@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz#bc3c3964329043c79112e513c1b198f16589ac21"
|
||||
integrity sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==
|
||||
@@ -891,15 +776,7 @@
|
||||
"@babel/helper-optimise-call-expression" "^7.29.7"
|
||||
"@babel/traverse" "^7.29.7"
|
||||
|
||||
"@babel/helper-skip-transparent-expression-wrappers@^7.20.0", "@babel/helper-skip-transparent-expression-wrappers@^7.27.1":
|
||||
version "7.27.1"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz#62bb91b3abba8c7f1fec0252d9dbea11b3ee7a56"
|
||||
integrity sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==
|
||||
dependencies:
|
||||
"@babel/traverse" "^7.27.1"
|
||||
"@babel/types" "^7.27.1"
|
||||
|
||||
"@babel/helper-skip-transparent-expression-wrappers@^7.29.7":
|
||||
"@babel/helper-skip-transparent-expression-wrappers@^7.20.0", "@babel/helper-skip-transparent-expression-wrappers@^7.27.1", "@babel/helper-skip-transparent-expression-wrappers@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz#50c95c7e4c4f54936cfa0116428edc559862d551"
|
||||
integrity sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==
|
||||
@@ -907,32 +784,17 @@
|
||||
"@babel/traverse" "^7.29.7"
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/helper-string-parser@^7.27.1":
|
||||
version "7.27.1"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz#54da796097ab19ce67ed9f88b47bb2ec49367687"
|
||||
integrity sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==
|
||||
|
||||
"@babel/helper-string-parser@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz#7f0871d99824d23137d60f86fcf6130fd5a1b51f"
|
||||
integrity sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==
|
||||
|
||||
"@babel/helper-validator-identifier@^7.28.5":
|
||||
version "7.28.5"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz#010b6938fab7cb7df74aa2bbc06aa503b8fe5fb4"
|
||||
integrity sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==
|
||||
|
||||
"@babel/helper-validator-identifier@^7.29.7":
|
||||
"@babel/helper-validator-identifier@^7.28.5", "@babel/helper-validator-identifier@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz#bd87084ced0c796ec46bda492de6e83d29e89fc2"
|
||||
integrity sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==
|
||||
|
||||
"@babel/helper-validator-option@^7.16.7", "@babel/helper-validator-option@^7.27.1":
|
||||
version "7.27.1"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f"
|
||||
integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==
|
||||
|
||||
"@babel/helper-validator-option@^7.29.7":
|
||||
"@babel/helper-validator-option@^7.16.7", "@babel/helper-validator-option@^7.27.1", "@babel/helper-validator-option@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz#cf315be940213b354eb4abcc0bd01ebe3f73bc2a"
|
||||
integrity sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==
|
||||
@@ -954,21 +816,7 @@
|
||||
"@babel/template" "^7.29.7"
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.28.0", "@babel/parser@^7.28.6", "@babel/parser@^7.29.0":
|
||||
version "7.29.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.0.tgz#669ef345add7d057e92b7ed15f0bac07611831b6"
|
||||
integrity sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==
|
||||
dependencies:
|
||||
"@babel/types" "^7.29.0"
|
||||
|
||||
"@babel/parser@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.7.tgz#837b87387cbf5ec5530cb634b3c622f68edb9334"
|
||||
integrity sha512-hnORnjP/1P/zFEndoeX+n+t1RwWRJiJpM/jO7FW32Kn9r5+sJB2JWOdYo4L6k78j15eCwY3Gm/7364B1EMwtNg==
|
||||
dependencies:
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/parser@^7.29.8":
|
||||
"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.28.0", "@babel/parser@^7.29.7", "@babel/parser@^7.29.8":
|
||||
version "7.29.9"
|
||||
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.9.tgz#e7ee0a24f752c5296c6455855ccb72662e67ea96"
|
||||
integrity sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==
|
||||
@@ -1133,14 +981,7 @@
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.8.0"
|
||||
|
||||
"@babel/plugin-syntax-jsx@^7.12.13", "@babel/plugin-syntax-jsx@^7.2.0", "@babel/plugin-syntax-jsx@^7.27.1":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz#f8ca28bbd84883b5fea0e447c635b81ba73997ee"
|
||||
integrity sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==
|
||||
dependencies:
|
||||
"@babel/helper-plugin-utils" "^7.28.6"
|
||||
|
||||
"@babel/plugin-syntax-jsx@^7.7.2":
|
||||
"@babel/plugin-syntax-jsx@^7.12.13", "@babel/plugin-syntax-jsx@^7.2.0", "@babel/plugin-syntax-jsx@^7.27.1", "@babel/plugin-syntax-jsx@^7.7.2":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz#622c16f9ad63782fe6e83dadc7e40330744b7f1e"
|
||||
integrity sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==
|
||||
@@ -1265,7 +1106,7 @@
|
||||
"@babel/helper-create-class-features-plugin" "^7.28.6"
|
||||
"@babel/helper-plugin-utils" "^7.28.6"
|
||||
|
||||
"@babel/plugin-transform-class-static-block@7.29.7":
|
||||
"@babel/plugin-transform-class-static-block@7.29.7", "@babel/plugin-transform-class-static-block@^7.28.6":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.29.7.tgz#fed8efd19f3dd3e1114ee390707c70912778fd7c"
|
||||
integrity sha512-kibJgmEdX2iMwsHY2tSZNDgj8PwIlCQz7FK9KuGKO8zsuoUwSEhoNnNVp/emKWrbY4HeO6kkXfdMqRKKKXBm2A==
|
||||
@@ -1273,14 +1114,6 @@
|
||||
"@babel/helper-create-class-features-plugin" "^7.29.7"
|
||||
"@babel/helper-plugin-utils" "^7.29.7"
|
||||
|
||||
"@babel/plugin-transform-class-static-block@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.6.tgz#1257491e8259c6d125ac4d9a6f39f9d2bf3dba70"
|
||||
integrity sha512-rfQ++ghVwTWTqQ7w8qyDxL1XGihjBss4CmTgGRCTAC9RIbhVpyp4fOeZtta0Lbf+dTNIVJer6ych2ibHwkZqsQ==
|
||||
dependencies:
|
||||
"@babel/helper-create-class-features-plugin" "^7.28.6"
|
||||
"@babel/helper-plugin-utils" "^7.28.6"
|
||||
|
||||
"@babel/plugin-transform-classes@^7.28.6":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.6.tgz#8f6fb79ba3703978e701ce2a97e373aae7dda4b7"
|
||||
@@ -1745,7 +1578,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.6.tgz#d267a43cb1836dc4d182cce93ae75ba954ef6d2b"
|
||||
integrity sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==
|
||||
|
||||
"@babel/template@7", "@babel/template@^7.29.7":
|
||||
"@babel/template@7", "@babel/template@^7.27.2", "@babel/template@^7.28.6", "@babel/template@^7.29.7", "@babel/template@^7.3.3":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.29.7.tgz#4d9d4004f645cdd304de958c725162784ecac700"
|
||||
integrity sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==
|
||||
@@ -1754,29 +1587,7 @@
|
||||
"@babel/parser" "^7.29.7"
|
||||
"@babel/types" "^7.29.7"
|
||||
|
||||
"@babel/template@^7.27.2", "@babel/template@^7.28.6", "@babel/template@^7.3.3":
|
||||
version "7.28.6"
|
||||
resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.28.6.tgz#0e7e56ecedb78aeef66ce7972b082fce76a23e57"
|
||||
integrity sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==
|
||||
dependencies:
|
||||
"@babel/code-frame" "^7.28.6"
|
||||
"@babel/parser" "^7.28.6"
|
||||
"@babel/types" "^7.28.6"
|
||||
|
||||
"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.0", "@babel/traverse@^7.28.5", "@babel/traverse@^7.28.6", "@babel/traverse@^7.29.0":
|
||||
version "7.29.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.0.tgz#f323d05001440253eead3c9c858adbe00b90310a"
|
||||
integrity sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==
|
||||
dependencies:
|
||||
"@babel/code-frame" "^7.29.0"
|
||||
"@babel/generator" "^7.29.0"
|
||||
"@babel/helper-globals" "^7.28.0"
|
||||
"@babel/parser" "^7.29.0"
|
||||
"@babel/template" "^7.28.6"
|
||||
"@babel/types" "^7.29.0"
|
||||
debug "^4.3.1"
|
||||
|
||||
"@babel/traverse@^7.29.7":
|
||||
"@babel/traverse@^7.27.1", "@babel/traverse@^7.28.0", "@babel/traverse@^7.28.5", "@babel/traverse@^7.28.6", "@babel/traverse@^7.29.0", "@babel/traverse@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.7.tgz#c47b07a41b95da0907d026b5dd894d98de7d2f2d"
|
||||
integrity sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==
|
||||
@@ -1789,23 +1600,7 @@
|
||||
"@babel/types" "^7.29.7"
|
||||
debug "^4.3.1"
|
||||
|
||||
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.28.2", "@babel/types@^7.28.5", "@babel/types@^7.28.6", "@babel/types@^7.29.0", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
|
||||
version "7.29.0"
|
||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.0.tgz#9f5b1e838c446e72cf3cd4b918152b8c605e37c7"
|
||||
integrity sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==
|
||||
dependencies:
|
||||
"@babel/helper-string-parser" "^7.27.1"
|
||||
"@babel/helper-validator-identifier" "^7.28.5"
|
||||
|
||||
"@babel/types@^7.29.7":
|
||||
version "7.29.7"
|
||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.7.tgz#8005e31d82712ee7adaef6e23c63b71a62770a92"
|
||||
integrity sha512-4zBIxpPzowiZpusoFkyGVwakdRJUyuH5PxQ/PrqghfdFWWasvnCdPfQXHrenDai+gyLARulZjZowCOj6fjT4pA==
|
||||
dependencies:
|
||||
"@babel/helper-string-parser" "^7.29.7"
|
||||
"@babel/helper-validator-identifier" "^7.29.7"
|
||||
|
||||
"@babel/types@^7.29.8":
|
||||
"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.28.2", "@babel/types@^7.28.6", "@babel/types@^7.29.7", "@babel/types@^7.29.8", "@babel/types@^7.3.3", "@babel/types@^7.4.4":
|
||||
version "7.29.8"
|
||||
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.8.tgz#1229eef31d85156d70fa3f4cd859376d0eaf6863"
|
||||
integrity sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==
|
||||
@@ -2652,20 +2447,13 @@
|
||||
resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.5.3.tgz#1f0bf96f8f4949ef761991934b2f93947133b2ec"
|
||||
integrity sha512-H0iErY4e43LpXbYDyBci5W4v/RwTgGV3YzYOlJPiGZ8RY8w51kVE+xLn1tg3Z6UmSfyETvtsUK3r7YsgDQEI7Q==
|
||||
|
||||
"@lezer/highlight@1.2.4":
|
||||
"@lezer/highlight@1.2.4", "@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3", "@lezer/highlight@^1.2.0":
|
||||
version "1.2.4"
|
||||
resolved "https://registry.yarnpkg.com/@lezer/highlight/-/highlight-1.2.4.tgz#e32dd87088af6b301ca0b2670c054c939918ff78"
|
||||
integrity sha512-4UeRVFO0lsBaM7GA32zOqbmqNPme9jedo8Ey+5c5656MU3MLitMLIA8aCZTYjUMEpEsuSeXEm78Uea6Iq3bvSg==
|
||||
dependencies:
|
||||
"@lezer/common" "^1.3.0"
|
||||
|
||||
"@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3", "@lezer/highlight@^1.2.0":
|
||||
version "1.2.5"
|
||||
resolved "https://registry.yarnpkg.com/@lezer/highlight/-/highlight-1.2.5.tgz#af43ba19f2cd50713eb045ab827085a0aa6d8592"
|
||||
integrity sha512-O1GMVKgtf5YspFaRzpmqkVgMtIk2HG9uMAbH6wdAIdNh3TVzCsch/+cRi+6l2//UGDKe6NB9BW3cvuR5ezMQ0w==
|
||||
dependencies:
|
||||
"@lezer/common" "^1.3.0"
|
||||
|
||||
"@lezer/javascript@^1.0.0":
|
||||
version "1.5.6"
|
||||
resolved "https://registry.yarnpkg.com/@lezer/javascript/-/javascript-1.5.6.tgz#31edb7f3e8c433eb0e6ef295024f26a9bf093d6c"
|
||||
@@ -3342,15 +3130,7 @@
|
||||
"@smithy/core" "^3.24.1"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/protocol-http@^5.1.3":
|
||||
version "5.3.12"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-5.3.12.tgz#c913053e7dfbac6cdd7f374f0b4f5aa7c518d0e1"
|
||||
integrity sha512-fit0GZK9I1xoRlR4jXmbLhoN0OdEpa96ul8M65XdmXnxXkuMxM0Y8HDT0Fh0Xb4I85MBvBClOzgSrV1X2s1Hxw==
|
||||
dependencies:
|
||||
"@smithy/types" "^4.13.1"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/protocol-http@^5.3.14":
|
||||
"@smithy/protocol-http@^5.1.3", "@smithy/protocol-http@^5.3.14":
|
||||
version "5.4.1"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/protocol-http/-/protocol-http-5.4.1.tgz#7acf497f56b95fa13bb89d8e230175ab1bb16ca0"
|
||||
integrity sha512-8irPNCQgYxcSFp1aGcnDNFkTwSA+xPUaFq9V/v1+JXWu8sKr5b3cFmg2kBTkjkvypDmGeNffuNu0x5iqw1NoAw==
|
||||
@@ -3358,16 +3138,7 @@
|
||||
"@smithy/core" "^3.24.1"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/querystring-builder@^4.0.5":
|
||||
version "4.2.12"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/querystring-builder/-/querystring-builder-4.2.12.tgz#20a0266b151a4b58409f901e1463257a72835c16"
|
||||
integrity sha512-6wTZjGABQufekycfDGMEB84BgtdOE/rCVTov+EDXQ8NHKTUNIp/j27IliwP7tjIU9LR+sSzyGBOXjeEtVgzCHg==
|
||||
dependencies:
|
||||
"@smithy/types" "^4.13.1"
|
||||
"@smithy/util-uri-escape" "^4.2.2"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/querystring-builder@^4.2.14":
|
||||
"@smithy/querystring-builder@^4.0.5", "@smithy/querystring-builder@^4.2.14":
|
||||
version "4.3.1"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/querystring-builder/-/querystring-builder-4.3.1.tgz#3de7adc9c32270907c99d6ed0f1faea55b182184"
|
||||
integrity sha512-toyi8sXPWDNoVH6yK7sXJ9dm5uxw2tWLCHzPy/t16Fvl62Es4vXQXzlilyNaw+DqFwxSlrFClh0rGLPUF2p9Lg==
|
||||
@@ -3401,14 +3172,7 @@
|
||||
"@smithy/types" "^4.14.1"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/types@^4.13.0", "@smithy/types@^4.13.1", "@smithy/types@^4.3.2":
|
||||
version "4.13.1"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.13.1.tgz#8aaf15bb0f42b4e7c93c87018a3678a06d74691d"
|
||||
integrity sha512-787F3yzE2UiJIQ+wYW1CVg2odHjmaWLGksnKQHUrK/lYZSEcy1msuLVvxaR/sI2/aDe9U+TBuLsXnr3vod1g0g==
|
||||
dependencies:
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/types@^4.14.1":
|
||||
"@smithy/types@^4.14.1", "@smithy/types@^4.3.2":
|
||||
version "4.14.1"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.14.1.tgz#aba92b4cdb406f2a2b062e82f1e3728d809a7c23"
|
||||
integrity sha512-59b5HtSVrVR/eYNei3BUj3DCPKD/G7EtDDe7OEJE7i7FtQFugYo6MxbotS8mVJkLNVf8gYaAlEBwwtJ9HzhWSg==
|
||||
@@ -3518,13 +3282,6 @@
|
||||
"@smithy/core" "^3.24.1"
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/util-uri-escape@^4.2.2":
|
||||
version "4.2.2"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/util-uri-escape/-/util-uri-escape-4.2.2.tgz#48e40206e7fe9daefc8d44bb43a1ab17e76abf4a"
|
||||
integrity sha512-2kAStBlvq+lTXHyAZYfJRb/DfS3rsinLiwb+69SstC9Vb0s9vNWkRwpnj918Pfi85mzi42sOqdV72OLxWAISnw==
|
||||
dependencies:
|
||||
tslib "^2.6.2"
|
||||
|
||||
"@smithy/util-utf8@^2.0.0":
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/@smithy/util-utf8/-/util-utf8-2.3.0.tgz#dd96d7640363259924a214313c3cf16e7dd329c5"
|
||||
@@ -3681,17 +3438,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.9.tgz#cf3f0e876d7bee15a93ab925b82bf570a3904a24"
|
||||
integrity sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==
|
||||
|
||||
"@types/express-serve-static-core@*", "@types/express-serve-static-core@^5.0.0":
|
||||
version "5.1.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-5.1.1.tgz#1a77faffee9572d39124933259be2523837d7eaa"
|
||||
integrity sha512-v4zIMr/cX7/d2BpAEX3KNKL/JrT1s43s96lLvvdTmza1oEvDudCqK9aF/djc/SWgy8Yh0h30TZx5VpzqFCxk5A==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
"@types/qs" "*"
|
||||
"@types/range-parser" "*"
|
||||
"@types/send" "*"
|
||||
|
||||
"@types/express-serve-static-core@^4.17.21":
|
||||
"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.21", "@types/express-serve-static-core@^4.17.33":
|
||||
version "4.19.9"
|
||||
resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.9.tgz#b746a8bb6c389af7a31141397bb539f775b0ae84"
|
||||
integrity sha512-QP2ESEe/ImWY0HDwNAnK9PvEffUyhLTnWkk7KXzHfyeWAnlrDe1fN77bXl6ia8KT3wPlmA7t9/VPRpnf4Ex9sg==
|
||||
@@ -3701,26 +3448,7 @@
|
||||
"@types/range-parser" "*"
|
||||
"@types/send" "*"
|
||||
|
||||
"@types/express-serve-static-core@^4.17.33":
|
||||
version "4.19.8"
|
||||
resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.8.tgz#99b960322a4d576b239a640ab52ef191989b036f"
|
||||
integrity sha512-02S5fmqeoKzVZCHPZid4b8JH2eM5HzQLZWN2FohQEy/0eXTq8VXZfSN6Pcr3F6N9R/vNrj7cpgbhjie6m/1tCA==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
"@types/qs" "*"
|
||||
"@types/range-parser" "*"
|
||||
"@types/send" "*"
|
||||
|
||||
"@types/express@*":
|
||||
version "5.0.6"
|
||||
resolved "https://registry.yarnpkg.com/@types/express/-/express-5.0.6.tgz#2d724b2c990dcb8c8444063f3580a903f6d500cc"
|
||||
integrity sha512-sKYVuV7Sv9fbPIt/442koC7+IIwK5olP1KWeD88e/idgoJqDm3JV/YUiPwkoKK92ylff2MGxSz1CSjsXelx0YA==
|
||||
dependencies:
|
||||
"@types/body-parser" "*"
|
||||
"@types/express-serve-static-core" "^5.0.0"
|
||||
"@types/serve-static" "^2"
|
||||
|
||||
"@types/express@^4.17.25":
|
||||
"@types/express@*", "@types/express@^4.17.25":
|
||||
version "4.17.25"
|
||||
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.25.tgz#070c8c73a6fee6936d65c195dbbfb7da5026649b"
|
||||
integrity sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==
|
||||
@@ -3857,14 +3585,7 @@
|
||||
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.1.tgz#3ce3af1a5524ef327d2da9e4fd8b6d95c8d70528"
|
||||
integrity sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==
|
||||
|
||||
"@types/send@*":
|
||||
version "1.2.1"
|
||||
resolved "https://registry.yarnpkg.com/@types/send/-/send-1.2.1.tgz#6a784e45543c18c774c049bff6d3dbaf045c9c74"
|
||||
integrity sha512-arsCikDvlU99zl1g69TcAB3mzZPpxgw0UQnaHeC1Nwb015xp8bknZv5rIfri9xTOcMuaVgvabfIRA7PSZVuZIQ==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/send@<1":
|
||||
"@types/send@*", "@types/send@<1":
|
||||
version "0.17.6"
|
||||
resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.6.tgz#aeb5385be62ff58a52cd5459daa509ae91651d25"
|
||||
integrity sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==
|
||||
@@ -3888,14 +3609,6 @@
|
||||
"@types/node" "*"
|
||||
"@types/send" "<1"
|
||||
|
||||
"@types/serve-static@^2":
|
||||
version "2.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-2.2.0.tgz#d4a447503ead0d1671132d1ab6bd58b805d8de6a"
|
||||
integrity sha512-8mam4H1NHLtu7nmtalF7eyBH14QyOASmcxHhSfEoRyr0nP/YdoesEtU+uSRvMe96TW/HPTtkoKqQLl53N7UXMQ==
|
||||
dependencies:
|
||||
"@types/http-errors" "*"
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/sockjs@^0.3.36":
|
||||
version "0.3.36"
|
||||
resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.36.tgz#ce322cf07bcc119d4cbf7f88954f3a3bd0f67535"
|
||||
@@ -4027,12 +3740,12 @@
|
||||
"@typescript-eslint/types" "8.70.0"
|
||||
"@typescript-eslint/visitor-keys" "8.70.0"
|
||||
|
||||
"@typescript-eslint/tsconfig-utils@8.62.0", "@typescript-eslint/tsconfig-utils@^8.62.0":
|
||||
"@typescript-eslint/tsconfig-utils@8.62.0":
|
||||
version "8.62.0"
|
||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.62.0.tgz#9440a673581c6d9de308c4d5803dd52ed5d71729"
|
||||
integrity sha512-y2GAdB6ykaXUvuspbYnizQc4oDDz0Tz/Yc7iWrXf9mx8vm/L/0vLHCe0tS2boG96Zy+DivnVDQ9ZUEWoHqqx1g==
|
||||
|
||||
"@typescript-eslint/tsconfig-utils@8.70.0", "@typescript-eslint/tsconfig-utils@^8.70.0":
|
||||
"@typescript-eslint/tsconfig-utils@8.70.0", "@typescript-eslint/tsconfig-utils@^8.62.0", "@typescript-eslint/tsconfig-utils@^8.70.0":
|
||||
version "8.70.0"
|
||||
resolved "https://registry.yarnpkg.com/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.70.0.tgz#f583ca72159c4fd8e775c153da3241de6b77974f"
|
||||
integrity sha512-adnkeeNq9Sq1sUf4+FRVc0KdgYghzsgFpZSQVZVvY0LCuUuN0FnQgyGzCJeC4fW1cdXseBAjU2EOqUIjbNcZUw==
|
||||
@@ -4407,17 +4120,6 @@
|
||||
semver "^7.3.4"
|
||||
strip-ansi "^6.0.0"
|
||||
|
||||
"@vue/compiler-core@3.5.30":
|
||||
version "3.5.30"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.5.30.tgz#0f984da9207f24f9ddfb700052a43247a953fd9a"
|
||||
integrity sha512-s3DfdZkcu/qExZ+td75015ljzHc6vE+30cFMGRPROYjqkroYI5NV2X1yAMX9UeyBNWB9MxCfPcsjpLS11nzkkw==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.29.0"
|
||||
"@vue/shared" "3.5.30"
|
||||
entities "^7.0.1"
|
||||
estree-walker "^2.0.2"
|
||||
source-map-js "^1.2.1"
|
||||
|
||||
"@vue/compiler-core@3.5.42":
|
||||
version "3.5.42"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-core/-/compiler-core-3.5.42.tgz#9d159ca5b1e7d792a42e9b1ddf2fc31edc9333dc"
|
||||
@@ -4429,14 +4131,6 @@
|
||||
estree-walker "^2.0.2"
|
||||
source-map-js "^1.2.1"
|
||||
|
||||
"@vue/compiler-dom@3.5.30":
|
||||
version "3.5.30"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.5.30.tgz#a38dbdd520479244c8b673123b4bd06a82e733ee"
|
||||
integrity sha512-eCFYESUEVYHhiMuK4SQTldO3RYxyMR/UQL4KdGD1Yrkfdx4m/HYuZ9jSfPdA+nWJY34VWndiYdW/wZXyiPEB9g==
|
||||
dependencies:
|
||||
"@vue/compiler-core" "3.5.30"
|
||||
"@vue/shared" "3.5.30"
|
||||
|
||||
"@vue/compiler-dom@3.5.42":
|
||||
version "3.5.42"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-dom/-/compiler-dom-3.5.42.tgz#2ac9570010bbffb7c08d8a904a956ecbabcdf6c6"
|
||||
@@ -4445,7 +4139,7 @@
|
||||
"@vue/compiler-core" "3.5.42"
|
||||
"@vue/shared" "3.5.42"
|
||||
|
||||
"@vue/compiler-sfc@3.5.42":
|
||||
"@vue/compiler-sfc@3.5.42", "@vue/compiler-sfc@^3.5.18":
|
||||
version "3.5.42"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.5.42.tgz#502c50e7864a980b7f147b78974e3b49fefcc16d"
|
||||
integrity sha512-fkCAFB4okcAANGMThboWnScp/gzWjU0ZSkVnjTIiplmMDq2uq0tIB3j+xVu4rhv5rvOgBySCysudmbMd6xRRqw==
|
||||
@@ -4460,29 +4154,6 @@
|
||||
postcss "^8.5.19"
|
||||
source-map-js "^1.2.1"
|
||||
|
||||
"@vue/compiler-sfc@^3.5.18":
|
||||
version "3.5.30"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.5.30.tgz#5c716d844f240154263e99b25fba6e1802c0c8c6"
|
||||
integrity sha512-LqmFPDn89dtU9vI3wHJnwaV6GfTRD87AjWpTWpyrdVOObVtjIuSeZr181z5C4PmVx/V3j2p+0f7edFKGRMpQ5A==
|
||||
dependencies:
|
||||
"@babel/parser" "^7.29.0"
|
||||
"@vue/compiler-core" "3.5.30"
|
||||
"@vue/compiler-dom" "3.5.30"
|
||||
"@vue/compiler-ssr" "3.5.30"
|
||||
"@vue/shared" "3.5.30"
|
||||
estree-walker "^2.0.2"
|
||||
magic-string "^0.30.21"
|
||||
postcss "^8.5.8"
|
||||
source-map-js "^1.2.1"
|
||||
|
||||
"@vue/compiler-ssr@3.5.30":
|
||||
version "3.5.30"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.5.30.tgz#e9b407d7e56be1e307a7621f2e8d2501267ff1d0"
|
||||
integrity sha512-NsYK6OMTnx109PSL2IAyf62JP6EUdk4Dmj6AkWcJGBvN0dQoMYtVekAmdqgTtWQgEJo+Okstbf/1p7qZr5H+bA==
|
||||
dependencies:
|
||||
"@vue/compiler-dom" "3.5.30"
|
||||
"@vue/shared" "3.5.30"
|
||||
|
||||
"@vue/compiler-ssr@3.5.42":
|
||||
version "3.5.42"
|
||||
resolved "https://registry.yarnpkg.com/@vue/compiler-ssr/-/compiler-ssr-3.5.42.tgz#a3121ad517e9062121762e452f125674cc6162fa"
|
||||
@@ -4573,12 +4244,7 @@
|
||||
"@vue/runtime-dom" "3.5.42"
|
||||
"@vue/shared" "3.5.42"
|
||||
|
||||
"@vue/shared@3.5.30", "@vue/shared@^3.5.18":
|
||||
version "3.5.30"
|
||||
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.5.30.tgz#5d7a0d3ca151647484303fd9f057e2e13ecb80ef"
|
||||
integrity sha512-YXgQ7JjaO18NeK2K9VTbDHaFy62WrObMa6XERNfNOkAhD1F1oDSf3ZJ7K6GqabZ0BvSDHajp8qfS5Sa2I9n8uQ==
|
||||
|
||||
"@vue/shared@3.5.42":
|
||||
"@vue/shared@3.5.42", "@vue/shared@^3.5.18":
|
||||
version "3.5.42"
|
||||
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.5.42.tgz#a413cf21262502662354cda3b65ab31bca979202"
|
||||
integrity sha512-2rPxex1jQf4jvl9MOHl6YaXCPcrNqz/FstMOEh3QWY+/OME9nQTvl9WYeCwhW7AFjaR0SnngZGlp/wkR6rkI6g==
|
||||
@@ -4865,12 +4531,7 @@ acorn-walk@^8.0.0, acorn-walk@^8.0.2:
|
||||
dependencies:
|
||||
acorn "^8.11.0"
|
||||
|
||||
acorn@^8.0.4, acorn@^8.0.5, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.16.0:
|
||||
version "8.16.0"
|
||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.16.0.tgz#4ce79c89be40afe7afe8f3adb902a1f1ce9ac08a"
|
||||
integrity sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==
|
||||
|
||||
acorn@^8.1.0, acorn@^8.8.1:
|
||||
acorn@^8.0.4, acorn@^8.0.5, acorn@^8.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.16.0, acorn@^8.8.1:
|
||||
version "8.18.0"
|
||||
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.18.0.tgz#4faf01b2d6d326bfeed97aea1f52220b5f4c1940"
|
||||
integrity sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==
|
||||
@@ -4919,7 +4580,7 @@ ajv-keywords@^5.1.0:
|
||||
dependencies:
|
||||
fast-deep-equal "^3.1.3"
|
||||
|
||||
ajv@^6.12.2, ajv@^6.12.4, ajv@^6.12.5, ajv@^6.14.0:
|
||||
ajv@^6.12.2, ajv@^6.12.5, ajv@^6.14.0:
|
||||
version "6.15.0"
|
||||
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.15.0.tgz#07e982c74626167aa7a2495c53817892d7139492"
|
||||
integrity sha512-fgFx7Hfoq60ytK2c7DhnF8jIvzYgOMxfugjLOSMHjLIPgenqa7S7oaagATUq99mV6IYvN2tRmC0wnTYX6iPbMw==
|
||||
@@ -5679,7 +5340,7 @@ caching-transform@^4.0.0:
|
||||
package-hash "^4.0.0"
|
||||
write-file-atomic "^3.0.0"
|
||||
|
||||
call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2:
|
||||
call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2:
|
||||
version "1.0.2"
|
||||
resolved "https://registry.yarnpkg.com/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz#4b5428c222be985d79c3d82657479dbe0b59b2d6"
|
||||
integrity sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==
|
||||
@@ -5687,17 +5348,7 @@ call-bind-apply-helpers@^1.0.0, call-bind-apply-helpers@^1.0.1, call-bind-apply-
|
||||
es-errors "^1.3.0"
|
||||
function-bind "^1.1.2"
|
||||
|
||||
call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.7, call-bind@^1.0.8:
|
||||
version "1.0.8"
|
||||
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.8.tgz#0736a9660f537e3388826f440d5ec45f744eaa4c"
|
||||
integrity sha512-oKlSFMcMwpUg2ednkhQ454wfWiU/ul3CkJe/PEHcTKuiX6RpbehUiFMXu13HalGZxfUwCQzZG747YXBn1im9ww==
|
||||
dependencies:
|
||||
call-bind-apply-helpers "^1.0.0"
|
||||
es-define-property "^1.0.0"
|
||||
get-intrinsic "^1.2.4"
|
||||
set-function-length "^1.2.2"
|
||||
|
||||
call-bind@^1.0.9:
|
||||
call-bind@^1.0.0, call-bind@^1.0.2, call-bind@^1.0.7, call-bind@^1.0.8, call-bind@^1.0.9:
|
||||
version "1.0.9"
|
||||
resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.9.tgz#39a644700c80bc7d0ca9102fc6d1d43b2fd7eee7"
|
||||
integrity sha512-a/hy+pNsFUTR+Iz8TCJvXudKVLAnz/DyeSUo10I5yvFDQJBFU2s9uqQpoSrJlroHUKoKqzg+epxyP9lqFdzfBQ==
|
||||
@@ -5748,12 +5399,7 @@ caniuse-api@^3.0.0:
|
||||
lodash.memoize "^4.1.2"
|
||||
lodash.uniq "^4.5.0"
|
||||
|
||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001774:
|
||||
version "1.0.30001778"
|
||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001778.tgz#79a8a124e3473a20b70616497b987c30d06570a0"
|
||||
integrity sha512-PN7uxFL+ExFJO61aVmP1aIEG4i9whQd4eoSCebav62UwDyp5OHh06zN4jqKSMePVgxHifCw1QJxdRkA1Pisekg==
|
||||
|
||||
caniuse-lite@^1.0.30001809:
|
||||
caniuse-lite@^1.0.0, caniuse-lite@^1.0.30001774, caniuse-lite@^1.0.30001809:
|
||||
version "1.0.30001810"
|
||||
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz#4970b477dea3278374de9bc43aa8f5d39fc3cda2"
|
||||
integrity sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==
|
||||
@@ -6395,7 +6041,7 @@ css-declaration-sorter@^6.3.1:
|
||||
resolved "https://registry.yarnpkg.com/css-declaration-sorter/-/css-declaration-sorter-6.4.1.tgz#28beac7c20bad7f1775be3a7129d7eae409a3a71"
|
||||
integrity sha512-rtdthzxKuyq6IzqX6jEcIzQF/YqccluefyCYheovBOLhFT/drQA9zj/UbRAa9J7C0o6EG6u3E6g+vKkay7/k3g==
|
||||
|
||||
css-loader@6.7.3:
|
||||
css-loader@6.7.3, css-loader@^6.5.0:
|
||||
version "6.7.3"
|
||||
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.7.3.tgz#1e8799f3ccc5874fdd55461af51137fcc5befbcd"
|
||||
integrity sha512-qhOH1KlBMnZP8FzRO6YCH9UHXQhVMcEGLyNdb7Hv2cpcmJbW0YrddO+tG1ab5nT41KpHIYGsbeHqxB9xPu1pKQ==
|
||||
@@ -6409,20 +6055,6 @@ css-loader@6.7.3:
|
||||
postcss-value-parser "^4.2.0"
|
||||
semver "^7.3.8"
|
||||
|
||||
css-loader@^6.5.0:
|
||||
version "6.11.0"
|
||||
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.11.0.tgz#33bae3bf6363d0a7c2cf9031c96c744ff54d85ba"
|
||||
integrity sha512-CTJ+AEQJjq5NzLga5pE39qdiSV56F8ywCIsqNIRF0r7BDgWsN25aazToqAFg7ZrtA/U016xudB3ffgweORxX7g==
|
||||
dependencies:
|
||||
icss-utils "^5.1.0"
|
||||
postcss "^8.4.33"
|
||||
postcss-modules-extract-imports "^3.1.0"
|
||||
postcss-modules-local-by-default "^4.0.5"
|
||||
postcss-modules-scope "^3.2.0"
|
||||
postcss-modules-values "^4.0.0"
|
||||
postcss-value-parser "^4.2.0"
|
||||
semver "^7.5.4"
|
||||
|
||||
css-minimizer-webpack-plugin@^3.0.2:
|
||||
version "3.4.1"
|
||||
resolved "https://registry.yarnpkg.com/css-minimizer-webpack-plugin/-/css-minimizer-webpack-plugin-3.4.1.tgz#ab78f781ced9181992fe7b6e4f3422e76429878f"
|
||||
@@ -7258,15 +6890,7 @@ end-of-stream@^1.1.0:
|
||||
dependencies:
|
||||
once "^1.4.0"
|
||||
|
||||
enhanced-resolve@^5.0.0, enhanced-resolve@^5.20.0:
|
||||
version "5.20.0"
|
||||
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.20.0.tgz#323c2a70d2aa7fb4bdfd6d3c24dfc705c581295d"
|
||||
integrity sha512-/ce7+jQ1PQ6rVXwe+jKEg5hW5ciicHwIQUagZkp6IufBoY3YDgdTTY1azVs0qoRgVmvsNB+rbjLJxDAeHHtwsQ==
|
||||
dependencies:
|
||||
graceful-fs "^4.2.4"
|
||||
tapable "^2.3.0"
|
||||
|
||||
enhanced-resolve@^5.17.1:
|
||||
enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1, enhanced-resolve@^5.20.0:
|
||||
version "5.24.1"
|
||||
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.24.1.tgz#b2439adf5d31d7e4764de1f9ecf942d6cd3fc874"
|
||||
integrity sha512-7DdUaTjmNwMcH2gLr1qycesKII3BK4RLy/mdAb7x10Lq7bR4aNKHt1BR1ZALSv0rPM/hF5wYF0PhGop/rJm8vw==
|
||||
@@ -7313,7 +6937,7 @@ error-stack-parser@^2.0.6:
|
||||
dependencies:
|
||||
stackframe "^1.3.4"
|
||||
|
||||
es-abstract@^1.17.5, es-abstract@^1.23.3, es-abstract@^1.23.6, es-abstract@^1.24.2:
|
||||
es-abstract@^1.17.5, es-abstract@^1.23.2, es-abstract@^1.23.3, es-abstract@^1.23.5, es-abstract@^1.23.6, es-abstract@^1.23.9, es-abstract@^1.24.0, es-abstract@^1.24.2:
|
||||
version "1.24.2"
|
||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.24.2.tgz#2dbd38c180735ee983f77585140a2706a963ed9a"
|
||||
integrity sha512-2FpH9Q5i2RRwyEP1AylXe6nYLR5OhaJTZwmlcP0dL/+JCbgg7yyEo/sEK6HeGZRf3dFpWwThaRHVApXSkW3xeg==
|
||||
@@ -7373,66 +6997,6 @@ es-abstract@^1.17.5, es-abstract@^1.23.3, es-abstract@^1.23.6, es-abstract@^1.24
|
||||
unbox-primitive "^1.1.0"
|
||||
which-typed-array "^1.1.19"
|
||||
|
||||
es-abstract@^1.23.2, es-abstract@^1.23.5, es-abstract@^1.23.9, es-abstract@^1.24.0:
|
||||
version "1.24.1"
|
||||
resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.24.1.tgz#f0c131ed5ea1bb2411134a8dd94def09c46c7899"
|
||||
integrity sha512-zHXBLhP+QehSSbsS9Pt23Gg964240DPd6QCf8WpkqEXxQ7fhdZzYsocOr5u7apWonsS5EjZDmTF+/slGMyasvw==
|
||||
dependencies:
|
||||
array-buffer-byte-length "^1.0.2"
|
||||
arraybuffer.prototype.slice "^1.0.4"
|
||||
available-typed-arrays "^1.0.7"
|
||||
call-bind "^1.0.8"
|
||||
call-bound "^1.0.4"
|
||||
data-view-buffer "^1.0.2"
|
||||
data-view-byte-length "^1.0.2"
|
||||
data-view-byte-offset "^1.0.1"
|
||||
es-define-property "^1.0.1"
|
||||
es-errors "^1.3.0"
|
||||
es-object-atoms "^1.1.1"
|
||||
es-set-tostringtag "^2.1.0"
|
||||
es-to-primitive "^1.3.0"
|
||||
function.prototype.name "^1.1.8"
|
||||
get-intrinsic "^1.3.0"
|
||||
get-proto "^1.0.1"
|
||||
get-symbol-description "^1.1.0"
|
||||
globalthis "^1.0.4"
|
||||
gopd "^1.2.0"
|
||||
has-property-descriptors "^1.0.2"
|
||||
has-proto "^1.2.0"
|
||||
has-symbols "^1.1.0"
|
||||
hasown "^2.0.2"
|
||||
internal-slot "^1.1.0"
|
||||
is-array-buffer "^3.0.5"
|
||||
is-callable "^1.2.7"
|
||||
is-data-view "^1.0.2"
|
||||
is-negative-zero "^2.0.3"
|
||||
is-regex "^1.2.1"
|
||||
is-set "^2.0.3"
|
||||
is-shared-array-buffer "^1.0.4"
|
||||
is-string "^1.1.1"
|
||||
is-typed-array "^1.1.15"
|
||||
is-weakref "^1.1.1"
|
||||
math-intrinsics "^1.1.0"
|
||||
object-inspect "^1.13.4"
|
||||
object-keys "^1.1.1"
|
||||
object.assign "^4.1.7"
|
||||
own-keys "^1.0.1"
|
||||
regexp.prototype.flags "^1.5.4"
|
||||
safe-array-concat "^1.1.3"
|
||||
safe-push-apply "^1.0.0"
|
||||
safe-regex-test "^1.1.0"
|
||||
set-proto "^1.0.0"
|
||||
stop-iteration-iterator "^1.1.0"
|
||||
string.prototype.trim "^1.2.10"
|
||||
string.prototype.trimend "^1.0.9"
|
||||
string.prototype.trimstart "^1.0.8"
|
||||
typed-array-buffer "^1.0.3"
|
||||
typed-array-byte-length "^1.0.3"
|
||||
typed-array-byte-offset "^1.0.4"
|
||||
typed-array-length "^1.0.7"
|
||||
unbox-primitive "^1.1.0"
|
||||
which-typed-array "^1.1.19"
|
||||
|
||||
es-define-property@^1.0.0, es-define-property@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.1.tgz#983eb2f9a6724e9303f61addf011c72e09e0b0fa"
|
||||
@@ -8580,14 +8144,7 @@ hasha@^5.0.0:
|
||||
is-stream "^2.0.0"
|
||||
type-fest "^0.8.0"
|
||||
|
||||
hasown@^2.0.2:
|
||||
version "2.0.2"
|
||||
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003"
|
||||
integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==
|
||||
dependencies:
|
||||
function-bind "^1.1.2"
|
||||
|
||||
hasown@^2.0.3, hasown@^2.0.4:
|
||||
hasown@^2.0.2, hasown@^2.0.3, hasown@^2.0.4:
|
||||
version "2.0.4"
|
||||
resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.4.tgz#8c62d8cb90beb2aad5d0a5b67581ad9854c3f003"
|
||||
integrity sha512-T2UbfbBEF32wiepXIsMlTW9+dDYC6wMh/t/vYA4tuOMKqWz/n3vr1NFSxQiyP+zk2mXsoMA/i/7qV6LKut1t1A==
|
||||
@@ -9001,14 +8558,7 @@ is-callable@^1.2.7:
|
||||
resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055"
|
||||
integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==
|
||||
|
||||
is-core-module@^2.13.0, is-core-module@^2.16.1:
|
||||
version "2.16.1"
|
||||
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.1.tgz#2a98801a849f43e2add644fbb6bc6229b19a4ef4"
|
||||
integrity sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==
|
||||
dependencies:
|
||||
hasown "^2.0.2"
|
||||
|
||||
is-core-module@^2.16.2:
|
||||
is-core-module@^2.13.0, is-core-module@^2.16.1, is-core-module@^2.16.2:
|
||||
version "2.16.2"
|
||||
resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.2.tgz#3e07450a8080ebce3fbf0cac494f4d2ab324e082"
|
||||
integrity sha512-evOr8xfXKxE6qSR0hSXL2r3sd7ALj8+7jQEUvPYcm5sgZFdJ+AYzT6yNmJenvIYQBgIGwfwz08sL8zoL7yq2BA==
|
||||
@@ -11112,16 +10662,11 @@ pako@~1.0.2, pako@~1.0.5:
|
||||
resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf"
|
||||
integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==
|
||||
|
||||
papaparse@5.3.0:
|
||||
papaparse@5.3.0, papaparse@^5.2.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/papaparse/-/papaparse-5.3.0.tgz#ab1702feb96e79ab4309652f36db9536563ad05a"
|
||||
integrity sha512-Lb7jN/4bTpiuGPrYy4tkKoUS8sTki8zacB5ke1p5zolhcSE4TlWgrlsxjrDTbG/dFVh07ck7X36hUf/b5V68pg==
|
||||
|
||||
papaparse@^5.2.0:
|
||||
version "5.5.3"
|
||||
resolved "https://registry.yarnpkg.com/papaparse/-/papaparse-5.5.3.tgz#07f8994dec516c6dab266e952bed68e1de59fa9a"
|
||||
integrity sha512-5QvjGxYVjxO59MGU2lHVYpRWBBtKHnlIAcSe1uNFCkkptUh63NFRj0FJQm7nR67puEruUci/ZkjmEFrjCAyP4A==
|
||||
|
||||
param-case@^3.0.4:
|
||||
version "3.0.4"
|
||||
resolved "https://registry.yarnpkg.com/param-case/-/param-case-3.0.4.tgz#7d17fe4aa12bde34d4a77d91acfb6219caad01c5"
|
||||
@@ -11441,12 +10986,12 @@ postcss-minify-selectors@^5.2.1:
|
||||
dependencies:
|
||||
postcss-selector-parser "^6.0.5"
|
||||
|
||||
postcss-modules-extract-imports@^3.0.0, postcss-modules-extract-imports@^3.1.0:
|
||||
postcss-modules-extract-imports@^3.0.0:
|
||||
version "3.1.0"
|
||||
resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz#b4497cb85a9c0c4b5aabeb759bb25e8d89f15002"
|
||||
integrity sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q==
|
||||
|
||||
postcss-modules-local-by-default@^4.0.0, postcss-modules-local-by-default@^4.0.5:
|
||||
postcss-modules-local-by-default@^4.0.0:
|
||||
version "4.2.0"
|
||||
resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.2.0.tgz#d150f43837831dae25e4085596e84f6f5d6ec368"
|
||||
integrity sha512-5kcJm/zk+GJDSfw+V/42fJ5fhjL5YbFDl8nVdXkJPLLW+Vf9mTD5Xe0wqIaDnLuL2U6cDNpTr+UQ+v2HWIBhzw==
|
||||
@@ -11455,7 +11000,7 @@ postcss-modules-local-by-default@^4.0.0, postcss-modules-local-by-default@^4.0.5
|
||||
postcss-selector-parser "^7.0.0"
|
||||
postcss-value-parser "^4.1.0"
|
||||
|
||||
postcss-modules-scope@^3.0.0, postcss-modules-scope@^3.2.0:
|
||||
postcss-modules-scope@^3.0.0:
|
||||
version "3.2.1"
|
||||
resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.2.1.tgz#1bbccddcb398f1d7a511e0a2d1d047718af4078c"
|
||||
integrity sha512-m9jZstCVaqGjTAuny8MdgE88scJnCiQSlSrOWcTQgM2t32UBe+MUmFSO5t7VMSfAf/FJKImAxBav8ooCHJXCJA==
|
||||
@@ -11583,7 +11128,7 @@ postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0:
|
||||
resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514"
|
||||
integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==
|
||||
|
||||
postcss@8.5.26, postcss@^7.0.36, postcss@^8.2.6, postcss@^8.3.5, postcss@^8.4.19, postcss@^8.4.33, postcss@^8.5.19, postcss@^8.5.8:
|
||||
postcss@8.5.26, postcss@^7.0.36, postcss@^8.2.6, postcss@^8.3.5, postcss@^8.4.19, postcss@^8.5.19:
|
||||
version "8.5.26"
|
||||
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.26.tgz#6e75135780c7e10df3433bf2266c552d35c8c620"
|
||||
integrity sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==
|
||||
@@ -12205,7 +11750,7 @@ saxes@^6.0.0:
|
||||
dependencies:
|
||||
xmlchars "^2.2.0"
|
||||
|
||||
schema-utils@2.7.0:
|
||||
schema-utils@2.7.0, schema-utils@^2.0.0, schema-utils@^2.6.5, schema-utils@^2.6.6:
|
||||
version "2.7.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7"
|
||||
integrity sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==
|
||||
@@ -12214,15 +11759,6 @@ schema-utils@2.7.0:
|
||||
ajv "^6.12.2"
|
||||
ajv-keywords "^3.4.1"
|
||||
|
||||
schema-utils@^2.0.0, schema-utils@^2.6.5, schema-utils@^2.6.6:
|
||||
version "2.7.1"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.1.tgz#1ca4f32d1b24c590c203b8e7a50bf0ea4cd394d7"
|
||||
integrity sha512-SHiNtMOUGWBQJwzISiVYKu82GiV4QYGePp3odlY1tuKO7gPtphAT5R/py0fA6xtbgLL/RvtJZnU9b8s0F1q0Xg==
|
||||
dependencies:
|
||||
"@types/json-schema" "^7.0.5"
|
||||
ajv "^6.12.4"
|
||||
ajv-keywords "^3.5.2"
|
||||
|
||||
schema-utils@^3.0.0, schema-utils@^3.1.1:
|
||||
version "3.3.0"
|
||||
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe"
|
||||
@@ -12286,10 +11822,10 @@ send@~0.19.0, send@~0.19.1:
|
||||
range-parser "~1.2.1"
|
||||
statuses "~2.0.2"
|
||||
|
||||
serialize-javascript@7.0.5, serialize-javascript@^6.0.0:
|
||||
version "7.0.5"
|
||||
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-7.0.5.tgz#c798cc0552ffbb08981914a42a8756e339d0d5b1"
|
||||
integrity sha512-F4LcB0UqUl1zErq+1nYEEzSHJnIwb3AF2XWB94b+afhrekOUijwooAYqFyRbjYkm2PAKBabx6oYv/xDxNi8IBw==
|
||||
serialize-javascript@7.1.3, serialize-javascript@^6.0.0:
|
||||
version "7.1.3"
|
||||
resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-7.1.3.tgz#c8f3a5355d5c52d76f4d61389172747a71f22ef6"
|
||||
integrity sha512-kYEnegpAxWFjUw3dSYdSM9zVlTrsxDbsSkq/qd3B7VanqyJ+JdDy6qVyuqVGBhSfuD/rLZQEKuXsO5KZFCrVYQ==
|
||||
|
||||
serve-index@^1.9.1:
|
||||
version "1.9.2"
|
||||
@@ -12405,14 +11941,6 @@ shell-quote@^1.8.4:
|
||||
resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.12.0.tgz#e98fdfd2e921d8a58ae2820f4fc0f75c39f09675"
|
||||
integrity sha512-PcByqNyT/38F2kDNi006HAMRJaULuBzq/FOsw3qdZvX/GA9W/jamDaRskgHjubHiftXK5sIFxLNkvrXUwcof6Q==
|
||||
|
||||
side-channel-list@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.0.tgz#10cb5984263115d3b7a0e336591e290a830af8ad"
|
||||
integrity sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==
|
||||
dependencies:
|
||||
es-errors "^1.3.0"
|
||||
object-inspect "^1.13.3"
|
||||
|
||||
side-channel-list@^1.0.1:
|
||||
version "1.0.1"
|
||||
resolved "https://registry.yarnpkg.com/side-channel-list/-/side-channel-list-1.0.1.tgz#c2e0b5a14a540aebee3bbc6c3f8666cc9b509127"
|
||||
@@ -12442,18 +11970,7 @@ side-channel-weakmap@^1.0.2:
|
||||
object-inspect "^1.13.3"
|
||||
side-channel-map "^1.0.1"
|
||||
|
||||
side-channel@^1.1.0:
|
||||
version "1.1.0"
|
||||
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.0.tgz#c3fcff9c4da932784873335ec9765fa94ff66bc9"
|
||||
integrity sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==
|
||||
dependencies:
|
||||
es-errors "^1.3.0"
|
||||
object-inspect "^1.13.3"
|
||||
side-channel-list "^1.0.0"
|
||||
side-channel-map "^1.0.1"
|
||||
side-channel-weakmap "^1.0.2"
|
||||
|
||||
side-channel@^1.1.1:
|
||||
side-channel@^1.1.0, side-channel@^1.1.1:
|
||||
version "1.1.1"
|
||||
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.1.tgz#ea02c62e05dc4bea67d4442f0fb71ee192f8e0ab"
|
||||
integrity sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==
|
||||
@@ -12928,12 +12445,7 @@ tapable@^1.0.0:
|
||||
resolved "https://registry.yarnpkg.com/tapable/-/tapable-1.1.3.tgz#a1fccc06b58db61fd7a45da2da44f5f3a3e67ba2"
|
||||
integrity sha512-4WK/bYZmj8xLr+HUCODHGF1ZFzsYffasLUgEiMBY4fgtltdO6B4WJtlSbPaDTLpYTcGVwM2qLnFTICEcNxs3kA==
|
||||
|
||||
tapable@^2.0.0, tapable@^2.2.1, tapable@^2.3.0:
|
||||
version "2.3.0"
|
||||
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.0.tgz#7e3ea6d5ca31ba8e078b560f0d83ce9a14aa8be6"
|
||||
integrity sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==
|
||||
|
||||
tapable@^2.3.3:
|
||||
tapable@^2.0.0, tapable@^2.2.1, tapable@^2.3.0, tapable@^2.3.3:
|
||||
version "2.3.3"
|
||||
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.3.tgz#5da7c9992c46038221267985ab28421a8879f160"
|
||||
integrity sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==
|
||||
|
||||
Reference in new issue
Block a user