Compare commits

..
Author SHA1 Message Date
Marcelo Fukumoto e66b61d0d1 feat: add the Kube-OVN VPC Egress Gateways page (#1263)
* feat: add the Kube-OVN VPC Egress Gateways page

List, create and edit VpcEgressGateway resources under Overlay Networks >
NAT & Internet, right below the NAT gateways, which are now labeled NAT
Gateways. The form covers the VPC, replicas, internal and external
subnets, SNAT policies, internal and external IPs, BFD and the bandwidth
limit, and keeps the fields it does not show.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* feat: add the VPC BFD port and link the Egress Gateway BFD warning to it

The VPC form gets a BFD Port tab with the enabled switch and its IP,
which an Egress Gateway with BFD needs. The gateway form now checks the
VPC's spec.bfdPort instead of a spec.bfd field that VPCs don't have, and
its warning links to the VPC. Bandwidth also takes quantities such as
1Gi, and a gateway that only uses selectors no longer needs a policy.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* feat: check the Egress Gateway and BFD port against what Kube-OVN accepts

Kube-OVN runs as a secondary CNI in Harvester, so an Egress Gateway's
internal subnet has to sit on a virtual machine network and its external
subnet on a network attachment; the subnet lists now offer only those.
The internal and external IPs must be unique and inside their subnet,
other than its gateway, and the two subnets must differ. Selectors don't
work in that mode, so a gateway needs a policy again. Policies set with
IP blocks show them, and BFD intervals hidden while BFD is off fall back
to their defaults.

Save stays disabled while either form is invalid, each field shows its
own error, and a tab with errors is marked. The VPC's BFD port IP can't
be in one of its subnets, its tab warns when it is turned off while
gateways of the VPC use BFD, and the gateway's BFD warning opens the
VPC's BFD Port tab in a new tab.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: show why Save is disabled on the Egress Gateway and VPC forms

Every field that can block Save shows its own message once touched:
the name, the VPC and both subnets, which have none when left empty.
When the chosen VPC has no subnet on a virtual machine network, the
Internal Subnet placeholder says so.

A subnet can only be in one policy: the gateway leaves a source out of
SNAT when any policy has SNAT off for it, so the same subnet in a second
policy would silently ignore one of them. Enable SNAT explains what
turning it off needs.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: keep one Egress Gateway policy for each SNAT setting

Kube-OVN merges the sources of every policy with the same SNAT setting,
so a second policy with SNAT on (or off) only adds to the first one.
The form now flags it on the second policy, Add Policy adds the setting
that isn't used yet and goes away once both exist, and the Policies tab
says a gateway has at most two policies. Policies with IP blocks are
left out of the check, since the form can't move those.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* refactor: ask for the Egress Gateway subnets with and without SNAT

Kube-OVN puts the sources of every policy into two sets, with SNAT and
without, and leaves a source out of SNAT when any policy has SNAT off
for it. A list of policies with a checkbox each let the form build
policies that only repeated or silently overrode each other, so the
Policies tab now asks for those two sets: Subnets with SNAT and Subnets
without SNAT, a subnet in one list only and at least one subnet in all.
Saving writes one policy for each list that has subnets.

Editing reads existing policies the way Kube-OVN applies them, so a
subnet that was in both lands in Subnets without SNAT, and IP blocks
set outside the form are kept and shown read-only.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* refactor: go back to the Egress Gateway policy list

The VpcEgressGateway CRD and the issue describe policies as a list,
each with snat and subnets, and Kube-OVN accepts any number of them:
policies with the same SNAT setting just work together. The two subnet
lists hid that shape and rewrote existing policies, and they couldn't
mark "one of these two" as required. This puts back the policy list,
where each policy needs a subnet and a subnet can be in one policy
only, which is the one case that changes what the gateway does. The
Policies tab now says how policies work together.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* refactor: ask for the Egress Gateway subnets with and without SNAT again

Kube-OVN only uses which subnets have SNAT and which don't, so two
lists, Subnets with SNAT and Subnets without SNAT, hold the same data
as the policy list, are clearer to fill in, and can't build a policy
that repeats or overrides another. Saving writes one policy for each
list that has subnets. Neither list is marked required: the Policies
tab says one subnet in either list is needed, and both lists show that
message once touched while they're empty.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: show the Egress Gateway policy rule once for both subnet lists

One subnet in either list is enough, but a warning on each list read as
if both lists were required. The lists no longer show a warning; one
message under them says to select at least one subnet in either list
while both are empty, next to the tab mark and the disabled Save.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: say why the Egress Gateway subnet lists are empty

The policy lists only offer subnets of the VPC chosen on the Basic tab,
so before a VPC is chosen they were empty with no reason given. They
now say to select a VPC on the Basic tab first, or that the chosen VPC
has no subnets.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: make the Egress Gateway fields that need a VPC say so

Internal Subnet and both policy lists only offer subnets of the chosen
VPC, so they're disabled until a VPC is chosen and say to select one
first. The policy lists keep their dropdown attached to the field, so
it follows the field when a chip is removed instead of leaving a gap.
The BFD intervals are labeled Receive Interval and Transmit Interval,
which fit next to their unit, with a tooltip each.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: keep the external subnet out of Egress Gateway policies and check usable IPs

Kube-OVN reroutes a policy's sources to the gateway, so the gateway's
own external subnet as a source would send its outbound traffic back
into it; the policy lists no longer offer it and the form flags it.
Static IPs must also be usable addresses: Kube-OVN assigns from the
network address + 1 to the broadcast address - 1, so those two are
rejected along with the gateway.

The policy rule is an error banner like the IP count rule, the BFD
multiplier has its own message, the IP Addresses and Bandwidth
instructions are hidden on the read-only page, and the VPC's warning
about gateways that need its BFD port reads right for one gateway.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* chore: declare ipaddr.js, which the subnet model imports

It was only installed as a dependency of webpack-dev-server.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* feat: support PrimaryCNI Egress Gateways

Kube-OVN v1.17 can send a gateway's traffic out through the pod network
when it isn't the primary CNI, as on Harvester. Such a gateway takes no
external subnet, external IPs or bandwidth, so the form couldn't save one.
The Basic tab now picks the external network, locked after creation, and
hides the fields PrimaryCNI doesn't take.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

* fix: offer Primary CNI only when the cluster's CRD has it

Kube-OVN v1.16, in Harvester v1.10.0-rc1 and older, has no
externalNetworkMode and requires an external subnet, so a Primary CNI
gateway was rejected there. The form reads the CRD's schema definition
and only shows the External Network choice when the field exists.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-19 21:05:20 +01:00
Po Han Huang b3961a3483 feat: add persistent VM state storage guidance (#1227)
When Longhorn installation is deferred, vmstate-persistence StorageClass is not created. Add prerequisite guidance in the VM form:

- Disable persistent TPM and EFI options when vmstate-persistence is unavailable
- Create mode: clear selections and show banner explaining how to add
  Longhorn disk or create vmstate-persistence SC manually
- Edit mode: preserve existing values, keep options disabled, show banner
- Hide banner when vmstate-persistence exists or in View mode

Signed-off-by: pohanhuang <pohan.huang@suse.com>
2026-11-18 08:24:39 +08:00
Po Han Huang aa5a501c29 ui: add Upgrade Storage Class selector for v1.10+ upgrade flows (#1249)
Add a StorageClass selector to online and air-gapped upgrade pages when
the repositoryStorageClass feature is enabled (v1.10+).

- Online: stores selection in harvesterhci.io/upgrade-storage-class annotation
- Air-gapped: stores selection in image spec.targetStorageClassName
- Selector locked while uploaded image exists; unlocked on switch to URL
- Hidden on pre-v1.10 clusters

Signed-off-by: pohanhuang <pohan.huang@suse.com>
2026-11-17 22:34:32 +08:00
Tim LiouandClaude Opus 5.5 6a20578424 feat: add shutdownVMOnMigrationFailure to the upgrade-config setting (#1218)
* feat: add shutdownVMOnMigrationFailure to the upgrade-config setting

Add a control for the new field, which decides whether a VM that fails
to live migrate during the node pre-drain phase is shut down so that the
upgrade can continue. The field is only shown and defaulted on v1.10.0
or later clusters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tim Liou <tim.liou@suse.com>

* fix: name the upgrade-config radio groups for screen readers

Pass the labels of the Restore VM and Shut Down VM on Migration Failure
radio groups as their aria-label, so that screen readers can tell them
apart. Select the value through the radio group in the tests, so that
they catch a group that isn't bound to its field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tim Liou <tim.liou@suse.com>

---------

Signed-off-by: Tim Liou <tim.liou@suse.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 10:49:08 +08:00
26 changed files with 3227 additions and 71 deletions
+2 -1
View File
@@ -16,6 +16,7 @@
"cache-loader": "^4.1.0",
"color": "4.2.3",
"ip": "2.0.1",
"ipaddr.js": "2.4.0",
"@xterm/xterm": "6.0.0",
"@xterm/addon-fit": "0.11.0",
"@xterm/addon-search": "0.16.0",
@@ -47,7 +48,7 @@
"nth-check": "2.1.1",
"postcss": "8.5.26",
"postcss-selector-parser": "7.1.6",
"qs": "6.16.1",
"qs": "6.16.0",
"roarr": "7.21.7",
"semver": "7.5.4",
"serialize-javascript": "7.0.5",
+38 -5
View File
@@ -6,26 +6,30 @@ import ModalWithCard from '@shell/components/ModalWithCard';
import LabeledSelect from '@shell/components/form/LabeledSelect';
import { Banner } from '@components/Banner';
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
import { STORAGE_CLASS } from '@shell/config/types';
import { HCI } from '../types';
import UpgradeInfo from './UpgradeInfo';
import UpgradeRepositoryStorageClass, { getUpgradeRepositoryStorageClassDefault } from './UpgradeRepositoryStorageClass';
export default {
name: 'HarvesterUpgrade',
components: {
Checkbox, ModalWithCard, LabeledSelect, Banner, UpgradeInfo
Checkbox, ModalWithCard, LabeledSelect, Banner, UpgradeInfo, UpgradeRepositoryStorageClass
},
async fetch() {
const inStore = this.$store.getters['currentProduct'].inStore;
const res = await allHash({
upgradeVersion: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.SETTING }),
versions: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VERSION }),
upgrade: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.UPGRADE }),
upgradeVersion: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.SETTING }),
versions: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VERSION }),
upgrade: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.UPGRADE }),
storageClasses: this.$store.dispatch(`${ inStore }/findAll`, { type: STORAGE_CLASS }),
});
this.upgrade = res.upgrade;
this.storageClassName = getUpgradeRepositoryStorageClassDefault(res.storageClasses);
},
data() {
@@ -35,6 +39,7 @@ export default {
errors: '',
selectMode: true,
version: '',
storageClassName: '',
enableLogging: true,
skipSingleReplicaDetachedVol: false,
readyReleaseNote: false,
@@ -59,6 +64,10 @@ export default {
return this.versionOptions.length > 0 && !this.isUpgradeInProgress;
},
canSubmitUpgrade() {
return this.readyReleaseNote && (!this.repositoryStorageClassEnabled || !!this.storageClassName);
},
versionOptions() {
const versions = this.$store.getters['harvester/all'](HCI.VERSION) || [];
@@ -75,6 +84,16 @@ export default {
return this.$store.getters['harvester/schemaFor'](HCI.UPGRADE_LOG);
},
storageClasses() {
const inStore = this.$store.getters['currentProduct'].inStore;
return this.$store.getters[`${ inStore }/all`](STORAGE_CLASS) || [];
},
repositoryStorageClassEnabled() {
return this.$store.getters['harvester-common/getFeatureEnabled']('repositoryStorageClass');
},
skipSingleReplicaDetachedVolFeatureEnabled() {
return this.$store.getters['harvester-common/getFeatureEnabled']('skipSingleReplicaDetachedVol');
},
@@ -124,6 +143,13 @@ export default {
upgradeValue.spec.logEnabled = this.enableLogging;
}
if (this.repositoryStorageClassEnabled && this.storageClassName) {
upgradeValue.metadata.annotations = {
...upgradeValue.metadata.annotations,
[HCI_ANNOTATIONS.UPGRADE_STORAGE_CLASS]: this.storageClassName
};
}
const proxyResource = await this.$store.dispatch('harvester/create', upgradeValue);
try {
@@ -204,6 +230,13 @@ export default {
:clearable="true"
/>
<UpgradeRepositoryStorageClass
v-if="repositoryStorageClassEnabled"
v-model:value="storageClassName"
class="mb-10"
:storage-classes="storageClasses"
/>
<div
v-if="canEnableLogging"
class="mb-5"
@@ -263,7 +296,7 @@ export default {
<t k="generic.close" />
</button>
<button
:disabled="!readyReleaseNote"
:disabled="!canSubmitUpgrade"
class="btn role-tertiary bg-primary"
@click.prevent="handleUpgrade"
>
@@ -0,0 +1,83 @@
<script>
import LabeledSelect from '@shell/components/form/LabeledSelect';
import { LVM_DRIVER } from '../models/harvester/storage.k8s.io.storageclass';
import { isInternalStorageClass } from '../utils/storage-class';
export function getUpgradeRepositoryStorageClassDefault(storageClasses) {
return storageClasses.find((storageClass) => storageClass.isDefault &&
!storageClass.parameters?.backingImage &&
storageClass.provisioner !== LVM_DRIVER &&
!isInternalStorageClass(storageClass.name))?.name || '';
}
export default {
name: 'UpgradeRepositoryStorageClass',
components: { LabeledSelect },
props: {
value: {
type: String,
default: '',
},
storageClasses: {
type: Array,
default: () => [],
},
disabled: {
type: Boolean,
default: false,
},
},
emits: ['update:value'],
computed: {
storageClassOptions() {
const t = this.$store.getters['i18n/t'];
return this.storageClasses
.filter((storageClass) => !storageClass.parameters?.backingImage && storageClass.provisioner !== LVM_DRIVER)
.map((storageClass) => {
let label = storageClass.isDefault ? `${ storageClass.name } (${ t('generic.default') })` : storageClass.name;
let disabled = false;
if (isInternalStorageClass(storageClass.name)) {
label += ` (${ t('harvester.storage.internal.label') })`;
disabled = true;
}
return {
label,
value: storageClass.name,
disabled
};
});
},
},
};
</script>
<template>
<LabeledSelect
:value="value"
:label="t('harvester.upgradePage.repositoryStorageClass')"
:tooltip="t('harvester.upgradePage.repositoryStorageClassTooltip')"
:placeholder="t('harvester.upgradePage.repositoryStorageClassPlaceholder')"
:options="storageClassOptions"
:disabled="disabled"
required
@update:value="$emit('update:value', $event)"
>
<template #no-options="{ searching }">
<span
v-if="!searching"
class="text-muted"
>
{{ t('harvester.upgradePage.repositoryStorageClassNoOptions', null, true) }}
</span>
</template>
</LabeledSelect>
</template>
@@ -0,0 +1,86 @@
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
import HarvesterUpgrade from '../HarvesterUpgrade.vue';
const save = jest.fn().mockResolvedValue();
const upgrade = { notifyGeneratedName: jest.fn(), save };
function createForm(storageClassName = '', repositoryStorageClassEnabled = true) {
return {
version: 'v1.10.0',
storageClassName,
repositoryStorageClassEnabled,
canEnableLogging: false,
enableLogging: true,
skipSingleReplicaDetachedVolFeatureEnabled: false,
skipSingleReplicaDetachedVol: false,
cancel: jest.fn(),
errors: '',
$store: { dispatch: jest.fn().mockResolvedValue(upgrade) }
};
}
describe('component: HarvesterUpgrade', () => {
it('uses the shared Upgrade Repository StorageClass selector', () => {
expect(HarvesterUpgrade.components.UpgradeRepositoryStorageClass).toBeDefined();
});
it('leaves the default empty when it is unavailable for upgrade repositories', async() => {
const form = {
upgrade: [],
storageClassName: 'previous',
$store: {
getters: { currentProduct: { inStore: 'harvester' } },
dispatch: jest.fn()
.mockResolvedValueOnce([])
.mockResolvedValueOnce([])
.mockResolvedValueOnce([])
.mockResolvedValueOnce([
{
name: 'lvm-local', isDefault: true, provisioner: 'lvm.driver.harvesterhci.io'
},
{ name: 'fast' }
])
}
};
await HarvesterUpgrade.fetch.call(form);
expect(form.storageClassName).toBe('');
});
it('blocks the upgrade when no StorageClass is selected', () => {
const canSubmitUpgrade = HarvesterUpgrade.computed.canSubmitUpgrade;
expect(canSubmitUpgrade.call({
readyReleaseNote: true,
repositoryStorageClassEnabled: true,
storageClassName: ''
})).toBe(false);
});
it('saves the selected StorageClass as an Upgrade annotation', async() => {
const form = createForm('fast');
await HarvesterUpgrade.methods.handleUpgrade.call(form);
expect(form.$store.dispatch).toHaveBeenCalledWith('harvester/create', expect.objectContaining({
metadata: expect.objectContaining({ annotations: { [HCI_ANNOTATIONS.UPGRADE_STORAGE_CLASS]: 'fast' } }),
spec: { version: 'v1.10.0' }
}));
});
it('omits the repository StorageClass when the feature is disabled', async() => {
const form = createForm('fast', false);
await HarvesterUpgrade.methods.handleUpgrade.call(form);
expect(form.$store.dispatch).toHaveBeenCalledWith('harvester/create', {
type: 'harvesterhci.io.upgrade',
metadata: {
generateName: 'hvst-upgrade-',
namespace: 'harvester-system'
},
spec: { version: 'v1.10.0' }
});
});
});
@@ -0,0 +1,40 @@
import UpgradeRepositoryStorageClass, { getUpgradeRepositoryStorageClassDefault } from '../UpgradeRepositoryStorageClass.vue';
const storageClasses = [
{ name: 'fast', isDefault: true },
{ name: 'image-cache', parameters: { backingImage: 'image' } },
{ name: 'lvm-local', provisioner: 'lvm.driver.harvesterhci.io' },
{ name: 'longhorn-static' },
{ name: 'slow' }
];
describe('component: UpgradeRepositoryStorageClass', () => {
it('omits backing-image and LVM StorageClasses while disabling internal classes', () => {
const form = {
storageClasses,
$store: { getters: { 'i18n/t': (key) => key } }
};
expect(UpgradeRepositoryStorageClass.computed.storageClassOptions.call(form)).toStrictEqual([
{
label: 'fast (generic.default)', value: 'fast', disabled: false
},
{
label: 'longhorn-static (harvester.storage.internal.label)', value: 'longhorn-static', disabled: true
},
{
label: 'slow', value: 'slow', disabled: false
},
]);
});
it('does not use an unavailable StorageClass as the default', () => {
expect(getUpgradeRepositoryStorageClassDefault([
{
name: 'lvm-local', isDefault: true, provisioner: 'lvm.driver.harvesterhci.io'
},
{ name: 'longhorn-static' },
{ name: 'fast' }
])).toBe('');
});
});
@@ -0,0 +1,79 @@
import { shallowMount } from '@vue/test-utils';
import UpgradeConfig from '@pkg/harvester/components/settings/upgrade-config.vue';
const DEFAULT = JSON.stringify({
imagePreloadOption: { strategy: { type: 'sequential' } },
nodeUpgradeOption: { strategy: { mode: 'auto' } },
restoreVM: false,
});
const mountConfig = (config, featureEnabled) => shallowMount(UpgradeConfig, {
props: {
mode: 'edit',
value: { default: DEFAULT, value: config ? JSON.stringify(config) : '' },
},
global: {
mocks: {
$store: {
dispatch: jest.fn(),
getters: {
currentProduct: { inStore: 'harvester' },
'harvester/all': () => [],
'i18n/t': (key) => key,
'harvester-common/getFeatureEnabled': (name) => name === 'shutdownVMOnMigrationFailure' && featureEnabled,
},
},
},
},
});
const savedValue = (wrapper) => JSON.parse(wrapper.props('value').value);
describe('component: upgrade-config', () => {
it('should default shutdownVMOnMigrationFailure to false when the field is missing', () => {
const wrapper = mountConfig(undefined, true);
expect(savedValue(wrapper).shutdownVMOnMigrationFailure).toBe(false);
expect(wrapper.findComponent('[name="shutdownVMOnMigrationFailure"]').exists()).toBe(true);
});
it('should keep an enabled shutdownVMOnMigrationFailure', () => {
const wrapper = mountConfig({ shutdownVMOnMigrationFailure: true }, true);
expect(savedValue(wrapper).shutdownVMOnMigrationFailure).toBe(true);
});
it('should save the value selected in its radio group', async() => {
const wrapper = mountConfig(undefined, true);
await wrapper.findComponent('[name="shutdownVMOnMigrationFailure"]').vm.$emit('update:value', true);
expect(savedValue(wrapper).shutdownVMOnMigrationFailure).toBe(true);
expect(savedValue(wrapper).restoreVM).toBe(false);
await wrapper.findComponent('[name="restoreVM"]').vm.$emit('update:value', true);
expect(savedValue(wrapper).shutdownVMOnMigrationFailure).toBe(true);
expect(savedValue(wrapper).restoreVM).toBe(true);
});
it('should name the radio groups for screen readers', () => {
const wrapper = mountConfig(undefined, true);
expect(wrapper.findComponent('[name="restoreVM"]').attributes('aria-label')).toBe('harvester.setting.upgrade.restoreVM');
expect(wrapper.findComponent('[name="shutdownVMOnMigrationFailure"]').attributes('aria-label')).toBe('harvester.setting.upgrade.shutdownVMOnMigrationFailure');
});
it('should hide the control and not add the field on clusters without the feature', () => {
const wrapper = mountConfig(undefined, false);
expect(savedValue(wrapper)).not.toHaveProperty('shutdownVMOnMigrationFailure');
expect(wrapper.findComponent('[name="shutdownVMOnMigrationFailure"]').exists()).toBe(false);
});
it('should keep a field set outside the UI on clusters without the feature', () => {
const wrapper = mountConfig({ shutdownVMOnMigrationFailure: true }, false);
expect(savedValue(wrapper).shutdownVMOnMigrationFailure).toBe(true);
});
});
@@ -74,6 +74,10 @@ export default {
},
methods: {
// A method, as normalizeValue also runs in data(), before computed properties are available
shutdownVMOnMigrationFailureEnabled() {
return this.$store.getters['harvester-common/getFeatureEnabled']('shutdownVMOnMigrationFailure');
},
normalizeValue(obj) {
// handle nodeUpgradeOption.strategy
if (obj?.nodeUpgradeOption?.strategy?.mode === 'auto') {
@@ -107,6 +111,9 @@ export default {
if (typeof obj.restoreVM !== 'boolean') {
obj.restoreVM = false;
}
if (this.shutdownVMOnMigrationFailureEnabled() && typeof obj.shutdownVMOnMigrationFailure !== 'boolean') {
obj.shutdownVMOnMigrationFailure = false;
}
return obj;
},
@@ -179,10 +186,24 @@ export default {
v-model:value="parseDefaultValue.restoreVM"
class="mb-20"
name="restoreVM"
:aria-label="t('harvester.setting.upgrade.restoreVM')"
:options="[true, false]"
:labels="[t('generic.enabled'), t('generic.disabled')]"
@update:value="update"
/>
<div v-if="shutdownVMOnMigrationFailureEnabled()">
<label class="mb-5"><b>{{ t('harvester.setting.upgrade.shutdownVMOnMigrationFailure') }}</b></label>
<RadioGroup
v-model:value="parseDefaultValue.shutdownVMOnMigrationFailure"
class="mb-20"
name="shutdownVMOnMigrationFailure"
:aria-label="t('harvester.setting.upgrade.shutdownVMOnMigrationFailure')"
:mode="mode"
:options="[true, false]"
:labels="[t('generic.enabled'), t('generic.disabled')]"
@update:value="update"
/>
</div>
<div v-if="resumeUpgradePausedNodeEnabled">
<label class="mb-5"><b>{{ t('harvester.setting.upgrade.nodeUpgradeOption') }}</b></label>
<LabeledSelect
+2
View File
@@ -86,6 +86,8 @@ const FEATURE_FLAGS = {
'maintenanceModeConditions',
'maintenanceModeDrainTimeoutSetting',
'componentHealth',
'repositoryStorageClass',
'shutdownVMOnMigrationFailure',
],
};
+47 -1
View File
@@ -662,7 +662,7 @@ export function init($plugin, store) {
);
basicType(
[HCI.VPC_NAT_GATEWAY],
[HCI.VPC_NAT_GATEWAY, HCI.VPC_EGRESS_GATEWAY],
GATEWAYS_GROUP
);
@@ -853,6 +853,52 @@ export function init($plugin, store) {
ifHaveType: HCI.VPC_NAT_GATEWAY,
});
configureType(HCI.VPC_EGRESS_GATEWAY, { hiddenNamespaceGroupButton: true, canYaml: false });
headers(HCI.VPC_EGRESS_GATEWAY, [
STATE,
NAME_COL,
NAMESPACE_COL,
{
name: 'vpc',
labelKey: 'harvester.egressGateway.vpc.label',
value: 'spec.vpc',
sort: ['spec.vpc'],
},
{
name: 'replicas',
labelKey: 'harvester.egressGateway.replicas.label',
value: 'spec.replicas',
sort: ['spec.replicas'],
},
{
name: 'externalSubnet',
labelKey: 'harvester.egressGateway.externalSubnet.label',
value: 'spec.externalSubnet',
sort: ['spec.externalSubnet'],
},
{
name: 'externalIPs',
labelKey: 'harvester.egressGateway.ips.external.label',
value: 'status.externalIPs',
formatter: 'List',
},
AGE
]);
virtualType({
labelKey: 'harvester.egressGateway.label',
name: HCI.VPC_EGRESS_GATEWAY,
namespaced: true,
weight: 193,
route: {
name: `${ PRODUCT_NAME }-c-cluster-resource`,
params: { resource: HCI.VPC_EGRESS_GATEWAY }
},
exact: false,
ifHaveType: HCI.VPC_EGRESS_GATEWAY,
});
configureType(HCI.IPTABLES_EIP, { hiddenNamespaceGroupButton: true, canYaml: false });
virtualType({
@@ -47,6 +47,7 @@ export const HCI = {
OS_UPGRADE_IMAGE: 'harvesterhci.io/os-upgrade-image',
LATEST_UPGRADE: 'harvesterhci.io/latestUpgrade',
UPGRADE_STATE: 'harvesterhci.io/upgradeState',
UPGRADE_STORAGE_CLASS: 'harvesterhci.io/upgrade-storage-class',
REAY_MESSAGE: 'harvesterhci.io/read-message',
DYNAMIC_SSHKEYS_NAMES: 'harvesterhci.io/dynamic-ssh-key-names',
DYNAMIC_SSHKEYS_USERS: 'harvesterhci.io/dynamic-ssh-key-users',
@@ -0,0 +1,99 @@
import EditVPC from '../kubeovn.io.vpc/index.vue';
const { validateBfdPort, bfdPortIPError, applyBfdPort } = EditVPC.methods;
const { validationPassed, gatewaysNeedingBfdPort } = EditVPC.computed;
const t = (key) => key;
function createContext(form = {}, spec = {}, model = {}) {
const value = {
metadata: { name: 'commonvpc' }, spec, subnetResources: [], bfdEgressGateways: [], ...model
};
return {
t,
value,
...EditVPC.data.call({ value }),
bfdPortIPError,
...form,
};
}
describe('edit: kubeovn.io.vpc', () => {
it('should load the BFD port of an existing VPC', () => {
const context = createContext({}, { bfdPort: { enabled: true, ip: '10.255.255.255' } });
expect(context.bfdPortEnabled).toBe(true);
expect(context.bfdPortIP).toBe('10.255.255.255');
});
it('should not add a BFD port to a VPC that has none while it stays disabled', () => {
const context = createContext({}, { staticRoutes: [] });
expect(validateBfdPort.call(context)).toStrictEqual([]);
applyBfdPort.call(context);
expect(context.value.spec).toStrictEqual({ staticRoutes: [] });
});
it('should enable the BFD port with its IP and keep its node selector', () => {
const nodeSelector = { matchLabels: { 'kubernetes.io/os': 'linux' } };
const context = createContext({ bfdPortEnabled: true, bfdPortIP: ' 10.255.255.255 , fd00::ffff ' }, { bfdPort: { enabled: false, nodeSelector } });
expect(validateBfdPort.call(context)).toStrictEqual([]);
applyBfdPort.call(context);
expect(context.value.spec.bfdPort).toStrictEqual({
enabled: true, ip: '10.255.255.255,fd00::ffff', nodeSelector
});
});
it('should keep the IP when the BFD port is disabled', () => {
const context = createContext({ bfdPortEnabled: false }, { bfdPort: { enabled: true, ip: '10.255.255.255' } });
applyBfdPort.call(context);
expect(context.value.spec.bfdPort).toStrictEqual({ enabled: false, ip: '10.255.255.255' });
});
it('should reject a BFD port IP inside one of the VPC subnets', () => {
const subnet = {
id: 'subnetinternal', spec: { cidrBlock: '172.20.10.0/24' }, containsIP: (ip) => ip.startsWith('172.20.10.')
};
const context = createContext({ bfdPortEnabled: true, bfdPortIP: '172.20.10.200' }, {}, { subnetResources: [subnet] });
const errors = validateBfdPort.call(context);
expect(errors).toHaveLength(1);
expect(errors[0]).toContain('harvester.vpc.bfdPort.validation.subnet');
});
it.each([
['a name and a valid BFD port', {}, true],
['no name', { value: { metadata: {} } }, false],
['an invalid BFD port', { bfdPortErrors: ['error'] }, false],
])('should allow the save with %s', (_, form, passed) => {
expect(validationPassed.call({
value: { metadata: { name: 'commonvpc' } }, bfdPortErrors: [], ...form
})).toBe(passed);
});
it('should list the gateways that need the BFD port only while it is disabled', () => {
const bfdEgressGateways = [{ id: 'default/gateway1' }];
expect(gatewaysNeedingBfdPort.call({ bfdPortEnabled: false, value: { bfdEgressGateways } })).toStrictEqual(bfdEgressGateways);
expect(gatewaysNeedingBfdPort.call({ bfdPortEnabled: true, value: { bfdEgressGateways } })).toStrictEqual([]);
});
it.each([
['no IP', '', 'validation.required'],
['an invalid IP', '10.255.255.256', 'harvester.vpc.bfdPort.validation.ip'],
['a CIDR', '10.255.255.255/32', 'harvester.vpc.bfdPort.validation.ip'],
['two IPv4 addresses', '10.255.255.254,10.255.255.255', 'harvester.vpc.bfdPort.validation.ip'],
['three addresses', '10.255.255.255,fd00::1,fd00::2', 'harvester.vpc.bfdPort.validation.ip'],
])('should reject an enabled BFD port with %s', (_, bfdPortIP, errorKey) => {
const errors = validateBfdPort.call(createContext({ bfdPortEnabled: true, bfdPortIP }));
expect(errors).toHaveLength(1);
expect(errors[0]).toContain(errorKey);
});
});
@@ -0,0 +1,452 @@
import EditVpcEgressGateway from '../kubeovn.io.vpcegressgateway.vue';
const {
validate, validateTabs, ipError, ipCountError, policyError, policiesSpec, toSpec, bfdSpec, saveGateway
} = EditVpcEgressGateway.methods;
const { vpc: onVpcChange, externalNetworkMode: onExternalNetworkModeChange } = EditVpcEgressGateway.watch;
const {
showExternalNetworkMode, vpcBfdPortDisabled, vpcEditLocation, internalSubnetOptions, externalSubnetOptions, externalSubnetRules, internalSubnetPlaceholder, snatSubnetOptions, noSnatSubnetOptions, policySubnetsPlaceholder
} = EditVpcEgressGateway.computed;
const { requiredError } = EditVpcEgressGateway.methods;
const t = (key, args) => (args ? `${ key } ${ JSON.stringify(args) }` : key);
function createContext(form = {}, spec = {}) {
const value = { metadata: { name: 'gateway1', namespace: 'default' }, spec };
const context = {
t,
value,
...EditVpcEgressGateway.data.call({ value }),
vpc: 'commonvpc',
replicas: 2,
internalSubnet: 'subnetinternal',
externalSubnet: 'subnetexternal',
snatSubnets: ['subnetinternal'],
...form,
};
Object.assign(context, {
bfdSpec, validateTabs, ipError, ipCountError, policyError, policiesSpec
});
return context;
}
// A subnet as the store returns it, with the model getters the form reads
function subnet(id, spec, model = {}) {
return {
id, spec, isOverlayAttachment: false, networkAttachment: null, canAssignIP: () => true, ...model
};
}
describe('edit: kubeovn.io.vpcegressgateway', () => {
it('should start a new gateway with one replica, no subnets and BFD off', () => {
const data = EditVpcEgressGateway.data.call({ value: { metadata: {} } });
expect(data.replicas).toBe(1);
expect([data.snatSubnets, data.noSnatSubnets, data.ipBlockPolicies]).toStrictEqual([[], [], []]);
expect(data.bfd).toStrictEqual({
enabled: false, minRX: 1000, minTX: 1000, multiplier: 3
});
});
it('should build the spec from the form and leave out empty optional fields', () => {
const spec = toSpec.call(createContext());
expect(spec).toStrictEqual({
vpc: 'commonvpc',
replicas: 2,
internalSubnet: 'subnetinternal',
externalSubnet: 'subnetexternal',
policies: [{ snat: true, subnets: ['subnetinternal'] }],
bfd: {
enabled: false, minRX: 1000, minTX: 1000, multiplier: 3
},
});
});
it('should build the spec with IPs, BFD and bandwidth', () => {
const spec = toSpec.call(createContext({
internalIPs: ['172.20.10.41', ' 172.20.10.51 ', ''],
externalIPs: ['10.115.48.220', '10.115.48.221'],
bfd: {
enabled: true, minRX: '50', minTX: 50, multiplier: 3
},
bandwidthIngress: 10,
bandwidthEgress: null,
}));
expect(spec.internalIPs).toStrictEqual(['172.20.10.41', '172.20.10.51']);
expect(spec.externalIPs).toStrictEqual(['10.115.48.220', '10.115.48.221']);
expect(spec.bfd).toStrictEqual({
enabled: true, minRX: 50, minTX: 50, multiplier: 3
});
expect(spec.bandwidth).toStrictEqual({ ingress: 10 });
});
it('should keep a bandwidth quantity as a string and a whole number as Mbps', () => {
const context = createContext({ bandwidthIngress: ' 1Gi ', bandwidthEgress: '100' });
expect(validate.call(context)).toStrictEqual([]);
expect(toSpec.call(context).bandwidth).toStrictEqual({ ingress: '1Gi', egress: 100 });
});
it('should send the BFD defaults for intervals cleared while BFD is off', () => {
const context = createContext({
bfd: {
enabled: false, minRX: '', minTX: 50, multiplier: null
}
});
expect(validate.call(context)).toStrictEqual([]);
expect(toSpec.call(context).bfd).toStrictEqual({
enabled: false, minRX: 1000, minTX: 50, multiplier: 3
});
});
it('should list only the subnets of the VPC that sit on a virtual machine network as internal subnets', () => {
const vpcSubnets = [
subnet('ovn-default', { vpc: 'ovn-cluster', provider: 'ovn' }),
subnet('subnetinternal', { vpc: 'commonvpc', provider: 'vmnet.default.ovn' }, { isOverlayAttachment: true }),
];
expect(internalSubnetOptions.call({ vpcSubnets })).toStrictEqual([{ label: 'subnetinternal', value: 'subnetinternal' }]);
});
it('should list only the subnets attached to a network as external subnets', () => {
const allSubnets = [
subnet('join', { vpc: 'ovn-cluster', provider: 'ovn' }),
subnet('subnetexternal', { vpc: 'commonvpc', provider: 'extnet.default' }, { networkAttachment: { name: 'extnet', namespace: 'default' } }),
];
expect(externalSubnetOptions.call({ allSubnets })).toStrictEqual([{ label: 'subnetexternal', value: 'subnetexternal' }]);
});
it('should check the IPs against the subnet they belong to', () => {
const internalSubnetResource = subnet('subnetinternal', { cidrBlock: '172.20.10.0/24' }, { canAssignIP: (ip) => ip.startsWith('172.20.10.') });
const errors = validate.call(createContext({ internalSubnetResource, internalIPs: ['172.20.10.41', '10.0.0.1'] }));
expect(errors).toHaveLength(1);
expect(errors[0]).toContain('harvester.egressGateway.validation.ipSubnet');
expect(errors[0]).toContain('172.20.10.0/24');
});
it('should put each error on the tab that holds the field', () => {
const errors = validateTabs.call(createContext({
replicas: 11,
snatSubnets: [],
externalIPs: ['10.115.48.300'],
bfd: {
enabled: true, minRX: 0, minTX: 50, multiplier: 3
},
bandwidthIngress: '10Mbps',
}));
expect(Object.fromEntries(Object.entries(errors).map(([tab, messages]) => [tab, messages.length]))).toStrictEqual({
basic: 1, policies: 1, ips: 1, bfd: 1, bandwidth: 1
});
expect(errors.policies[0]).toContain('harvester.egressGateway.validation.policyRequired');
});
it.each([
['empty', '', 'validation.required'],
['the internal subnet', 'subnetinternal', 'harvester.egressGateway.validation.sameSubnet'],
])('should explain an external subnet that is %s', (_, value, errorKey) => {
const [rule] = externalSubnetRules.call(createContext({ requiredError }));
expect(rule(value)).toContain(errorKey);
});
it('should accept an external subnet other than the internal one', () => {
const [rule] = externalSubnetRules.call(createContext({ requiredError }));
expect(rule('subnetexternal')).toBeUndefined();
});
it('should ask for a VPC before the internal subnet', () => {
expect(internalSubnetPlaceholder.call({
t: (key) => key, vpc: '', internalSubnetOptions: []
})).toBe('harvester.egressGateway.internalSubnet.noVpc');
});
it('should say when the VPC has no subnet on a virtual machine network', () => {
const t = (key, args) => (args ? `${ key } ${ args.vpc }` : key);
expect(internalSubnetPlaceholder.call({
t, vpc: 'ovn-cluster', internalSubnetOptions: []
})).toBe('harvester.egressGateway.internalSubnet.none ovn-cluster');
expect(internalSubnetPlaceholder.call({
t, vpc: 'commonvpc', internalSubnetOptions: [{ value: 'subnetinternal' }]
})).toBe('harvester.egressGateway.internalSubnet.placeholder');
});
it('should leave an empty IP row to the save, which drops it', () => {
expect(ipError.call(createContext(), 'internalIPs', ' ')).toBeUndefined();
});
it('should read the policies as Kube-OVN applies them', () => {
const data = EditVpcEgressGateway.data.call({
value: {
spec: {
policies: [
{ snat: true, subnets: ['a', 'b'] },
{ snat: true, subnets: ['c', 'a'] },
{ snat: false, subnets: ['b', 'd'] },
{ snat: false, ipBlocks: ['10.0.0.0/24'] },
]
}
}
});
expect(data.snatSubnets).toStrictEqual(['a', 'c']);
expect(data.noSnatSubnets).toStrictEqual(['b', 'd']);
expect(data.ipBlockPolicies).toStrictEqual([{ snat: false, ipBlocks: ['10.0.0.0/24'] }]);
});
it('should write one policy for each group and keep the IP block policies', () => {
const context = createContext({
snatSubnets: ['a', 'c'], noSnatSubnets: ['b'], ipBlockPolicies: [{ snat: true, ipBlocks: ['10.0.0.0/24'] }]
});
expect(policiesSpec.call(context)).toStrictEqual([
{ snat: true, subnets: ['a', 'c'] },
{ snat: false, subnets: ['b'] },
{ snat: true, ipBlocks: ['10.0.0.0/24'] },
]);
});
it('should leave out a group without subnets', () => {
expect(policiesSpec.call(createContext({ snatSubnets: [], noSnatSubnets: ['b'] }))).toStrictEqual([{ snat: false, subnets: ['b'] }]);
});
it.each([
['no VPC is chosen', '', [], 'harvester.egressGateway.policies.noVpc'],
['the VPC has no subnets', 'emptyvpc', [], 'harvester.egressGateway.policies.noSubnets emptyvpc'],
['the VPC has subnets', 'commonvpc', [{ value: 'a' }], 'harvester.egressGateway.policies.placeholder'],
])('should explain the policy lists when %s', (_, vpc, vpcSubnetOptions, placeholder) => {
const t = (key, args) => (args ? `${ key } ${ args.vpc }` : key);
expect(policySubnetsPlaceholder.call({
t, vpc, vpcSubnetOptions
})).toBe(placeholder);
});
it('should not offer a subnet of one group in the other, nor the external subnet', () => {
const vpcSubnetOptions = ['a', 'b', 'c', 'ext'].map((value) => ({ label: value, value }));
const context = {
vpcSubnetOptions, snatSubnets: ['a'], noSnatSubnets: ['b'], externalSubnet: 'ext'
};
expect(snatSubnetOptions.call(context).map((option) => option.value)).toStrictEqual(['a', 'c']);
expect(noSnatSubnetOptions.call(context).map((option) => option.value)).toStrictEqual(['b', 'c']);
});
it('should reject the external subnet as a policy source', () => {
const error = policyError.call(createContext({ snatSubnets: ['subnetexternal'] }));
expect(error).toContain('harvester.egressGateway.validation.policyExternalSubnet');
expect(error).toContain('subnetexternal');
});
it.each([
['subnets with SNAT', { snatSubnets: ['a'] }],
['subnets without SNAT', { snatSubnets: [], noSnatSubnets: ['b'] }],
['only IP blocks', { snatSubnets: [], ipBlockPolicies: [{ snat: false, ipBlocks: ['10.0.0.0/24'] }] }],
])('should accept a gateway with %s', (_, form) => {
expect(policyError.call(createContext(form))).toBeUndefined();
});
it('should stop the save when the form has errors', async() => {
const buttonCb = jest.fn();
const context = createContext({
vpc: '', validate, save: jest.fn()
});
await saveGateway.call(context, buttonCb);
expect(buttonCb).toHaveBeenCalledWith(false);
expect(context.save).not.toHaveBeenCalled();
expect(context.errors).toHaveLength(1);
});
it('should save the spec built from the form', async() => {
const buttonCb = jest.fn();
const context = createContext({
validate, toSpec, save: jest.fn()
});
await saveGateway.call(context, buttonCb);
expect(context.save).toHaveBeenCalledWith(buttonCb);
expect(context.value.spec.vpc).toBe('commonvpc');
expect(context.value.spec.policies).toStrictEqual([{ snat: true, subnets: ['subnetinternal'] }]);
});
it('should keep the fields the form does not show', () => {
const existing = {
trafficPolicy: 'Local',
selectors: [{ namespaceSelector: { matchLabels: { app: 'web' } } }],
policies: [{ snat: false, ipBlocks: ['10.0.0.0/24'] }],
};
const context = createContext({ snatSubnets: [] }, existing);
const { snatSubnets, noSnatSubnets, ipBlockPolicies } = EditVpcEgressGateway.data.call({ value: context.value });
Object.assign(context, {
snatSubnets, noSnatSubnets, ipBlockPolicies
});
const spec = toSpec.call(context);
expect(spec.trafficPolicy).toBe('Local');
expect(spec.selectors).toStrictEqual(existing.selectors);
expect(spec.policies).toStrictEqual([{ snat: false, ipBlocks: ['10.0.0.0/24'] }]);
expect(validate.call(context)).toStrictEqual([]);
});
it.each([
['has', true],
['does not have', false],
])('should offer Primary CNI when the CRD %s externalNetworkMode', async(_, hasField) => {
const schema = { fetchResourceFields: jest.fn().mockResolvedValue({}) };
const getters = {
currentProduct: { inStore: 'harvester' },
'harvester/schemaFor': () => schema,
'harvester/pathExistsInSchema': jest.fn(() => hasField),
};
const context = { $store: { getters, dispatch: jest.fn().mockResolvedValue([]) }, supportsPrimaryCNI: false };
await EditVpcEgressGateway.fetch.call(context);
expect(schema.fetchResourceFields).toHaveBeenCalledWith();
expect(getters['harvester/pathExistsInSchema']).toHaveBeenCalledWith('kubeovn.io.vpcegressgateway', 'spec.externalNetworkMode');
expect(context.supportsPrimaryCNI).toBe(hasField);
});
it.each([
['a CRD with the mode', { supportsPrimaryCNI: true, usesPrimaryCNI: false }, true],
['a CRD without the mode', { supportsPrimaryCNI: false, usesPrimaryCNI: false }, false],
['an existing Primary CNI gateway', { supportsPrimaryCNI: false, usesPrimaryCNI: true }, true],
])('should show the external network choice for %s', (_, context, shown) => {
expect(showExternalNetworkMode.call(context)).toBe(shown);
});
it('should start a new gateway on an external subnet and leave the mode to the CRD default', () => {
const context = createContext();
expect(context.externalNetworkMode).toBe('Attachment');
expect(toSpec.call(context)).not.toHaveProperty('externalNetworkMode');
});
it('should write a PrimaryCNI gateway without an external subnet', () => {
const spec = toSpec.call(createContext({ externalNetworkMode: 'PrimaryCNI', externalSubnet: '' }));
expect(spec.externalNetworkMode).toBe('PrimaryCNI');
expect(spec).not.toHaveProperty('externalSubnet');
expect(spec).not.toHaveProperty('externalIPs');
expect(spec).not.toHaveProperty('bandwidth');
});
it('should clear the external fields when PrimaryCNI is chosen', () => {
const context = createContext({
externalIPs: ['10.115.48.220'], bandwidthIngress: 10, bandwidthEgress: '1Gi'
});
onExternalNetworkModeChange.call(context, 'PrimaryCNI');
expect([context.externalSubnet, context.externalIPs, context.bandwidthIngress, context.bandwidthEgress]).toStrictEqual(['', [], '', '']);
});
it('should save a PrimaryCNI gateway made outside the form', () => {
const existing = {
vpc: 'commonvpc',
replicas: 1,
externalNetworkMode: 'PrimaryCNI',
internalSubnet: 'subnetinternal',
policies: [{ snat: true, subnets: ['subnetinternal'] }],
};
const value = { metadata: { name: 'gateway1', namespace: 'default' }, spec: existing };
const context = createContext(EditVpcEgressGateway.data.call({ value }), existing);
expect(context.externalNetworkMode).toBe('PrimaryCNI');
expect(validate.call(context)).toStrictEqual([]);
expect(toSpec.call(context)).toStrictEqual({
...existing,
bfd: {
enabled: false, minRX: 1000, minTX: 1000, multiplier: 3
},
});
});
it('should accept a complete form', () => {
expect(validate.call(createContext())).toStrictEqual([]);
});
it.each([
['no VPC', { vpc: '' }, 'validation.required'],
['no internal subnet', { internalSubnet: '' }, 'validation.required'],
['no external subnet', { externalSubnet: '' }, 'validation.required'],
['the same internal and external subnet', { externalSubnet: 'subnetinternal', snatSubnets: ['subnetother'] }, 'harvester.egressGateway.validation.sameSubnet'],
['too many replicas', { replicas: 11 }, 'harvester.egressGateway.validation.replicas'],
['no subnet with or without SNAT', { snatSubnets: [] }, 'harvester.egressGateway.validation.policyRequired'],
['an invalid IP', { externalIPs: ['10.115.48.300', '10.115.48.221'] }, 'harvester.egressGateway.validation.ipList'],
['fewer IPs than replicas', { internalIPs: ['172.20.10.41'] }, 'harvester.egressGateway.validation.ipCount'],
['a repeated IP', { externalIPs: ['10.115.48.220', ' 10.115.48.220'] }, 'harvester.egressGateway.validation.ipDuplicate'],
['a BFD interval of 0', {
bfd: {
enabled: true, minRX: 0, minTX: 50, multiplier: 3
}
}, 'harvester.egressGateway.validation.bfd'],
['a BFD multiplier of 0', {
bfd: {
enabled: true, minRX: 50, minTX: 50, multiplier: 0
}
}, 'harvester.egressGateway.validation.bfdMultiplier'],
['a negative bandwidth', { bandwidthEgress: -1 }, 'harvester.egressGateway.validation.bandwidth'],
['a bandwidth with an unknown unit', { bandwidthEgress: '10Mbps' }, 'harvester.egressGateway.validation.bandwidth'],
])('should reject %s', (_, form, errorKey) => {
const errors = validate.call(createContext(form));
expect(errors).toHaveLength(1);
expect(errors[0]).toContain(errorKey);
});
it('should drop the subnets of the previous VPC when the VPC changes', () => {
const context = createContext({
vpc: 'othervpc',
internalSubnet: 'subnetinternal',
snatSubnets: ['subnetinternal', 'othersubnet'],
noSnatSubnets: ['subnetinternal'],
vpcSubnetOptions: [{ label: 'othersubnet', value: 'othersubnet' }],
internalSubnetOptions: [{ label: 'othersubnet', value: 'othersubnet' }],
});
onVpcChange.call(context, 'othervpc', 'commonvpc');
expect(context.internalSubnet).toBe('');
expect(context.snatSubnets).toStrictEqual(['othersubnet']);
expect(context.noSnatSubnets).toStrictEqual([]);
});
it.each([
['has no BFD port', { bfdPortEnabled: false }, true],
['has a BFD port', { bfdPortEnabled: true }, false],
])('should warn about BFD when the selected VPC %s', (_, selectedVpc, warning) => {
expect(vpcBfdPortDisabled.call({ selectedVpc })).toBe(warning);
});
it('should not warn about BFD before a VPC is selected', () => {
expect(vpcBfdPortDisabled.call({ selectedVpc: null })).toBe(false);
});
it('should link the BFD warning to the BFD Port tab of the selected VPC', () => {
const selectedVpc = { detailLocation: { name: 'harvester-c-cluster-resource-id', params: { resource: 'kubeovn.io.vpc', id: 'commonvpc' } } };
expect(vpcEditLocation.call({ selectedVpc })).toStrictEqual({
name: 'harvester-c-cluster-resource-id',
params: { resource: 'kubeovn.io.vpc', id: 'commonvpc' },
query: { mode: 'edit' },
hash: '#bfdPort',
});
});
});
+151 -1
View File
@@ -5,9 +5,17 @@ import Tab from '@shell/components/Tabbed/Tab';
import Loading from '@shell/components/Loading';
import CreateEditView from '@shell/mixins/create-edit-view';
import ResourceTabs from '@shell/components/form/ResourceTabs/index';
import { LabeledInput } from '@components/Form/LabeledInput';
import { RadioGroup } from '@components/Form/Radio';
import { Banner } from '@components/Banner';
import StaticRoutes from './StaticRoutes';
import VpcPeerings from './VpcPeerings';
import { set } from '@shell/utils/object';
import { allHash } from '@shell/utils/promise';
import { isValidIP } from '@shell/utils/validators/cidr';
import { HCI } from '../../types';
const splitIPs = (value) => `${ value || '' }`.split(',').map((ip) => ip.trim()).filter(Boolean);
export default {
name: 'EditVPC',
@@ -15,8 +23,11 @@ export default {
emits: ['update:value'],
components: {
Banner,
CruResource,
LabeledInput,
NameNsDescription,
RadioGroup,
Tab,
StaticRoutes,
ResourceTabs,
@@ -28,16 +39,106 @@ export default {
inheritAttrs: false,
async fetch() {
const inStore = this.$store.getters['currentProduct'].inStore;
const hasEgressGateways = !!this.$store.getters[`${ inStore }/schemaFor`](HCI.VPC_EGRESS_GATEWAY);
await allHash({
subnets: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.SUBNET }),
gateways: hasEgressGateways ? this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VPC_EGRESS_GATEWAY }) : [],
});
},
data() {
set(this.value, 'spec', this.value.spec || {
staticRoutes: [],
vpcPeerings: [],
});
return { staticRoutes: [] };
const bfdPort = this.value.spec.bfdPort || {};
return {
staticRoutes: [],
bfdPortEnabled: bfdPort.enabled === true,
bfdPortIP: bfdPort.ip || '',
};
},
computed: {
bfdPortErrors() {
return this.isView ? [] : this.validateBfdPort();
},
validationPassed() {
return !!this.value?.metadata?.name && this.bfdPortErrors.length === 0;
},
// Each field shows its own error once touched, so a disabled Save always has a visible reason
nameRules() {
return {
name: [(value) => (value ? undefined : this.t('validation.required', { key: this.t('generic.name') }, true))], namespace: [], description: []
};
},
bfdPortIPRules() {
return [(value) => this.bfdPortIPError(value)];
},
gatewaysNeedingBfdPort() {
return this.bfdPortEnabled ? [] : this.value.bfdEgressGateways || [];
},
},
methods: {
bfdPortIPError(value) {
if (!this.bfdPortEnabled) {
return undefined;
}
const ips = splitIPs(value);
const ipv6Count = ips.filter((ip) => ip.includes(':')).length;
if (!ips.length) {
return this.t('validation.required', { key: this.t('harvester.vpc.bfdPort.ip.label') }, true);
}
if (ips.length > 2 || ips.some((ip) => !isValidIP(ip)) || (ips.length === 2 && ipv6Count !== 1)) {
return this.t('harvester.vpc.bfdPort.validation.ip', null, true);
}
const subnet = (this.value.subnetResources || []).find((item) => ips.some((ip) => item.containsIP(ip)));
if (subnet) {
return this.t('harvester.vpc.bfdPort.validation.subnet', { subnet: subnet.id, cidr: subnet.spec?.cidrBlock }, true);
}
return undefined;
},
validateBfdPort() {
return [this.bfdPortIPError(this.bfdPortIP)].filter(Boolean);
},
applyBfdPort() {
const current = this.value.spec.bfdPort;
if (!this.bfdPortEnabled && !current) {
return;
}
const bfdPort = {
...(current || {}),
enabled: this.bfdPortEnabled,
ip: splitIPs(this.bfdPortIP).join(','),
};
if (!bfdPort.ip) {
delete bfdPort.ip;
}
this.value.spec.bfdPort = bfdPort;
},
async saveVpc(buttonCb) {
const errors = [];
@@ -48,12 +149,15 @@ export default {
errors.push(this.t('validation.required', { key: this.t('generic.name') }, true));
}
errors.push(...this.validateBfdPort());
if (errors.length > 0) {
buttonCb(false);
this.errors = errors;
return false;
}
this.applyBfdPort();
await this.value.save();
buttonCb(true);
this.done();
@@ -76,6 +180,7 @@ export default {
:mode="mode"
:apply-hooks="applyHooks"
:errors="errors"
:validation-passed="validationPassed"
@finish="saveVpc"
@error="e=>errors=e"
>
@@ -83,6 +188,7 @@ export default {
:value="value"
:mode="mode"
:namespaced="false"
:rules="nameRules"
@update:value="$emit('update:value', $event)"
/>
<ResourceTabs
@@ -115,6 +221,50 @@ export default {
:vpc="value"
/>
</Tab>
<Tab
name="bfdPort"
:label="t('harvester.vpc.bfdPort.label')"
:weight="-3"
:error="bfdPortErrors.length > 0"
:error-icon-tooltip="bfdPortErrors.join(' ')"
>
<Banner
color="info"
:label="t('harvester.vpc.bfdPort.banner')"
/>
<RadioGroup
v-model:value="bfdPortEnabled"
name="bfdPort"
data-testid="vpc-bfd-port-enabled"
:options="[true, false]"
:labels="[t('generic.enabled'), t('generic.disabled')]"
:aria-label="t('harvester.vpc.bfdPort.label')"
:mode="mode"
/>
<Banner
v-if="gatewaysNeedingBfdPort.length"
color="warning"
data-testid="vpc-bfd-port-gateways"
:label="t('harvester.vpc.bfdPort.gatewaysNeedPort', { gateways: gatewaysNeedingBfdPort.map((gateway) => gateway.id).join(', ') }, true)"
/>
<div
v-if="bfdPortEnabled"
class="row mt-20"
>
<div class="col span-6">
<LabeledInput
v-model:value="bfdPortIP"
data-testid="vpc-bfd-port-ip"
required
:rules="bfdPortIPRules"
:mode="mode"
:label="t('harvester.vpc.bfdPort.ip.label')"
:placeholder="t('harvester.vpc.bfdPort.ip.placeholder')"
:tooltip="t('harvester.vpc.bfdPort.ip.tooltip')"
/>
</div>
</div>
</Tab>
</ResourceTabs>
</CruResource>
</template>
@@ -0,0 +1,864 @@
<script>
import CruResource from '@shell/components/CruResource';
import NameNsDescription from '@shell/components/form/NameNsDescription';
import ResourceTabs from '@shell/components/form/ResourceTabs';
import Tab from '@shell/components/Tabbed/Tab';
import ArrayList from '@shell/components/form/ArrayList';
import Loading from '@shell/components/Loading';
import MessageLink from '@shell/components/MessageLink';
import LabeledSelect from '@shell/components/form/LabeledSelect';
import UnitInput from '@shell/components/form/UnitInput';
import { LabeledInput } from '@components/Form/LabeledInput';
import { RadioGroup } from '@components/Form/Radio';
import { Banner } from '@components/Banner';
import CreateEditView from '@shell/mixins/create-edit-view';
import { _EDIT, MODE } from '@shell/config/query-params';
import { allHash } from '@shell/utils/promise';
import { isValidIP } from '@shell/utils/validators/cidr';
import { HCI } from '../types';
// Limits from the VpcEgressGateway CRD
const MAX_REPLICAS = 10;
const MAX_BFD_VALUE = 3600000;
const MAX_BANDWIDTH_MBPS = 9223372036854;
// A whole number in Mbps, or a quantity in bits per second such as 100M or 1Gi
const BANDWIDTH_PATTERN = /^([0-9]+|([0-9]+(\.[0-9]+)?|\.[0-9]+)(M|Mi|G|Gi))$/;
const IP_FIELDS = {
internalIPs: { labelKey: 'harvester.egressGateway.ips.internal.label', subnet: 'internalSubnetResource' },
externalIPs: { labelKey: 'harvester.egressGateway.ips.external.label', subnet: 'externalSubnetResource' },
};
const BFD_DEFAULTS = {
enabled: false, minRX: 1000, minTX: 1000, multiplier: 3
};
// PrimaryCNI sends traffic out through the pod's primary network, so it takes no external subnet, external IPs or bandwidth
const ATTACHMENT = 'Attachment';
const PRIMARY_CNI = 'PrimaryCNI';
const isBlank = (value) => value === null || value === undefined || `${ value }`.trim() === '';
const isWholeNumber = (value, min, max) => /^\d+$/.test(`${ value }`.trim()) && Number(value) >= min && Number(value) <= max;
const isValidBandwidth = (value) => BANDWIDTH_PATTERN.test(`${ value }`.trim()) && (!isWholeNumber(value, 0, Infinity) || Number(value) <= MAX_BANDWIDTH_MBPS);
const toBandwidth = (value) => (isWholeNumber(value, 0, Infinity) ? Number(value) : `${ value }`.trim());
const cleanList = (list) => (list || []).map((item) => `${ item || '' }`.trim()).filter(Boolean);
const isValidBfdValue = (value) => isWholeNumber(value, 1, MAX_BFD_VALUE);
const unique = (list) => [...new Set(list)];
// Kube-OVN puts the sources of every policy into two sets, with SNAT and without, and leaves a source out of
// SNAT when any policy has SNAT off for it. The form edits those two sets; IP blocks set outside it are kept.
const policyGroups = (policies = []) => {
const noSnatSubnets = unique(policies.filter((policy) => !policy.snat).flatMap((policy) => policy.subnets || []));
const snatSubnets = unique(policies.filter((policy) => policy.snat).flatMap((policy) => policy.subnets || []))
.filter((subnet) => !noSnatSubnets.includes(subnet));
const ipBlockPolicies = policies
.filter((policy) => policy.ipBlocks?.length)
.map((policy) => ({ snat: !!policy.snat, ipBlocks: [...policy.ipBlocks] }));
return {
snatSubnets, noSnatSubnets, ipBlockPolicies
};
};
export default {
name: 'EditVpcEgressGateway',
emits: ['update:value'],
components: {
ArrayList,
Banner,
CruResource,
LabeledInput,
LabeledSelect,
Loading,
MessageLink,
NameNsDescription,
RadioGroup,
ResourceTabs,
Tab,
UnitInput,
},
mixins: [CreateEditView],
inheritAttrs: false,
props: {
value: {
type: Object,
required: true,
}
},
async fetch() {
const inStore = this.$store.getters['currentProduct'].inStore;
const schema = this.$store.getters[`${ inStore }/schemaFor`](HCI.VPC_EGRESS_GATEWAY);
await allHash({
vpcs: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.VPC }),
subnets: this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.SUBNET }),
fields: schema?.fetchResourceFields(),
});
// Kube-OVN v1.16 (Harvester v1.10.0-rc1 and older) has no externalNetworkMode and always needs an external subnet
this.supportsPrimaryCNI = !!schema && this.$store.getters[`${ inStore }/pathExistsInSchema`](HCI.VPC_EGRESS_GATEWAY, 'spec.externalNetworkMode');
},
data() {
const spec = this.value?.spec || {};
return {
...policyGroups(spec.policies),
vpc: spec.vpc || '',
replicas: spec.replicas ?? 1,
externalNetworkMode: spec.externalNetworkMode || ATTACHMENT,
supportsPrimaryCNI: false,
internalSubnet: spec.internalSubnet || '',
externalSubnet: spec.externalSubnet || '',
internalIPs: [...(spec.internalIPs || [])],
externalIPs: [...(spec.externalIPs || [])],
bfd: { ...BFD_DEFAULTS, ...spec.bfd },
bandwidthIngress: spec.bandwidth?.ingress ?? '',
bandwidthEgress: spec.bandwidth?.egress ?? '',
};
},
computed: {
allSubnets() {
const inStore = this.$store.getters['currentProduct'].inStore;
return this.$store.getters[`${ inStore }/all`](HCI.SUBNET) || [];
},
vpcOptions() {
const inStore = this.$store.getters['currentProduct'].inStore;
const vpcs = this.$store.getters[`${ inStore }/all`](HCI.VPC) || [];
return vpcs.map((vpc) => ({ label: vpc.id, value: vpc.id }));
},
vpcSubnets() {
return this.allSubnets.filter((subnet) => subnet.spec?.vpc === this.vpc);
},
vpcSubnetOptions() {
return this.vpcSubnets.map((subnet) => ({ label: subnet.id, value: subnet.id }));
},
internalSubnetOptions() {
return this.vpcSubnets
.filter((subnet) => subnet.isOverlayAttachment)
.map((subnet) => ({ label: subnet.id, value: subnet.id }));
},
externalSubnetOptions() {
return this.allSubnets
.filter((subnet) => subnet.networkAttachment)
.map((subnet) => ({ label: subnet.id, value: subnet.id }));
},
internalSubnetResource() {
return this.allSubnets.find((subnet) => subnet.id === this.internalSubnet);
},
externalSubnetResource() {
return this.allSubnets.find((subnet) => subnet.id === this.externalSubnet);
},
usesPrimaryCNI() {
return this.externalNetworkMode === PRIMARY_CNI;
},
showExternalNetworkMode() {
return this.supportsPrimaryCNI || this.usesPrimaryCNI;
},
externalNetworkModes() {
return [ATTACHMENT, PRIMARY_CNI];
},
externalNetworkModeLabels() {
return [this.t('harvester.egressGateway.externalNetworkMode.attachment'), this.t('harvester.egressGateway.externalNetworkMode.primaryCNI')];
},
selectedVpc() {
const inStore = this.$store.getters['currentProduct'].inStore;
return this.vpc ? this.$store.getters[`${ inStore }/byId`](HCI.VPC, this.vpc) : null;
},
// A subnet goes in one of the two groups only, and the gateway's external subnet in neither
snatSubnetOptions() {
return this.vpcSubnetOptions.filter((option) => option.value !== this.externalSubnet && !this.noSnatSubnets.includes(option.value));
},
noSnatSubnetOptions() {
return this.vpcSubnetOptions.filter((option) => option.value !== this.externalSubnet && !this.snatSubnets.includes(option.value));
},
ipBlocksWithSnat() {
return this.ipBlockPolicies.filter((policy) => policy.snat).flatMap((policy) => policy.ipBlocks);
},
ipBlocksWithoutSnat() {
return this.ipBlockPolicies.filter((policy) => !policy.snat).flatMap((policy) => policy.ipBlocks);
},
tabErrors() {
return this.isView ? {
basic: [], policies: [], ips: [], bfd: [], bandwidth: []
} : this.validateTabs();
},
validationPassed() {
return this.validate().length === 0;
},
// Each field shows its own error once touched, so a disabled Save always has a visible reason
nameRules() {
return {
name: [(value) => (value ? undefined : this.t('validation.required', { key: this.t('generic.name') }, true))], namespace: [], description: []
};
},
vpcRules() {
return [(value) => this.requiredError(value, 'harvester.egressGateway.vpc.label')];
},
internalSubnetRules() {
return [(value) => this.requiredError(value, 'harvester.egressGateway.internalSubnet.label')];
},
// The policy lists only offer subnets of the chosen VPC, so say why they're empty
policySubnetsPlaceholder() {
if (!this.vpc) {
return this.t('harvester.egressGateway.policies.noVpc');
}
return this.vpcSubnetOptions.length ? this.t('harvester.egressGateway.policies.placeholder') : this.t('harvester.egressGateway.policies.noSubnets', { vpc: this.vpc }, true);
},
internalSubnetPlaceholder() {
if (!this.vpc) {
return this.t('harvester.egressGateway.internalSubnet.noVpc');
}
return this.internalSubnetOptions.length ? this.t('harvester.egressGateway.internalSubnet.placeholder') : this.t('harvester.egressGateway.internalSubnet.none', { vpc: this.vpc }, true);
},
maxReplicas() {
return MAX_REPLICAS;
},
replicasRules() {
return [(value) => (isWholeNumber(value, 0, MAX_REPLICAS) ? undefined : this.t('harvester.egressGateway.validation.replicas', null, true))];
},
externalSubnetRules() {
return [(value) => this.requiredError(value, 'harvester.egressGateway.externalSubnet.label') || (value === this.internalSubnet ? this.t('harvester.egressGateway.validation.sameSubnet', null, true) : undefined)];
},
internalIPRules() {
return [(ip) => this.ipError('internalIPs', ip)];
},
externalIPRules() {
return [(ip) => this.ipError('externalIPs', ip)];
},
ipCountErrors() {
return Object.keys(IP_FIELDS).map((field) => this.ipCountError(field)).filter(Boolean);
},
bfdIntervalRules() {
return [(value) => (isValidBfdValue(value) ? undefined : this.t('harvester.egressGateway.validation.bfd', null, true))];
},
bfdMultiplierRules() {
return [(value) => (isValidBfdValue(value) ? undefined : this.t('harvester.egressGateway.validation.bfdMultiplier', null, true))];
},
bandwidthRules() {
return [(value) => (isBlank(value) || isValidBandwidth(value) ? undefined : this.t('harvester.egressGateway.validation.bandwidth', null, true))];
},
vpcBfdPortDisabled() {
return !!this.selectedVpc && !this.selectedVpc.bfdPortEnabled;
},
vpcEditLocation() {
const location = this.selectedVpc?.detailLocation;
return location ? {
...location, query: { [MODE]: _EDIT }, hash: '#bfdPort'
} : null;
},
},
watch: {
vpc(neu, old) {
if (!old || neu === old) {
return;
}
const vpcSubnets = this.vpcSubnetOptions.map((option) => option.value);
if (!this.internalSubnetOptions.some((option) => option.value === this.internalSubnet)) {
this.internalSubnet = '';
}
this.snatSubnets = this.snatSubnets.filter((subnet) => vpcSubnets.includes(subnet));
this.noSnatSubnets = this.noSnatSubnets.filter((subnet) => vpcSubnets.includes(subnet));
},
// The mode can only be chosen on create; PrimaryCNI rejects the external fields, so they're cleared
externalNetworkMode(neu) {
if (neu === PRIMARY_CNI) {
this.externalSubnet = '';
this.externalIPs = [];
this.bandwidthIngress = '';
this.bandwidthEgress = '';
}
},
},
methods: {
requiredError(value, labelKey) {
return value ? undefined : this.t('validation.required', { key: this.t(labelKey) }, true);
},
ipError(field, ip) {
const value = `${ ip || '' }`.trim();
const { labelKey, subnet: subnetField } = IP_FIELDS[field];
const key = this.t(labelKey);
const subnet = this[subnetField];
if (!value) {
return undefined;
}
if (!isValidIP(value)) {
return this.t('harvester.egressGateway.validation.ipList', { key }, true);
}
if (cleanList(this[field]).filter((other) => other === value).length > 1) {
return this.t('harvester.egressGateway.validation.ipDuplicate', { key }, true);
}
if (subnet && !subnet.canAssignIP(value)) {
return this.t('harvester.egressGateway.validation.ipSubnet', {
key, subnet: subnet.id, cidr: subnet.spec?.cidrBlock
}, true);
}
return undefined;
},
ipCountError(field) {
const ips = cleanList(this[field]);
const replicas = Number(this.replicas);
if (ips.length && ips.length < replicas) {
return this.t('harvester.egressGateway.validation.ipCount', { key: this.t(IP_FIELDS[field].labelKey), replicas }, true);
}
return undefined;
},
policyError() {
const hasSource = this.snatSubnets.length || this.noSnatSubnets.length || this.ipBlockPolicies.length;
if (!hasSource) {
return this.t('harvester.egressGateway.validation.policyRequired', null, true);
}
// Kube-OVN reroutes a policy's sources to the gateway, so its own external subnet would loop back into it
if (this.externalSubnet && [...this.snatSubnets, ...this.noSnatSubnets].includes(this.externalSubnet)) {
return this.t('harvester.egressGateway.validation.policyExternalSubnet', { subnet: this.externalSubnet }, true);
}
return undefined;
},
// One policy for each group that has subnets, then the IP block policies as they were
policiesSpec() {
return [
...(this.snatSubnets.length ? [{ snat: true, subnets: [...this.snatSubnets] }] : []),
...(this.noSnatSubnets.length ? [{ snat: false, subnets: [...this.noSnatSubnets] }] : []),
...this.ipBlockPolicies.map((policy) => ({ ...policy, ipBlocks: [...policy.ipBlocks] })),
];
},
// The errors of each tab, so each tab can be marked and Save stays disabled until there are none
validateTabs() {
const errors = {
basic: [], policies: [], ips: [], bfd: [], bandwidth: []
};
[
['vpc', 'harvester.egressGateway.vpc.label'],
['internalSubnet', 'harvester.egressGateway.internalSubnet.label'],
...(this.externalNetworkMode === PRIMARY_CNI ? [] : [['externalSubnet', 'harvester.egressGateway.externalSubnet.label']]),
].forEach(([field, labelKey]) => {
if (!this[field]) {
errors.basic.push(this.t('validation.required', { key: this.t(labelKey) }, true));
}
});
if (this.internalSubnet && this.internalSubnet === this.externalSubnet) {
errors.basic.push(this.t('harvester.egressGateway.validation.sameSubnet', null, true));
}
if (!isWholeNumber(this.replicas, 0, MAX_REPLICAS)) {
errors.basic.push(this.t('harvester.egressGateway.validation.replicas', null, true));
}
const policyError = this.policyError();
if (policyError) {
errors.policies.push(policyError);
}
Object.keys(IP_FIELDS).forEach((field) => {
const ipError = cleanList(this[field]).map((ip) => this.ipError(field, ip)).find(Boolean);
const error = ipError || this.ipCountError(field);
if (error) {
errors.ips.push(error);
}
});
if (this.bfd.enabled && ['minRX', 'minTX'].some((field) => !isValidBfdValue(this.bfd[field]))) {
errors.bfd.push(this.t('harvester.egressGateway.validation.bfd', null, true));
}
if (this.bfd.enabled && !isValidBfdValue(this.bfd.multiplier)) {
errors.bfd.push(this.t('harvester.egressGateway.validation.bfdMultiplier', null, true));
}
if ([this.bandwidthIngress, this.bandwidthEgress].some((value) => !isBlank(value) && !isValidBandwidth(value))) {
errors.bandwidth.push(this.t('harvester.egressGateway.validation.bandwidth', null, true));
}
return errors;
},
validate() {
const errors = this.value.metadata?.name ? [] : [this.t('validation.required', { key: this.t('generic.name') }, true)];
return [...errors, ...Object.values(this.validateTabs()).flat()];
},
// The intervals are hidden while BFD is off, so a value cleared there falls back to its default
bfdSpec() {
const bfd = { ...this.bfd };
['minRX', 'minTX', 'multiplier'].forEach((field) => {
bfd[field] = isValidBfdValue(bfd[field]) || this.bfd.enabled ? Number(bfd[field]) : BFD_DEFAULTS[field];
});
return bfd;
},
toSpec() {
const spec = {
...(this.value.spec || {}),
vpc: this.vpc,
replicas: Number(this.replicas),
internalSubnet: this.internalSubnet,
externalSubnet: this.externalSubnet,
internalIPs: cleanList(this.internalIPs),
externalIPs: cleanList(this.externalIPs),
policies: this.policiesSpec(),
bfd: this.bfdSpec(),
bandwidth: {
ingress: isBlank(this.bandwidthIngress) ? undefined : toBandwidth(this.bandwidthIngress),
egress: isBlank(this.bandwidthEgress) ? undefined : toBandwidth(this.bandwidthEgress),
},
};
['internalIPs', 'externalIPs', 'policies'].forEach((field) => {
if (!spec[field].length) {
delete spec[field];
}
});
Object.keys(spec.bandwidth).forEach((direction) => {
if (spec.bandwidth[direction] === undefined) {
delete spec.bandwidth[direction];
}
});
if (!Object.keys(spec.bandwidth).length) {
delete spec.bandwidth;
}
// Attachment is the CRD default, so a new gateway only names the mode when it's PrimaryCNI
if (this.externalNetworkMode === PRIMARY_CNI) {
spec.externalNetworkMode = PRIMARY_CNI;
delete spec.externalSubnet;
}
return spec;
},
async saveGateway(buttonCb) {
this.errors = this.validate();
if (this.errors.length) {
buttonCb(false);
return;
}
this.value.spec = this.toSpec();
await this.save(buttonCb);
},
},
};
</script>
<template>
<Loading v-if="$fetchState.pending" />
<CruResource
v-else
:done-route="doneRoute"
:resource="value"
:mode="mode"
:errors="errors"
:validation-passed="validationPassed"
:apply-hooks="applyHooks"
@finish="saveGateway"
@error="e=>errors=e"
>
<NameNsDescription
:value="value"
:mode="mode"
:rules="nameRules"
@update:value="$emit('update:value', $event)"
/>
<ResourceTabs
class="mt-15"
:need-conditions="false"
:need-related="false"
:need-events="false"
:side-tabs="true"
:mode="mode"
>
<Tab
name="basic"
:label="t('generic.basic')"
:weight="99"
:error="tabErrors.basic.length > 0"
:error-icon-tooltip="tabErrors.basic.join(' ')"
>
<div class="row mt-10">
<div class="col span-6">
<LabeledSelect
v-model:value="vpc"
data-testid="egress-gateway-vpc"
class="mb-20"
required
:rules="vpcRules"
:options="vpcOptions"
:mode="mode"
:label="t('harvester.egressGateway.vpc.label')"
:placeholder="t('harvester.egressGateway.vpc.placeholder')"
/>
</div>
<div class="col span-6">
<LabeledInput
v-model:value.number="replicas"
data-testid="egress-gateway-replicas"
class="mb-20"
type="number"
required
:min="0"
:max="maxReplicas"
:mode="mode"
:rules="replicasRules"
:label="t('harvester.egressGateway.replicas.label')"
:tooltip="t('harvester.egressGateway.replicas.tooltip')"
/>
</div>
</div>
<div
v-if="showExternalNetworkMode"
class="row mb-20"
>
<div class="col span-12">
<!-- The CRD makes the mode immutable -->
<RadioGroup
v-model:value="externalNetworkMode"
data-testid="egress-gateway-external-network-mode"
name="externalNetworkMode"
:options="externalNetworkModes"
:labels="externalNetworkModeLabels"
:label="t('harvester.egressGateway.externalNetworkMode.label')"
:tooltip="t('harvester.egressGateway.externalNetworkMode.tooltip')"
:disabled="!isCreate"
:mode="mode"
/>
</div>
</div>
<div class="row">
<div class="col span-6">
<LabeledSelect
v-model:value="internalSubnet"
data-testid="egress-gateway-internal-subnet"
class="mb-20"
required
:options="internalSubnetOptions"
:rules="internalSubnetRules"
:disabled="!vpc"
:mode="mode"
:label="t('harvester.egressGateway.internalSubnet.label')"
:placeholder="internalSubnetPlaceholder"
:tooltip="t('harvester.egressGateway.internalSubnet.tooltip')"
/>
</div>
<div
v-if="!usesPrimaryCNI"
class="col span-6"
>
<LabeledSelect
v-model:value="externalSubnet"
data-testid="egress-gateway-external-subnet"
class="mb-20"
required
:options="externalSubnetOptions"
:mode="mode"
:rules="externalSubnetRules"
:label="t('harvester.egressGateway.externalSubnet.label')"
:placeholder="t('harvester.egressGateway.externalSubnet.placeholder')"
:tooltip="t('harvester.egressGateway.externalSubnet.tooltip')"
/>
</div>
</div>
</Tab>
<Tab
name="policies"
:label="t('harvester.egressGateway.policies.label')"
:weight="98"
:error="tabErrors.policies.length > 0"
:error-icon-tooltip="tabErrors.policies.join(' ')"
>
<p
v-if="!isView"
class="text-muted mb-20"
>
{{ t('harvester.egressGateway.policies.description') }}
</p>
<!-- One subnet in either list is enough, so the rule is shown once for both lists -->
<Banner
v-if="vpc && tabErrors.policies.length"
color="error"
data-testid="egress-gateway-policy-error"
:label="tabErrors.policies[0]"
/>
<div class="row">
<div class="col span-6">
<LabeledSelect
v-model:value="snatSubnets"
data-testid="egress-gateway-snat-subnets"
:disabled="!vpc"
:append-to-body="false"
:multiple="true"
:options="snatSubnetOptions"
:mode="mode"
:label="t('harvester.egressGateway.policies.snatSubnets.label')"
:placeholder="policySubnetsPlaceholder"
:tooltip="t('harvester.egressGateway.policies.snatSubnets.tooltip')"
/>
</div>
<div class="col span-6">
<LabeledSelect
v-model:value="noSnatSubnets"
data-testid="egress-gateway-no-snat-subnets"
:disabled="!vpc"
:append-to-body="false"
:multiple="true"
:options="noSnatSubnetOptions"
:mode="mode"
:label="t('harvester.egressGateway.policies.noSnatSubnets.label')"
:placeholder="policySubnetsPlaceholder"
:tooltip="t('harvester.egressGateway.policies.noSnatSubnets.tooltip')"
/>
</div>
</div>
<div
v-if="ipBlocksWithSnat.length || ipBlocksWithoutSnat.length"
class="row mt-20"
>
<div class="col span-6">
<LabeledInput
v-if="ipBlocksWithSnat.length"
data-testid="egress-gateway-snat-ip-blocks"
:value="ipBlocksWithSnat.join(', ')"
mode="view"
:label="t('harvester.egressGateway.policies.ipBlocks.snat')"
:tooltip="t('harvester.egressGateway.policies.ipBlocks.tooltip')"
/>
</div>
<div class="col span-6">
<LabeledInput
v-if="ipBlocksWithoutSnat.length"
data-testid="egress-gateway-no-snat-ip-blocks"
:value="ipBlocksWithoutSnat.join(', ')"
mode="view"
:label="t('harvester.egressGateway.policies.ipBlocks.noSnat')"
:tooltip="t('harvester.egressGateway.policies.ipBlocks.tooltip')"
/>
</div>
</div>
</Tab>
<Tab
name="ips"
:label="t('harvester.egressGateway.ips.label')"
:weight="97"
:error="tabErrors.ips.length > 0"
:error-icon-tooltip="tabErrors.ips.join(' ')"
>
<Banner
v-if="!isView"
color="info"
:label="usesPrimaryCNI ? t('harvester.egressGateway.ips.bannerPrimaryCNI') : t('harvester.egressGateway.ips.banner')"
/>
<Banner
v-for="error in ipCountErrors"
:key="error"
color="error"
:label="error"
/>
<ArrayList
v-model:value="internalIPs"
class="mt-20"
:rules="internalIPRules"
:mode="mode"
:title="t('harvester.egressGateway.ips.internal.label')"
:add-label="t('harvester.egressGateway.ips.internal.add')"
:value-placeholder="t('harvester.egressGateway.ips.internal.placeholder')"
/>
<ArrayList
v-if="!usesPrimaryCNI"
v-model:value="externalIPs"
class="mt-20"
:rules="externalIPRules"
:mode="mode"
:title="t('harvester.egressGateway.ips.external.label')"
:add-label="t('harvester.egressGateway.ips.external.add')"
:value-placeholder="t('harvester.egressGateway.ips.external.placeholder')"
/>
</Tab>
<Tab
name="bfd"
:label="t('harvester.egressGateway.bfd.label')"
:weight="96"
:error="tabErrors.bfd.length > 0"
:error-icon-tooltip="tabErrors.bfd.join(' ')"
>
<RadioGroup
v-model:value="bfd.enabled"
name="bfd"
:options="[true, false]"
:labels="[t('generic.enabled'), t('generic.disabled')]"
:label="t('harvester.egressGateway.bfd.enabled')"
:tooltip="t('harvester.egressGateway.bfd.tooltip')"
:mode="mode"
/>
<template v-if="bfd.enabled">
<Banner
v-if="vpcBfdPortDisabled"
color="warning"
>
<MessageLink
:to="vpcEditLocation"
target="_blank"
:prefix="t('harvester.egressGateway.bfd.vpcBfdPort.prefix', { vpc }, true)"
:middle="t('harvester.egressGateway.bfd.vpcBfdPort.middle')"
:suffix="t('harvester.egressGateway.bfd.vpcBfdPort.suffix')"
/>
</Banner>
<div class="row mt-20">
<div class="col span-4">
<UnitInput
v-model:value="bfd.minRX"
:min="1"
:mode="mode"
required
:rules="bfdIntervalRules"
:label="t('harvester.egressGateway.bfd.minRX.label')"
:tooltip="t('harvester.egressGateway.bfd.minRX.tooltip')"
:suffix="t('harvester.egressGateway.bfd.milliseconds')"
/>
</div>
<div class="col span-4">
<UnitInput
v-model:value="bfd.minTX"
:min="1"
:mode="mode"
required
:rules="bfdIntervalRules"
:label="t('harvester.egressGateway.bfd.minTX.label')"
:tooltip="t('harvester.egressGateway.bfd.minTX.tooltip')"
:suffix="t('harvester.egressGateway.bfd.milliseconds')"
/>
</div>
<div class="col span-4">
<LabeledInput
v-model:value.number="bfd.multiplier"
type="number"
:min="1"
:mode="mode"
required
:rules="bfdMultiplierRules"
:label="t('harvester.egressGateway.bfd.multiplier.label')"
:tooltip="t('harvester.egressGateway.bfd.multiplier.tooltip')"
/>
</div>
</div>
</template>
</Tab>
<Tab
v-if="!usesPrimaryCNI"
name="bandwidth"
:label="t('harvester.egressGateway.bandwidth.label')"
:weight="95"
:error="tabErrors.bandwidth.length > 0"
:error-icon-tooltip="tabErrors.bandwidth.join(' ')"
>
<Banner
v-if="!isView"
color="info"
:label="t('harvester.egressGateway.bandwidth.banner')"
/>
<div class="row mt-20">
<div class="col span-6">
<LabeledInput
v-model:value="bandwidthIngress"
data-testid="egress-gateway-bandwidth-ingress"
:mode="mode"
:rules="bandwidthRules"
:label="t('harvester.egressGateway.bandwidth.ingress.label')"
:placeholder="t('harvester.egressGateway.bandwidth.placeholder')"
/>
</div>
<div class="col span-6">
<LabeledInput
v-model:value="bandwidthEgress"
data-testid="egress-gateway-bandwidth-egress"
:mode="mode"
:rules="bandwidthRules"
:label="t('harvester.egressGateway.bandwidth.egress.label')"
:placeholder="t('harvester.egressGateway.bandwidth.placeholder')"
/>
</div>
</div>
</Tab>
</ResourceTabs>
</CruResource>
</template>
@@ -1,6 +1,12 @@
import { readFileSync } from 'fs';
import { resolve } from 'path';
import { STORAGE_CLASS } from '@shell/config/types';
import VM_MIXIN from '@pkg/harvester/mixins/harvester-vm';
import HarvesterEditVM from '../index.vue';
const vmFormSource = readFileSync(resolve(__dirname, '../index.vue'), 'utf8');
const translations = readFileSync(resolve(__dirname, '../../../l10n/en-us.yaml'), 'utf8');
function saveWith(userScript) {
const buttonCb = jest.fn();
const form = {
@@ -20,6 +26,106 @@ function saveWith(userScript) {
}
describe('page: kubevirt.io.virtualmachine edit', () => {
it('shows the persistent state storage hint only when vmstate-persistence is missing', () => {
const hasVMStateStorageClass = HarvesterEditVM.computed.hasVMStateStorageClass;
const storageClasses = (storageClassNames) => ({
inStore: 'harvester',
$store: { getters: { 'harvester/all': (type) => type === STORAGE_CLASS ? storageClassNames.map((name) => ({ metadata: { name } })) : [] } },
});
expect(hasVMStateStorageClass.call(storageClasses([]))).toBe(false);
expect(hasVMStateStorageClass.call(storageClasses(['vmstate-persistence']))).toBe(true);
});
it('waits for StorageClasses before treating vmstate-persistence as unavailable', () => {
const vmStateStorageClassUnavailable = HarvesterEditVM.computed.vmStateStorageClassUnavailable;
expect(vmStateStorageClassUnavailable.call({ hasVMStateStorageClass: false, storageClassesLoaded: false })).toBe(false);
expect(vmStateStorageClassUnavailable.call({ hasVMStateStorageClass: false, storageClassesLoaded: true })).toBe(true);
expect(vmStateStorageClassUnavailable.call({ hasVMStateStorageClass: true, storageClassesLoaded: true })).toBe(false);
});
it('shows the persistent state storage banner outside view mode when vmstate-persistence is unavailable', () => {
const showPersistentStateStorageBanner = HarvesterEditVM.computed.showPersistentStateStorageBanner;
expect(showPersistentStateStorageBanner.call({ mode: 'create', vmStateStorageClassUnavailable: true })).toBe(true);
expect(showPersistentStateStorageBanner.call({ mode: 'edit', vmStateStorageClassUnavailable: true })).toBe(true);
expect(showPersistentStateStorageBanner.call({ mode: 'create', vmStateStorageClassUnavailable: false })).toBe(false);
expect(showPersistentStateStorageBanner.call({ mode: 'view', vmStateStorageClassUnavailable: true })).toBe(false);
});
it('blocks new persistent state without vmstate-persistence while allowing it to be turned off', () => {
const isPersistentStateControlDisabled = HarvesterEditVM.methods.isPersistentStateControlDisabled;
expect(isPersistentStateControlDisabled.call({ vmStateStorageClassUnavailable: false }, false)).toBe(false);
expect(isPersistentStateControlDisabled.call({ vmStateStorageClassUnavailable: true }, false)).toBe(true);
expect(isPersistentStateControlDisabled.call({ vmStateStorageClassUnavailable: true }, true)).toBe(false);
});
it('marks StorageClasses as loaded after the VM data fetch completes', async() => {
const form = { storageClassesLoaded: false };
const fetch = jest.spyOn(VM_MIXIN, 'fetch').mockImplementation().mockResolvedValue();
await HarvesterEditVM.fetch.call(form);
fetch.mockRestore();
expect(form.storageClassesLoaded).toBe(true);
});
it('links persistent state guidance to Storage Classes', () => {
const toStorageClass = HarvesterEditVM.computed.toStorageClass;
expect(toStorageClass.call({ $store: { getters: { clusterId: 'c-1' } } })).toStrictEqual({
name: 'harvester-c-cluster-resource',
params: { cluster: 'c-1', resource: 'harvesterhci.io.storage' },
});
});
it('describes creating the StorageClass without non-breaking spaces around guidance links', () => {
expect(translations).toContain('middle: or create the class on the');
expect(vmFormSource).not.toContain('&nbsp;');
});
it('clears persistent state selections only for create mode without vmstate-persistence', () => {
const clearPersistentState = HarvesterEditVM.methods.clearPersistentStateWithoutStorageClass;
const createForm = {
efiPersistentStateEnabled: true,
mode: 'create',
tpmPersistentStateEnabled: true,
vmStateStorageClassUnavailable: true,
};
clearPersistentState.call(createForm);
expect(createForm.tpmPersistentStateEnabled).toBe(false);
expect(createForm.efiPersistentStateEnabled).toBe(false);
const editForm = {
efiPersistentStateEnabled: true,
mode: 'edit',
tpmPersistentStateEnabled: true,
vmStateStorageClassUnavailable: true,
};
clearPersistentState.call(editForm);
expect(editForm.tpmPersistentStateEnabled).toBe(true);
expect(editForm.efiPersistentStateEnabled).toBe(true);
const storageClassForm = {
efiPersistentStateEnabled: true,
mode: 'create',
tpmPersistentStateEnabled: true,
vmStateStorageClassUnavailable: false,
};
clearPersistentState.call(storageClassForm);
expect(storageClassForm.tpmPersistentStateEnabled).toBe(true);
expect(storageClassForm.efiPersistentStateEnabled).toBe(true);
});
it('should stop the save when the cloud config is invalid', () => {
const { form, buttonCb } = saveWith('#cloud-config\nsome words\n');
@@ -20,6 +20,7 @@ import { clear } from '@shell/utils/array';
import { saferDump } from '@shell/utils/create-yaml';
import { exceptionToErrorsArray } from '@shell/utils/error';
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
import { INTERNAL_STORAGE_CLASS } from '../../config/types';
import { BEFORE_SAVE_HOOKS, AFTER_SAVE_HOOKS } from '@shell/mixins/child-hook';
import CreateEditView from '@shell/mixins/create-edit-view';
import { parseVolumeClaimTemplates } from '@pkg/utils/vm';
@@ -40,6 +41,7 @@ import Reserved from './VirtualMachineReserved';
import Filesystem from './VirtualMachineFilesystem';
import { Banner } from '@components/Banner';
import MessageLink from '@shell/components/MessageLink';
import { STORAGE_CLASS } from '@shell/config/types';
export default {
name: 'HarvesterEditVM',
@@ -89,6 +91,11 @@ export default {
},
},
async fetch() {
await VM_MIXIN.fetch.call(this);
this.storageClassesLoaded = true;
},
data() {
const cloneVM = clone(this.value);
const isRestartImmediately = this.value.actualState === 'Running';
@@ -111,12 +118,27 @@ export default {
hostname,
isRestartImmediately,
customizeDisplayName,
storageClassesLoaded: false,
};
},
computed: {
...mapGetters({ t: 'i18n/t' }),
hasVMStateStorageClass() {
const storageClasses = this.$store.getters[`${ this.inStore }/all`](STORAGE_CLASS) || [];
return storageClasses.some((storageClass) => storageClass.metadata?.name === INTERNAL_STORAGE_CLASS.VMSTATE_PERSISTENCE);
},
vmStateStorageClassUnavailable() {
return this.storageClassesLoaded && !this.hasVMStateStorageClass;
},
showPersistentStateStorageBanner() {
return this.mode !== 'view' && this.vmStateStorageClassUnavailable;
},
// VM display name is stored as an annotation; bind a dedicated input to it
// so we don't have to mutate metadata.name (which would break the k8s PUT).
displayName: {
@@ -135,6 +157,13 @@ export default {
};
},
toStorageClass() {
return {
name: 'harvester-c-cluster-resource',
params: { cluster: this.$store.getters['clusterId'], resource: HCI.STORAGE },
};
},
machineTypeOptions() {
return this.machineTypes.map((type) => {
if (!type) return { label: 'None', value: '' };
@@ -245,6 +274,25 @@ export default {
},
watch: {
hasVMStateStorageClass: {
handler() {
this.clearPersistentStateWithoutStorageClass();
},
immediate: true,
},
storageClassesLoaded() {
this.clearPersistentStateWithoutStorageClass();
},
tpmPersistentStateEnabled() {
this.clearPersistentStateWithoutStorageClass();
},
efiPersistentStateEnabled() {
this.clearPersistentStateWithoutStorageClass();
},
templateId: {
async handler(id, old) {
if (!id) {
@@ -367,6 +415,17 @@ export default {
},
methods: {
isPersistentStateControlDisabled(persistentStateEnabled) {
return this.vmStateStorageClassUnavailable && !persistentStateEnabled;
},
clearPersistentStateWithoutStorageClass() {
if (this.mode === 'create' && this.vmStateStorageClassUnavailable) {
this.tpmPersistentStateEnabled = false;
this.efiPersistentStateEnabled = false;
}
},
cancelAction() {
const { fromPage = HCI.VM } = this.$route?.query; // default back to VM list page
const cancelOverride = {
@@ -807,6 +866,7 @@ export default {
<Checkbox
v-if="value.tpmPersistentStateFeatureEnabled && tpmEnabled"
v-model:value="tpmPersistentStateEnabled"
:disabled="isPersistentStateControlDisabled(tpmPersistentStateEnabled)"
class="check"
type="checkbox"
:label="t('harvester.virtualMachine.systemOptions.tpmPersistentState')"
@@ -824,6 +884,7 @@ export default {
<Checkbox
v-if="value.efiPersistentStateFeatureEnabled && efiEnabled"
v-model:value="efiPersistentStateEnabled"
:disabled="isPersistentStateControlDisabled(efiPersistentStateEnabled)"
class="check"
type="checkbox"
:label="t('harvester.virtualMachine.systemOptions.efiPersistentState')"
@@ -840,6 +901,22 @@ export default {
/>
</div>
<Banner
v-if="showPersistentStateStorageBanner"
color="info"
>
<span>
{{ t('harvester.virtualMachine.systemOptions.persistentStateStorageClassUnavailable.prefix') }}
<router-link :to="to">
{{ t('harvester.virtualMachine.systemOptions.persistentStateStorageClassUnavailable.host') }}
</router-link>
{{ t('harvester.virtualMachine.systemOptions.persistentStateStorageClassUnavailable.middle') }}
<router-link :to="toStorageClass">
{{ t('harvester.virtualMachine.systemOptions.persistentStateStorageClassUnavailable.storageClass') }}
</router-link>{{ t('harvester.virtualMachine.systemOptions.persistentStateStorageClassUnavailable.suffix') }}
</span>
</Banner>
<Banner
v-if="showCpuPinningBanner"
:color="mode === 'create' ? 'info' : 'warning'"
+117 -1
View File
@@ -829,6 +829,12 @@ harvester:
tpmPersistentState: TPM Persistent State
efiEnabled: Booting in EFI mode
efiPersistentState: EFI Persistent State
persistentStateStorageClassUnavailable:
prefix: Persistent TPM and EFI state require the vmstate-persistence StorageClass. Add a Longhorn disk on the
host: Hosts page
middle: or create the class on the
storageClass: Storage Classes page
suffix: .
secureBoot: Secure Boot
usbTip: Provides an absolute pointer device which often helps with getting a consistent mouse cursor position in VNC.
sshTitle: Add Public SSH Key
@@ -1273,6 +1279,10 @@ harvester:
currentVersion: CURRENT VERSION
versionLabel: AVAILABLE COMPATIBLE VERSIONS
enableLogging: Enable Logging
repositoryStorageClass: Upgrade Storage Class
repositoryStorageClassTooltip: Select the StorageClass for the temporary upgrade repository volume that stores the ISO during the upgrade.
repositoryStorageClassPlaceholder: Select a StorageClass
repositoryStorageClassNoOptions: No StorageClasses are available.
skipSingleReplicaDetachedVol: Skip checking single-replica detached volumes
upgradeNode: Upgrading Node
upgradeSysService: Upgrading System Service
@@ -1494,8 +1504,19 @@ harvester:
remoteVpc:
label: Remote VPC
infoBanner: The static route destination CIDR must cover all subnets CIDR from remote VPC Peer. Read <a href="{url}" target="_blank">VPC Peering Configuration Examples</a> for more information.
bfdPort:
label: BFD Port
banner: The Egress Gateways of this VPC that have BFD enabled use the BFD port to detect a failed gateway instance quickly.
ip:
label: IP Address
placeholder: e.g. 10.255.255.255
tooltip: An IP address that doesn't conflict with any other address. For dual-stack, enter an IPv4 and an IPv6 address, separated by a comma.
gatewaysNeedPort: 'Egress Gateways of this VPC that have BFD enabled stop working without its BFD port: {gateways}.'
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.'
natGateway:
label: Gateways
label: NAT Gateways
internalTenantNetwork:
label: Internal Tenant Network
placeholder: Select a Virtual Machine Network
@@ -1512,6 +1533,95 @@ harvester:
label: External Subnets
addLabel: Add
placeholder: Select a subnet
egressGateway:
label: Egress Gateways
vpc:
label: VPC
placeholder: Select a VPC
replicas:
label: Replicas
tooltip: The number of gateway instances. Traffic is spread across all instances.
internalSubnet:
label: Internal Subnet
placeholder: Select a subnet of the VPC
noVpc: Select a VPC first
none: VPC {vpc} has no subnet on a virtual machine network
tooltip: The subnet of the VPC that the gateway instances are attached to. Only subnets of a virtual machine network are listed.
externalNetworkMode:
label: External Network
tooltip: How the gateway instances reach the external network. Primary CNI uses the pod network of the cluster, so it needs no external subnet and has no external IPs or bandwidth limits. This can't be changed after the gateway is created.
attachment: External subnet
primaryCNI: Primary CNI
externalSubnet:
label: External Subnet
placeholder: Select a subnet
tooltip: The subnet that connects the gateway instances to the external network. Only subnets of a virtual machine network are listed.
policies:
label: Policies
description: Traffic from these subnets of the VPC goes out through the gateway. Each subnet can be in one list only.
placeholder: Select subnets of the VPC
noVpc: Select a VPC on the Basic tab first
noSubnets: VPC {vpc} has no subnets
snatSubnets:
label: Subnets with SNAT
tooltip: Traffic from these subnets leaves with the gateway's external IP.
noSnatSubnets:
label: Subnets without SNAT
tooltip: Traffic from these subnets keeps its source IP, so the external network needs a route back to them.
ipBlocks:
snat: IP Blocks with SNAT
noSnat: IP Blocks without SNAT
tooltip: Set outside this form, which keeps them as they are.
ips:
label: IP Addresses
banner: Optional. When you set IP addresses, set at least one for each replica. Internal IPs must be in the internal subnet and external IPs in the external subnet.
bannerPrimaryCNI: Optional. When you set internal IPs, set at least one for each replica, in the internal subnet. The external IPs come from the pod network.
internal:
label: Internal IPs
add: Add Internal IP
placeholder: e.g. 172.20.10.41
external:
label: External IPs
add: Add External IP
placeholder: e.g. 10.115.48.220
bfd:
label: BFD
enabled: Bidirectional Forwarding Detection (BFD)
tooltip: Detect a failed gateway instance quickly and move its traffic to the other instances.
vpcBfdPort:
prefix: BFD also needs the BFD port of VPC {vpc}, which isn't enabled.
middle: Edit the VPC
suffix: to enable it.
minRX:
label: Receive Interval
tooltip: The shortest interval at which the gateway accepts BFD packets.
minTX:
label: Transmit Interval
tooltip: The shortest interval at which the gateway sends BFD packets.
multiplier:
label: Multiplier
tooltip: The number of missed packets after which a gateway instance is considered down.
milliseconds: ms
bandwidth:
label: Bandwidth
banner: Optional. Limits the bandwidth of each gateway instance. Enter a whole number in Mbps, such as 10, or a quantity in bits per second, such as 100M or 1Gi.
placeholder: e.g. 10
ingress:
label: Ingress
egress:
label: Egress
validation:
replicas: '"Replicas" must be a whole number from 0 to 10.'
policyRequired: Select at least one subnet, in either list.
policyExternalSubnet: Subnet {subnet} is the external subnet of the gateway, so it can't be in a policy.
sameSubnet: The internal and external subnets must be different.
ipList: '"{key}" must contain valid IP addresses.'
ipDuplicate: '"{key}" must not repeat an address.'
ipSubnet: '"{key}" must be usable addresses of subnet {subnet} ({cidr}), not its network, broadcast or gateway address.'
ipCount: '"{key}" must have at least one address for each replica ({replicas}).'
bfd: The BFD intervals must be whole numbers from 1 to 3600000.
bfdMultiplier: The BFD multiplier must be a whole number from 1 to 3600000.
bandwidth: The bandwidth must be a whole number in Mbps or a quantity such as 100M or 1Gi.
externalIP:
label: External IPs
natGateway:
@@ -1734,6 +1844,7 @@ harvester:
imagePreloadStrategy: Image Preload Strategy
nodeUpgradeOption: Node Upgrade Option
restoreVM: Restore VM
shutdownVMOnMigrationFailure: Shut Down VM on Migration Failure
strategy: Strategy
pauseNodes: Pause Nodes
strategyType: Strategy Type
@@ -2757,6 +2868,11 @@ typeLabel:
one { NAT Gateway }
other { NAT Gateways }
}
kubeovn.io.vpcegressgateway: |-
{count, plural,
one { Egress Gateway }
other { Egress Gateways }
}
kubeovn.io.iptablessnatrule: |-
{count, plural,
one { Source Rule }
@@ -0,0 +1,57 @@
import HciSubnet from '../kubeovn.io.subnet';
jest.mock('../harvester', () => ({ __esModule: true, default: class {} }));
function createSubnet(spec) {
return Object.assign(Object.create(HciSubnet.prototype), { spec });
}
describe('class HciSubnet', () => {
it.each([
['ovn', null, false],
['', null, false],
['vmnet.default.ovn', { name: 'vmnet', namespace: 'default' }, true],
['extnet.default', { name: 'extnet', namespace: 'default' }, false],
['extnet.default.other', null, false],
['a.b.ovn.extra', null, false],
])('should read the network attachment of provider "%s"', (provider, attachment, overlay) => {
const subnet = createSubnet({ provider });
expect(subnet.networkAttachment).toStrictEqual(attachment);
expect(subnet.isOverlayAttachment).toBe(overlay);
});
it.each([
['172.20.10.41', true],
['172.20.10.1', false],
['172.20.10.0', false],
['172.20.10.255', false],
['172.20.10.254', true],
['172.20.11.1', false],
['fd00::10', true],
['fd00::1', false],
['fd00::', false],
['fd00::ff', false],
['fd01::10', false],
['not-an-ip', false],
])('should tell whether %s can be assigned in a dual-stack subnet', (ip, assignable) => {
const subnet = createSubnet({ cidrBlock: '172.20.10.0/24,fd00::/120', gateway: '172.20.10.1,fd00::1' });
expect(subnet.canAssignIP(ip)).toBe(assignable);
});
it('should tell whether the subnet contains an IP, its gateway included', () => {
const subnet = createSubnet({ cidrBlock: '172.20.10.0/24', gateway: '172.20.10.1' });
expect(subnet.containsIP('172.20.10.1')).toBe(true);
expect(subnet.containsIP('10.255.255.255')).toBe(false);
});
it.each([
['10.0.0.0/31', '10.0.0.0', true],
['10.0.0.0/31', '10.0.0.1', true],
['10.0.0.5/32', '10.0.0.5', true],
])('should use every address of a point-to-point subnet %s', (cidrBlock, ip, assignable) => {
expect(createSubnet({ cidrBlock }).canAssignIP(ip)).toBe(assignable);
});
});
@@ -0,0 +1,56 @@
import HciVPC from '../kubeovn.io.vpc';
jest.mock('../harvester', () => ({ __esModule: true, default: class {} }));
function createVpc(spec, { subnets = [], gateways = [], hasGatewayType = true } = {}) {
const $getters = {
all: (type) => (type === 'kubeovn.io.subnet' ? subnets : gateways),
schemaFor: () => hasGatewayType,
};
return Object.assign(Object.create(HciVPC.prototype), {
metadata: { name: 'commonvpc' }, spec, $getters
});
}
describe('class HciVPC', () => {
it.each([
['no BFD port', {}, false],
['a disabled BFD port', { bfdPort: { enabled: false, ip: '10.255.255.255' } }, false],
['an enabled BFD port without an IP', { bfdPort: { enabled: true, ip: ' ' } }, false],
['an enabled BFD port with an IP', { bfdPort: { enabled: true, ip: '10.255.255.255' } }, true],
])('should report a VPC with %s', (_, spec, enabled) => {
expect(createVpc(spec).bfdPortEnabled).toBe(enabled);
});
it('should list the subnets of the VPC', () => {
const subnets = [{ id: 'subnetinternal', spec: { vpc: 'commonvpc' } }, { id: 'ovn-default', spec: { vpc: 'ovn-cluster' } }];
expect(createVpc({}, { subnets }).subnetResources.map((subnet) => subnet.id)).toStrictEqual(['subnetinternal']);
});
it('should list the gateways of the VPC that have BFD on', () => {
const gateways = [
{ id: 'default/bfd-on', spec: { vpc: 'commonvpc', bfd: { enabled: true } } },
{ id: 'default/bfd-off', spec: { vpc: 'commonvpc', bfd: { enabled: false } } },
{ id: 'default/other-vpc', spec: { vpc: 'othervpc', bfd: { enabled: true } } },
];
expect(createVpc({}, { gateways }).bfdEgressGateways.map((gateway) => gateway.id)).toStrictEqual(['default/bfd-on']);
});
it('should count a gateway without a VPC as one of the default VPC', () => {
const gateways = [{ id: 'default/no-vpc', spec: { bfd: { enabled: true } } }];
const vpc = createVpc({}, { gateways });
vpc.metadata.name = 'ovn-cluster';
expect(vpc.bfdEgressGateways.map((gateway) => gateway.id)).toStrictEqual(['default/no-vpc']);
});
it('should list no gateways when the cluster has no Egress Gateway type', () => {
const gateways = [{ id: 'default/bfd-on', spec: { vpc: 'commonvpc', bfd: { enabled: true } } }];
expect(createVpc({}, { gateways, hasGatewayType: false }).bfdEgressGateways).toStrictEqual([]);
});
});
+60
View File
@@ -1,12 +1,72 @@
import ipaddr from 'ipaddr.js';
import { clone } from '@shell/utils/object';
import { HCI } from '../types';
import HarvesterResource from './harvester';
const splitList = (value) => `${ value || '' }`.split(',').map((item) => item.trim()).filter(Boolean);
const parseIP = (ip) => {
try {
return ipaddr.parse(ip);
} catch (e) {
return null;
}
};
const parseCIDR = (cidr) => {
try {
return ipaddr.parseCIDR(cidr);
} catch (e) {
return null;
}
};
export default class HciSubnet extends HarvesterResource {
get groupByVpc() {
return this.spec?.vpc || '';
}
// The provider names the NetworkAttachmentDefinition the subnet is attached to, as <nad>.<namespace>
// or <nad>.<namespace>.ovn. Kube-OVN's own subnets (join, ovn-default) use "ovn" and have none.
get networkAttachment() {
const [name, namespace, type, ...rest] = `${ this.spec?.provider || '' }`.split('.');
if (!name || !namespace || rest.length || (type !== undefined && type !== 'ovn')) {
return null;
}
return { name, namespace };
}
// Kube-OVN, as Harvester runs it (a secondary CNI), only puts a gateway's internal network on a
// subnet whose provider is <nad>.<namespace>.ovn
get isOverlayAttachment() {
return !!this.networkAttachment && `${ this.spec?.provider }`.endsWith('.ovn');
}
containsIP(ip) {
const address = parseIP(ip);
return !!address && splitList(this.spec?.cidrBlock).map(parseCIDR).some((range) => range?.[0].kind() === address.kind() && address.match(range));
}
// Kube-OVN assigns static IPs from the network address + 1 to the broadcast address - 1 of the subnet's
// CIDR (a /31 or /127 uses both), and never the gateway
canAssignIP(ip) {
const address = parseIP(ip);
const range = address && splitList(this.spec?.cidrBlock).map(parseCIDR).find((item) => item?.[0].kind() === address.kind() && address.match(item));
if (!range) {
return false;
}
const [base, prefix] = range;
const family = address.kind() === 'ipv4' ? ipaddr.IPv4 : ipaddr.IPv6;
const cidr = `${ base.toString() }/${ prefix }`;
const edges = prefix < (address.kind() === 'ipv4' ? 31 : 127) ? [family.networkAddressFromCIDR(cidr), family.broadcastAddressFromCIDR(cidr)] : [];
const gateways = splitList(this.spec?.gateway).map(parseIP).filter((gateway) => gateway?.kind() === address.kind());
return ![...edges, ...gateways].some((other) => other.toNormalizedString() === address.toNormalizedString());
}
get doneOverride() {
const detailLocation = clone(this.listLocation);
+23
View File
@@ -2,6 +2,9 @@ import { clone } from '@shell/utils/object';
import { HCI } from '../types';
import HarvesterResource from './harvester';
// Kube-OVN's cluster router, which a gateway without spec.vpc uses
const DEFAULT_VPC = 'ovn-cluster';
export default class HciVPC extends HarvesterResource {
get parentNameOverride() {
return this.$rootGetters['i18n/t'](`typeLabel."${ HCI.VPC }"`, { count: 1 })?.trim();
@@ -15,6 +18,26 @@ export default class HciVPC extends HarvesterResource {
return detailLocation;
}
get subnetResources() {
return (this.$getters['all'](HCI.SUBNET) || []).filter((subnet) => subnet.spec?.vpc === this.metadata?.name);
}
// The Egress Gateways of this VPC that have BFD on, which need its BFD port
get bfdEgressGateways() {
if (!this.$getters['schemaFor'](HCI.VPC_EGRESS_GATEWAY)) {
return [];
}
return (this.$getters['all'](HCI.VPC_EGRESS_GATEWAY) || [])
.filter((gateway) => (gateway.spec?.vpc || DEFAULT_VPC) === this.metadata?.name && gateway.spec?.bfd?.enabled);
}
get bfdPortEnabled() {
const bfdPort = this.spec?.bfdPort;
return bfdPort?.enabled === true && !!`${ bfdPort.ip || '' }`.trim();
}
get parentLocationOverride() {
return {
...this.listLocation,
@@ -0,0 +1,175 @@
import { shallowMount } from '@vue/test-utils';
import { HCI as HCI_ANNOTATIONS } from '@pkg/harvester/config/labels-annotations';
import HarvesterAirgapUpgrade from '../index.vue';
function createForm(overrides = {}) {
const image = {
metadata: { annotations: {} },
spec: {
displayName: 'upgrade.iso',
url: 'https://example.com/upgrade.iso',
},
save: jest.fn(),
};
const imageResult = {
id: 'harvester-system/upgrade-image',
notifyGeneratedName: jest.fn(),
uploadImage: jest.fn().mockResolvedValue({}),
};
image.save.mockResolvedValue(imageResult);
return {
imageSource: 'new',
sourceType: 'upload',
storageClassName: 'fast',
repositoryStorageClassEnabled: true,
uploadImageId: '',
imageId: '',
imageValue: image,
value: {
metadata: { annotations: {} }, spec: {}, save: jest.fn().mockResolvedValue(), notifyGeneratedName: jest.fn()
},
canEnableLogging: false,
skipSingleReplicaDetachedVolFeatureEnabled: false,
skipSingleReplicaDetachedVol: false,
allOSImages: [],
errors: [],
file: {},
done: jest.fn(),
preprocessImageName: HarvesterAirgapUpgrade.methods.preprocessImageName,
$store: { getters: { 'i18n/t': (key) => key } },
...overrides,
};
}
describe('page: HarvesterAirgapUpgrade', () => {
it('uses the shared Upgrade Repository StorageClass selector', () => {
expect(HarvesterAirgapUpgrade.components.UpgradeRepositoryStorageClass).toBeDefined();
});
it('leaves the default empty when it is unavailable for upgrade repositories', async() => {
const form = {
storageClassName: 'previous',
initImageValue: jest.fn(),
$store: {
dispatch: jest.fn()
.mockResolvedValueOnce([])
.mockResolvedValueOnce([
{
name: 'lvm-local', isDefault: true, provisioner: 'lvm.driver.harvesterhci.io'
},
{ name: 'fast' }
])
.mockResolvedValueOnce({})
}
};
await HarvesterAirgapUpgrade.fetch.call(form);
expect(form.storageClassName).toBe('');
});
it('prevents file upload until an upgrade StorageClass is selected', () => {
const disableUploadButton = HarvesterAirgapUpgrade.computed.disableUploadButton;
expect(disableUploadButton.call({
sourceType: 'upload',
isUploading: false,
repositoryStorageClassEnabled: true,
storageClassName: ''
})).toBe(true);
});
it('unlocks the StorageClass selector after switching an uploaded image to URL', async() => {
const wrapper = shallowMount(HarvesterAirgapUpgrade, {
global: {
mocks: {
$store: {
getters: {
'harvester-common/getFeatureEnabled': (feature) => feature === 'repositoryStorageClass',
'harvester/all': () => [],
'harvester/schemaFor': () => false,
},
dispatch: jest.fn().mockResolvedValue({
metadata: { annotations: {} },
spec: {
checksum: '', displayName: '', sourceType: 'upload', url: ''
},
}),
},
t: (key) => key,
},
stubs: {
CruResource: { template: '<div><slot /></div>' },
UpgradeRepositoryStorageClass: {
props: ['disabled'],
template: '<div data-testid="storage-class" :data-disabled="disabled" />',
},
},
},
});
await wrapper.setData({
value: {},
imageValue: {
spec: {
checksum: '', displayName: '', sourceType: 'upload', url: ''
},
remove: jest.fn().mockResolvedValue(),
},
sourceType: 'upload',
uploadController: { abort: jest.fn() },
uploadImageId: 'harvester-system/upgrade-image',
});
expect(wrapper.find('[data-testid="storage-class"]').attributes('data-disabled')).toBe('true');
await wrapper.setData({ sourceType: 'download' });
expect(wrapper.find('[data-testid="storage-class"]').attributes('data-disabled')).toBe('false');
});
it('saves an uploaded upgrade image on the selected StorageClass', async() => {
const form = createForm();
await HarvesterAirgapUpgrade.methods.uploadFile.call(form, { name: 'upgrade.iso' });
expect(form.imageValue.spec.targetStorageClassName).toBe('fast');
expect(form.uploadImageId).toBe('harvester-system/upgrade-image');
});
it('saves a downloaded upgrade image on the selected StorageClass', async() => {
const form = createForm({ sourceType: 'download' });
await HarvesterAirgapUpgrade.methods.save.call(form, jest.fn());
expect(form.imageValue.spec.targetStorageClassName).toBe('fast');
});
it('keeps the legacy StorageClass when the feature is disabled', async() => {
const form = createForm({ repositoryStorageClassEnabled: false });
await HarvesterAirgapUpgrade.methods.uploadFile.call(form, { name: 'upgrade.iso' });
expect(form.imageValue.spec.targetStorageClassName).toBe('longhorn-static');
});
it('does not change the StorageClass of an existing image', async() => {
const form = createForm({
imageSource: 'exist',
imageId: 'harvester-system/existing-image',
});
form.imageValue.spec.targetStorageClassName = 'existing-class';
await HarvesterAirgapUpgrade.methods.save.call(form, jest.fn());
expect(form.imageValue.spec.targetStorageClassName).toBe('existing-class');
});
it('does not add an Upgrade StorageClass annotation when the image selects the class', async() => {
const form = createForm({ uploadImageId: 'harvester-system/upgrade-image' });
await HarvesterAirgapUpgrade.methods.save.call(form, jest.fn());
expect(form.value.metadata.annotations[HCI_ANNOTATIONS.UPGRADE_STORAGE_CLASS]).toBeUndefined();
});
});
@@ -11,6 +11,8 @@ import { HCI } from '../../../../types';
import { PRODUCT_NAME as HARVESTER_PRODUCT } from '../../../../config/harvester';
import ImagePercentageBar from '@shell/components/formatter/ImagePercentageBar';
import { Banner } from '@components/Banner';
import { STORAGE_CLASS } from '@shell/config/types';
import UpgradeRepositoryStorageClass, { getUpgradeRepositoryStorageClassDefault } from '../../../../components/UpgradeRepositoryStorageClass';
import isEmpty from 'lodash/isEmpty';
const IMAGE_METHOD = {
@@ -25,13 +27,18 @@ const UPLOAD = 'upload';
export default {
name: 'HarvesterAirgapUpgrade',
components: {
Checkbox, CruResource, LabeledSelect, LabeledInput, RadioGroup, UpgradeInfo, ImagePercentageBar, Banner
Checkbox, CruResource, LabeledSelect, LabeledInput, RadioGroup, UpgradeInfo, UpgradeRepositoryStorageClass, ImagePercentageBar, Banner
},
inheritAttrs: false,
async fetch() {
await this.$store.dispatch('harvester/findAll', { type: HCI.IMAGE });
const [, storageClasses] = await Promise.all([
this.$store.dispatch('harvester/findAll', { type: HCI.IMAGE }),
this.$store.dispatch('harvester/findAll', { type: STORAGE_CLASS })
]);
this.storageClassName = getUpgradeRepositoryStorageClassDefault(storageClasses);
const value = await this.$store.dispatch('harvester/create', {
type: HCI.UPGRADE,
@@ -65,6 +72,7 @@ export default {
uploadResult: null,
imageValue: null,
enableLogging: true,
storageClassName: '',
IMAGE_METHOD,
skipSingleReplicaDetachedVol: false,
errors: [],
@@ -122,6 +130,18 @@ export default {
return this.$store.getters['harvester/schemaFor'](HCI.UPGRADE_LOG);
},
storageClasses() {
return this.$store.getters['harvester/all'](STORAGE_CLASS) || [];
},
canSubmitUpgrade() {
return this.enableUpgrade && (!this.repositoryStorageClassEnabled || !this.createNewImage || !!this.storageClassName);
},
repositoryStorageClassEnabled() {
return this.$store.getters['harvester-common/getFeatureEnabled']('repositoryStorageClass');
},
uploadProgress() {
const image = this.$store.getters['harvester/byId'](HCI.IMAGE, this.imageValue.id);
@@ -165,7 +185,7 @@ export default {
},
disableUploadButton() {
return this.sourceType === UPLOAD && this.isUploading;
return this.sourceType === UPLOAD && (this.isUploading || (this.repositoryStorageClassEnabled && !this.storageClassName));
},
},
@@ -229,7 +249,7 @@ export default {
}
this.imageValue.spec.sourceType = DOWNLOAD;
this.imageValue.spec.targetStorageClassName = 'longhorn-static';
this.imageValue.spec.targetStorageClassName = this.repositoryStorageClassEnabled ? this.storageClassName : 'longhorn-static';
res = await this.imageValue.save();
res.notifyGeneratedName?.();
@@ -251,7 +271,10 @@ export default {
this.value.spec.logEnabled = this.enableLogging;
}
if (this.skipSingleReplicaDetachedVolFeatureEnabled) {
this.value.metadata.annotations = { [HCI_ANNOTATIONS.SKIP_SINGLE_REPLICA_DETACHED_VOL]: JSON.stringify(this.skipSingleReplicaDetachedVol) };
this.value.metadata.annotations = {
...this.value.metadata.annotations,
[HCI_ANNOTATIONS.SKIP_SINGLE_REPLICA_DETACHED_VOL]: JSON.stringify(this.skipSingleReplicaDetachedVol)
};
}
await this.value.save();
this.value.notifyGeneratedName?.();
@@ -288,7 +311,7 @@ export default {
this.imageValue.spec.url = '';
try {
this.imageValue.spec.targetStorageClassName = 'longhorn-static';
this.imageValue.spec.targetStorageClassName = this.repositoryStorageClassEnabled ? this.storageClassName : 'longhorn-static';
const res = await this.imageValue.save();
@@ -354,6 +377,10 @@ export default {
watch: {
async sourceType(neu) {
if (neu === DOWNLOAD) {
this.uploadImageId = '';
}
if (neu === DOWNLOAD && this.imageValue && this.uploadController) {
if (this.uploadController) {
this.uploadController.abort();
@@ -412,7 +439,7 @@ export default {
:errors="errors"
:can-yaml="false"
finish-button-mode="upgrade"
:validation-passed="enableUpgrade"
:validation-passed="canSubmitUpgrade"
:cancel-event="true"
@finish="save"
@cancel="done"
@@ -481,6 +508,14 @@ export default {
required
/>
<UpgradeRepositoryStorageClass
v-if="repositoryStorageClassEnabled"
v-model:value="storageClassName"
class="mb-20"
:disabled="uploadImageId !== ''"
:storage-classes="storageClasses"
/>
<LabeledInput
v-model:value="imageValue.spec.checksum"
class="mb-10"
+1
View File
@@ -32,6 +32,7 @@ export const HCI = {
IPTABLES_DNAT_RULE: 'kubeovn.io.iptablesdnatrule',
PROVIDER_NETWORK: 'kubeovn.io.providernetwork',
VPC_NAT_GATEWAY: 'kubeovn.io.vpcnatgateway',
VPC_EGRESS_GATEWAY: 'kubeovn.io.vpcegressgateway',
VM_IMAGE_DOWNLOADER: 'harvesterhci.io.virtualmachineimagedownloader',
SUPPORT_BUNDLE: 'harvesterhci.io.supportbundle',
NETWORK_ATTACHMENT: 'harvesterhci.io.networkattachmentdefinition',
@@ -21,6 +21,11 @@ describe('featureEnabled', () => {
expect(featureEnabled('vncPreserveSession', 'v1.7.0')).toBe(true);
});
it('should enable repositoryStorageClass only from Harvester v1.10.0', () => {
expect(featureEnabled('repositoryStorageClass', 'v1.9.1')).toBe(false);
expect(featureEnabled('repositoryStorageClass', 'v1.10.0')).toBe(true);
});
it('should return false for unknown features', () => {
expect(featureEnabled('doesNotExist', 'v1.8.0')).toBe(false);
});
+543 -55
View File
@@ -539,7 +539,15 @@
"@smithy/types" "^4.14.1"
tslib "^2.6.2"
"@aws-sdk/types@^3.222.0", "@aws-sdk/types@^3.973.8":
"@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":
version "3.973.8"
resolved "https://registry.yarnpkg.com/@aws-sdk/types/-/types-3.973.8.tgz#7352cb74a5f8bae1218eee63e714cf94302911c5"
integrity sha512-gjlAdtHMbtR9X5iIhVUvbVcy55KnznpC6bkDUWW9z915bi0ckdUr5cjf16Kp6xq0bP5HBD2xzgbL9F9Quv5vUw==
@@ -619,7 +627,16 @@
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.29.7", "@babel/code-frame@^7.8.3":
"@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":
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==
@@ -628,7 +645,12 @@
js-tokens "^4.0.0"
picocolors "^1.1.1"
"@babel/compat-data@^7.28.6", "@babel/compat-data@^7.29.0", "@babel/compat-data@^7.29.7":
"@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":
version "7.29.7"
resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.29.7.tgz#6f0237f0f36d2e51c0570a636faed9d2d0efe629"
integrity sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==
@@ -654,7 +676,18 @@
json5 "^2.2.3"
semver "^6.3.1"
"@babel/generator@^7.29.7", "@babel/generator@^7.7.2":
"@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":
version "7.29.7"
resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.29.7.tgz#cca0b8827e6bcf3ba176788e7f3b180ad6db2fa3"
integrity sha512-DkXD5OJQaAQIdZ1bt3UZdEnHAn9Imd3IVBdX03UFe+ony9Ojw5pzr9YVKGDY1jt+Gcn/FnGkNf8r+Vj5NOJWtQ==
@@ -665,14 +698,32 @@
"@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", "@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":
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":
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", "@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":
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":
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==
@@ -683,7 +734,20 @@
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", "@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":
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":
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==
@@ -716,11 +780,24 @@
lodash.debounce "^4.0.8"
resolve "^1.22.11"
"@babel/helper-globals@^7.28.0", "@babel/helper-globals@^7.29.7":
"@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":
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"
@@ -729,7 +806,15 @@
"@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", "@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":
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":
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==
@@ -737,7 +822,16 @@
"@babel/traverse" "^7.29.7"
"@babel/types" "^7.29.7"
"@babel/helper-module-transforms@^7.27.1", "@babel/helper-module-transforms@^7.28.6", "@babel/helper-module-transforms@^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":
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==
@@ -746,6 +840,13 @@
"@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"
@@ -753,7 +854,12 @@
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.29.7", "@babel/helper-plugin-utils@^7.8.0":
"@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":
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==
@@ -767,7 +873,16 @@
"@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", "@babel/helper-replace-supers@^7.29.7":
"@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":
version "7.29.7"
resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz#bc3c3964329043c79112e513c1b198f16589ac21"
integrity sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==
@@ -776,7 +891,15 @@
"@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", "@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":
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":
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==
@@ -784,17 +907,32 @@
"@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", "@babel/helper-validator-identifier@^7.29.7":
"@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":
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", "@babel/helper-validator-option@^7.29.7":
"@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":
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==
@@ -816,7 +954,21 @@
"@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.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.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":
version "7.29.9"
resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.29.9.tgz#e7ee0a24f752c5296c6455855ccb72662e67ea96"
integrity sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==
@@ -981,7 +1133,14 @@
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", "@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":
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":
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==
@@ -1106,7 +1265,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.28.6":
"@babel/plugin-transform-class-static-block@7.29.7":
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==
@@ -1114,6 +1273,14 @@
"@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"
@@ -1578,7 +1745,7 @@
resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.28.6.tgz#d267a43cb1836dc4d182cce93ae75ba954ef6d2b"
integrity sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==
"@babel/template@7", "@babel/template@^7.27.2", "@babel/template@^7.28.6", "@babel/template@^7.29.7", "@babel/template@^7.3.3":
"@babel/template@7", "@babel/template@^7.29.7":
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==
@@ -1587,7 +1754,29 @@
"@babel/parser" "^7.29.7"
"@babel/types" "^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":
"@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":
version "7.29.7"
resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.29.7.tgz#c47b07a41b95da0907d026b5dd894d98de7d2f2d"
integrity sha512-EhlfNQtZ+NK22w5BM61ciuiq1m58ed33Wr1Xan//ZRTy6hgjnwyCffRYwzsGXdASJSUJ1guZILsErh1eQcl+zw==
@@ -1600,7 +1789,23 @@
"@babel/types" "^7.29.7"
debug "^4.3.1"
"@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":
"@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":
version "7.29.8"
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.29.8.tgz#1229eef31d85156d70fa3f4cd859376d0eaf6863"
integrity sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==
@@ -2447,13 +2652,20 @@
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.0.0", "@lezer/highlight@^1.1.3", "@lezer/highlight@^1.2.0":
"@lezer/highlight@1.2.4":
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"
@@ -3130,7 +3342,15 @@
"@smithy/core" "^3.24.1"
tslib "^2.6.2"
"@smithy/protocol-http@^5.1.3", "@smithy/protocol-http@^5.3.14":
"@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":
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==
@@ -3138,7 +3358,16 @@
"@smithy/core" "^3.24.1"
tslib "^2.6.2"
"@smithy/querystring-builder@^4.0.5", "@smithy/querystring-builder@^4.2.14":
"@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":
version "4.3.1"
resolved "https://registry.yarnpkg.com/@smithy/querystring-builder/-/querystring-builder-4.3.1.tgz#3de7adc9c32270907c99d6ed0f1faea55b182184"
integrity sha512-toyi8sXPWDNoVH6yK7sXJ9dm5uxw2tWLCHzPy/t16Fvl62Es4vXQXzlilyNaw+DqFwxSlrFClh0rGLPUF2p9Lg==
@@ -3172,7 +3401,14 @@
"@smithy/types" "^4.14.1"
tslib "^2.6.2"
"@smithy/types@^4.14.1", "@smithy/types@^4.3.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":
version "4.14.1"
resolved "https://registry.yarnpkg.com/@smithy/types/-/types-4.14.1.tgz#aba92b4cdb406f2a2b062e82f1e3728d809a7c23"
integrity sha512-59b5HtSVrVR/eYNei3BUj3DCPKD/G7EtDDe7OEJE7i7FtQFugYo6MxbotS8mVJkLNVf8gYaAlEBwwtJ9HzhWSg==
@@ -3282,6 +3518,13 @@
"@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"
@@ -3438,7 +3681,17 @@
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@^4.17.21", "@types/express-serve-static-core@^4.17.33":
"@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":
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==
@@ -3448,7 +3701,26 @@
"@types/range-parser" "*"
"@types/send" "*"
"@types/express@*", "@types/express@^4.17.25":
"@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":
version "4.17.25"
resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.25.tgz#070c8c73a6fee6936d65c195dbbfb7da5026649b"
integrity sha512-dVd04UKsfpINUnK0yBoYHDF3xu7xVH4BuDotC/xGuycx4CgbP48X/KF/586bcObxT0HENHXEU8Nqtu6NR+eKhw==
@@ -3585,7 +3857,14 @@
resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.7.1.tgz#3ce3af1a5524ef327d2da9e4fd8b6d95c8d70528"
integrity sha512-FmgJfu+MOcQ370SD0ev7EI8TlCAfKYU+B4m5T3yXc1CiRN94g/SZPtsCkk506aUDtlMnFZvasDwHHUcZUEaYuA==
"@types/send@*", "@types/send@<1":
"@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":
version "0.17.6"
resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.6.tgz#aeb5385be62ff58a52cd5459daa509ae91651d25"
integrity sha512-Uqt8rPBE8SY0RK8JB1EzVOIZ32uqy8HwdxCnoCOsYrvnswqmFZ/k+9Ikidlk/ImhsdvBsloHbAlewb2IEBV/Og==
@@ -3609,6 +3888,14 @@
"@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"
@@ -3740,12 +4027,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.62.0", "@typescript-eslint/tsconfig-utils@^8.70.0":
"@typescript-eslint/tsconfig-utils@8.70.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==
@@ -4120,6 +4407,17 @@
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"
@@ -4131,6 +4429,14 @@
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"
@@ -4139,7 +4445,7 @@
"@vue/compiler-core" "3.5.42"
"@vue/shared" "3.5.42"
"@vue/compiler-sfc@3.5.42", "@vue/compiler-sfc@^3.5.18":
"@vue/compiler-sfc@3.5.42":
version "3.5.42"
resolved "https://registry.yarnpkg.com/@vue/compiler-sfc/-/compiler-sfc-3.5.42.tgz#502c50e7864a980b7f147b78974e3b49fefcc16d"
integrity sha512-fkCAFB4okcAANGMThboWnScp/gzWjU0ZSkVnjTIiplmMDq2uq0tIB3j+xVu4rhv5rvOgBySCysudmbMd6xRRqw==
@@ -4154,6 +4460,29 @@
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"
@@ -4244,7 +4573,12 @@
"@vue/runtime-dom" "3.5.42"
"@vue/shared" "3.5.42"
"@vue/shared@3.5.42", "@vue/shared@^3.5.18":
"@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":
version "3.5.42"
resolved "https://registry.yarnpkg.com/@vue/shared/-/shared-3.5.42.tgz#a413cf21262502662354cda3b65ab31bca979202"
integrity sha512-2rPxex1jQf4jvl9MOHl6YaXCPcrNqz/FstMOEh3QWY+/OME9nQTvl9WYeCwhW7AFjaR0SnngZGlp/wkR6rkI6g==
@@ -4531,7 +4865,12 @@ 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.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.16.0, acorn@^8.8.1:
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:
version "8.18.0"
resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.18.0.tgz#4faf01b2d6d326bfeed97aea1f52220b5f4c1940"
integrity sha512-lGq+9yr1/GuAWaVYIHRjvvySG5/4VfKIvC8EWxStPdcDh/Ka7FG3twP6v4d5BkravUilhIAsG4Qj83t02LWUPQ==
@@ -4580,7 +4919,7 @@ ajv-keywords@^5.1.0:
dependencies:
fast-deep-equal "^3.1.3"
ajv@^6.12.2, ajv@^6.12.5, ajv@^6.14.0:
ajv@^6.12.2, ajv@^6.12.4, 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==
@@ -5340,7 +5679,7 @@ caching-transform@^4.0.0:
package-hash "^4.0.0"
write-file-atomic "^3.0.0"
call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2:
call-bind-apply-helpers@^1.0.0, 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==
@@ -5348,7 +5687,17 @@ call-bind-apply-helpers@^1.0.1, call-bind-apply-helpers@^1.0.2:
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, 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:
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:
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==
@@ -5399,7 +5748,12 @@ 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, caniuse-lite@^1.0.30001809:
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:
version "1.0.30001810"
resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001810.tgz#4970b477dea3278374de9bc43aa8f5d39fc3cda2"
integrity sha512-TITQPUkaz+aVk5GL6NhOdwk1aEaNTSDPsGFWrTuhKGtjTF70jL/Oht2W4c6rXUe5fu7Ie19VIahAXHIIiWWNeg==
@@ -6041,7 +6395,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.5.0:
css-loader@6.7.3:
version "6.7.3"
resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.7.3.tgz#1e8799f3ccc5874fdd55461af51137fcc5befbcd"
integrity sha512-qhOH1KlBMnZP8FzRO6YCH9UHXQhVMcEGLyNdb7Hv2cpcmJbW0YrddO+tG1ab5nT41KpHIYGsbeHqxB9xPu1pKQ==
@@ -6055,6 +6409,20 @@ css-loader@6.7.3, css-loader@^6.5.0:
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"
@@ -6890,7 +7258,15 @@ end-of-stream@^1.1.0:
dependencies:
once "^1.4.0"
enhanced-resolve@^5.0.0, enhanced-resolve@^5.17.1, enhanced-resolve@^5.20.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:
version "5.24.1"
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.24.1.tgz#b2439adf5d31d7e4764de1f9ecf942d6cd3fc874"
integrity sha512-7DdUaTjmNwMcH2gLr1qycesKII3BK4RLy/mdAb7x10Lq7bR4aNKHt1BR1ZALSv0rPM/hF5wYF0PhGop/rJm8vw==
@@ -6937,7 +7313,7 @@ error-stack-parser@^2.0.6:
dependencies:
stackframe "^1.3.4"
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:
es-abstract@^1.17.5, es-abstract@^1.23.3, es-abstract@^1.23.6, 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==
@@ -6997,6 +7373,66 @@ es-abstract@^1.17.5, es-abstract@^1.23.2, es-abstract@^1.23.3, es-abstract@^1.23
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"
@@ -8144,7 +8580,14 @@ hasha@^5.0.0:
is-stream "^2.0.0"
type-fest "^0.8.0"
hasown@^2.0.2, hasown@^2.0.3, hasown@^2.0.4:
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:
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==
@@ -8483,7 +8926,7 @@ ipaddr.js@1.9.1:
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3"
integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==
ipaddr.js@^2.1.0:
ipaddr.js@2.4.0, ipaddr.js@^2.1.0:
version "2.4.0"
resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.4.0.tgz#038e9ceaf8219efc5bb76347b7eb787875d5095b"
integrity sha512-9VGk3HGanVE6JoZXHiCpnGy5X0jYDnN4EA4lntFPj+1vIWlFhIylq2CrrCOJH9EAhc5CYhq18F2Av2tgoAPsYQ==
@@ -8558,7 +9001,14 @@ 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, is-core-module@^2.16.2:
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:
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==
@@ -10662,11 +11112,16 @@ 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.2.0:
papaparse@5.3.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"
@@ -10986,12 +11441,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.0.0, postcss-modules-extract-imports@^3.1.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.0, postcss-modules-local-by-default@^4.0.5:
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==
@@ -11000,7 +11455,7 @@ postcss-modules-local-by-default@^4.0.0:
postcss-selector-parser "^7.0.0"
postcss-value-parser "^4.1.0"
postcss-modules-scope@^3.0.0:
postcss-modules-scope@^3.0.0, postcss-modules-scope@^3.2.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==
@@ -11128,7 +11583,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.5.19:
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:
version "8.5.26"
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.5.26.tgz#6e75135780c7e10df3433bf2266c552d35c8c620"
integrity sha512-u82N74LFzG8ca+dD8puPnplTXoGH4fTPpVGuIbt36G3qvNlkvfD0lEAZSxaly3KX8TS/L1A1gsCEmvKmBcVbkQ==
@@ -11303,10 +11758,10 @@ pvutils@^1.1.3, pvutils@^1.1.5:
resolved "https://registry.yarnpkg.com/pvutils/-/pvutils-1.1.5.tgz#84b0dea4a5d670249aa9800511804ee0b7c2809c"
integrity sha512-KTqnxsgGiQ6ZAzZCVlJH5eOjSnvlyEgx1m8bkRJfOhmGRqfo5KLvmAlACQkrjEtOQ4B7wF9TdSLIs9O90MX9xA==
qs@6.16.1, qs@^6.12.3, qs@~6.15.1:
version "6.16.1"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.16.1.tgz#0643e17993e551759c85078e1f0bc4b9fe908020"
integrity sha512-5Px6J7rfHBAGUhNQ3es4YzcOdBBw0SDcVtThJml4RdnKw4tKs2epA0kPZ+K8X+WiHktT93RHVcQ/3ym5aTCgtg==
qs@6.16.0, qs@^6.12.3, qs@~6.15.1:
version "6.16.0"
resolved "https://registry.yarnpkg.com/qs/-/qs-6.16.0.tgz#c22c723a28a920f3aacdce8289fabd43eccb79fd"
integrity sha512-h6fhOIaRrID2CbEY2fqs+7t+UXZo+MLAnU5gRIq85uFtdiUPCdsApMlHhXogKVM4HM2DVbIjGNTTYH2OcmP1vA==
dependencies:
es-define-property "^1.0.1"
side-channel "^1.1.1"
@@ -11750,7 +12205,7 @@ saxes@^6.0.0:
dependencies:
xmlchars "^2.2.0"
schema-utils@2.7.0, schema-utils@^2.0.0, schema-utils@^2.6.5, schema-utils@^2.6.6:
schema-utils@2.7.0:
version "2.7.0"
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-2.7.0.tgz#17151f76d8eae67fbbf77960c33c676ad9f4efc7"
integrity sha512-0ilKFI6QQF5nxDZLFn2dMjvc4hjg/Wkg7rHd3jK6/A4a1Hl9VFdQWvgB1UMGoU94pad1P/8N7fMcEnLnSiju8A==
@@ -11759,6 +12214,15 @@ schema-utils@2.7.0, schema-utils@^2.0.0, schema-utils@^2.6.5, schema-utils@^2.6.
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"
@@ -11941,6 +12405,14 @@ 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"
@@ -11970,7 +12442,18 @@ side-channel-weakmap@^1.0.2:
object-inspect "^1.13.3"
side-channel-map "^1.0.1"
side-channel@^1.1.0, side-channel@^1.1.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:
version "1.1.1"
resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.1.1.tgz#ea02c62e05dc4bea67d4442f0fb71ee192f8e0ab"
integrity sha512-6x6dK6zJdpTzF4sQeNYxwtvBzf6Eg4GtlesS94HOvTudUeyK2WXAaIfmDgsyslYrRBeFIlsi54AYsFGUuhmvrQ==
@@ -12445,7 +12928,12 @@ 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, tapable@^2.3.3:
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:
version "2.3.3"
resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.3.3.tgz#5da7c9992c46038221267985ab28421a8879f160"
integrity sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==