Compare commits

..
Author SHA1 Message Date
renovate[bot] 03918dcec7 deps: update dependency serialize-javascript to v7.1.3 [security] 2026-11-20 17:54:12 +00:00
Marcelo Fukumoto 0c6eee1744 feat: page the VM list on the server when the API supports it (#1261)
* feat: page the VM list on the server when the API supports it

On clusters whose API serves lists from the Steve SQL cache, the VM list
uses PaginatedResourceTable: it loads one page of VMs, and the VMIs, pods,
PVCs, PVs, migrations, restores and backups of those VMs only. Sorting,
search and the namespace filter run on the server, so CPU, memory, IP and
node can't be sorted or searched there.

The feature is gated by the vmListPagination feature flag and enabled for
the VM list only, through a pagination context. Older clusters keep the
current list.

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

* feat: enable the VM list pagination from v1.10.0

The backend change that serves API lists from the SQL cache has to be on
the v1.10 branch before this is merged.

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

* fix: keep the paged VM list when adding a volume

The Add Volume dialog loaded every VM to find the volumes in use, which
replaced the page the VM list keeps in the store and emptied the list.
When the list is paged, the dialog now reads only the VMs of the
namespace and doesn't store them.

The requests for the resources of a page use one IN filter instead of
one filter per value, which keeps the URLs about a third as long.

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

* fix: keep the paged VM list intact in its dialogs and on older APIs

The Add Volume, Storage Migration and Restore dialogs read the VMs, PVCs
and backups of the VM's namespace through the VM. While the list keeps a
page of a type in the store they read the namespace without storing it,
so the list keeps its page and the dialogs' own lists don't shrink when
the page reloads. Storage Migration no longer offers volumes of VMs on
other pages as targets.

The list is paged only when the API lists the VM's printer columns as
metadata.fields, which the SQL cache does, so a missing or non-semver
server version can't turn it on against an API that can't filter.

One failed request for a page's resources no longer stops the others.

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

* fix: show the restart notice only when its VMs change

The list rebuilds the names of the VMs that need a restart on every
refresh, and when it pages also on every page, sort and search, so the
notice popped up again each time even when nothing new needed a
restart. Show it only when the set of VMs changes.

While paging it still covers only the VMs on the current page: the API
can't filter VMs by their RestartRequired condition.

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

* fix: find the launcher pods of every VM on the page

The paged list loaded the page's launcher pods by the harvesterhci.io/vmName
label, which only the Harvester VM form writes into a VM's template. VMs
created any other way, like an imported VM or one applied with kubectl,
got no pod, so their rows lost View Logs and the starting and pod error
states.

Load the pods after the page's VMIs instead, by the kubevirt.io/created-by
label KubeVirt puts on every launcher pod (the VMI's UID).

Also cover the paged mode in the tests: it must not load every VMI,
migration or pod, and a forced refresh must reach every request.

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

* fix: notify about restarts again when coming back to the VM list

The restart notice compared the VMs that need a restart with the
previous value of the list. Coming back from a page that loads every VM,
like Volumes or a VM's detail page, that previous value already held the
same VMs, so the notice didn't show. Remember what was notified on the
list itself instead, so each visit starts fresh, and compare by namespace
and name, so a VM of the same name in another namespace counts as a
change.

Also say which VMs lack Harvester's vmName label: the ones from Forklift
or plain manifests, not every VM created outside the UI.

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

* refactor: keep the VM list's paging helpers in the component

Only canPaginate stays outside, because ResourceList calls
$loadingResources(route, store) on the component options, where there is
no `this`. The pagination headers become a computed property and the
printer column lookup a method.

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

* refactor: always list VMs with PaginatedResourceTable

PaginatedResourceTable handles both modes. fetchSecondaryResources loads
every pod, volume, restore, backup, VMI and migration when the list isn't
paged, and only what every row shares when it is. VMIs without a VM are
added back through localFilter, which only runs without pagination.

The list passes the pagination context only when the cluster's API can
page, so older clusters keep the full list.

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

* refactor: register the VM list's columns with the product

Both column sets go through the product's headers(), with the paged set
next to the unpaged one in config/table-headers.js. The list only adds the
node and restore progress columns, which the API can't sort or search when
paging. State sorts by the VM's Status printer column, metadata.fields.2.

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

* fix: show the restart notice when coming back to the VM list

Since the list always uses PaginatedResourceTable it reads the VMs from
the store. Coming back to the list the store already holds them, so the
restart watcher never saw a change and the notice didn't show. Run it
when the list is created too.

While paging, the store can still hold the VMs another view loaded, like
every VM after Volumes or a VM's detail, so wait for the list's own page
before notifying.

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

* fix: let the namespace filter know the VM list is paged

The VMs were registered for pagination with a context that only the VM
list passed. The header's namespace filter asks without one, so it didn't
know the list was paged and kept offering "Not in a Project", which the
paged API can't filter by: picking it hid every VM.

Register the VMs in every context and answer per cluster in the store's
paginationEnabled getter instead: only when the feature is on and the
API lists the VM's printer columns as metadata.fields, as the SQL cache
does. The filter, the list and the store now agree, and clusters whose
API can't page keep the full list.

The filter is shared by every list, so Not in a Project can still be
picked on a list that doesn't page. The paged VM list then asks for
another option, like the shell's generic lists do, instead of showing
no rows.

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

* fix: keep the paged VM list when showing a VM's configuration

The Config tab of the Show Configuration drawer renders the VM form,
which loads every VM, PVC, PV, VMI and migration, and its device tabs
every VM again. On a paged list that replaced the list's page in the
store and emptied the list.

Hide the Config tab while the store keeps a page of VMs, so the drawer
shows the YAML. The VM's own page still shows its configuration, and a
drawer opened where every VM is loaded keeps its Config tab.

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

* refactor: define the VM list's node and restore columns with the others

The node and restore progress columns are now in VM_HEADERS, so the paged
set turns their sort and search off through VM_PAGINATION_FIELDS, like the
other columns the API can't index. The list only leaves them out when they
don't apply: the node column when the cluster's nodes can't be seen, the
restore progress while no backup is being restored.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-20 17:49:19 +01:00
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
Marcelo Fukumoto 97ce1e90f6 feat: make the ignore rule dialog and the ignored checks clearer (#1255)
* feat: make the ignore rule dialog and the ignored checks clearer

In the ignore rule dialog, "Ignore for" becomes "Expiration" and
"Entire check" becomes "All resources". Editing an expired rule now
opens with a warning at the top that says when it expired, and only
its expiration can change until a new one is set. The warning that
the rule stays expired, shown at the bottom after a change, is gone.

In the Components table, "+ N ignored" is a link like "+ N more" and
shows that check's ignored resources. The checkbox only brings back the
checks ignored as a whole, reads "Show ignored checks" and counts them
in a badge. Checks with anything ignored get the warning banner's
background, and the filter also finds ignored resources.

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

* fix: put Expiration first and keep a locked Scope from changing

An expired rule's fields wait for a new expiration, so Expiration is
now the first field of the dialog instead of coming after the fields it
unlocks.

The shell's RadioGroup still takes the Up and Down keys once it is
clicked, even when it is disabled or in view mode. So on an expired rule
a click and Up switched the locked Scope, and Save then widened a rule
for some resources to the whole check. The dialog now ignores a scope
change while the rule is locked or only viewed.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-16 11:16:36 +01:00
Marcelo Fukumoto f3ca9e4c44 feat: redesign the VNC console (#1233)
* chore: bump @rancher/shell to 3.0.15-rc.1 for the Rc components

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

* feat: rebuild the VNC console toolbar with Rc components

Name and namespace, a connection status pill with its own menu, Rc tertiary buttons with the design's icons, and the keyboard hint under the screen. noVNC's grey backdrop is gone and the screen keeps a thin frame that turns into the keyboard-focus ring.

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

* feat: move VNC shortcut keys into one Rc dropdown menu

Saved shortcuts, Ctrl and Alt toggles that apply to the next key, Print Screen, F1 to F12 and the way into custom shortcuts now share the Shortcut keys menu, replacing the cascading popover and the separate custom keys menu. Saved shortcuts can carry a name; the old list format still reads. Focus goes back to the screen after a key is sent.

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

* feat: replace the VNC settings popover with the View options panel

Automatic or Manual scaling on the shell ButtonGroup, a zoom slider with step buttons, JPEG quality and compression with their trade-off spelled out, and Reset to defaults. The screen now scales to fit by default, inside its focus ring. View only is gone with the old panel.

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

* feat: confirm Ctrl+Alt+Del and Soft reboot in an RcModal

Small RcModal with the VM's name in the title and a destructive primary button, coloured the way the shell's own dialogs do it. Esc and the background now close it too, and the keyboard goes back to the screen afterwards.

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

* feat: rebuild VNC custom shortcuts as an RcModal with a key recorder

Record a combination by pressing it, name it, and see the saved ones as RcTags with a delete button each. Every change is saved straight away. Keys keep the format older versions read; names live in their own preference so those versions keep working.

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

* feat: show VNC connecting and connection failures as console overlays

A spinner with the VM's name while connecting (and the attempt count while retrying), and a card with an icon badge, title, explanation and Rc buttons when the console cannot be used: in use, unavailable, connection lost or failed. Take over confirms in an RcModal.

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

* feat: float a compact VNC bar over the screen in full screen

Name, connection status and Exit full screen in a floating bar instead of the toolbar, with the keyboard on the screen. Take over leaves full screen first, since its modal opens outside the console.

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

* fix: VNC console review fixes

Show a not-running state instead of connecting forever when the VM has no instance, and find the VM by its uid so the name shows. Keep a failed shortcut save from looking saved. Offer Take over only when another session holds the console, and Reconnect now while retrying. Wrap the toolbar on narrow windows, keep the screen black so overlays read in the light theme, keep the destructive button red on focus, announce only the status label, let Esc and Tab leave the key recorder, release held modifiers when the menu closes, and let Ctrl+T and Ctrl+N through in full screen.

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

* feat: use the redrawn VNC console icons

Power, maximize, minimize and wifi-off on the design's 24px grid, the 20px connecting spinner, and a status card badge that stays dark on the black screen. The screen is only black while there is no live picture.

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

* feat: run standalone Harvester Prime with the SUSE brand

Standalone Harvester reports ui-brand=harvester, which has no stylesheet, so Prime only got a green primary on top of the default palette: 33 of the 36 SUSE theme tokens differed from Rancher Prime (blue tertiary buttons, another green, dark text on primary buttons, no SUSE font). On the Prime flavor the brand is now switched to suse in this browser, and all 36 match Rancher Prime in light and dark.

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

* fix: name recorded VNC shortcut letters after the key pressed

macOS Option turns letters into symbols (Option+G gives ©), so a recorded Alt+Cmd+G was labelled and sent as ©. Letter keys now take their name from the key code when recording, labelling and sending, which also fixes shortcuts saved before.

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

* fix: give the VNC shortcut menu chips the secondary button colours

The key chips, held modifiers and the manage item used the link colour, so they stayed blue under the SUSE brand. They now take RcButton's secondary, active and tertiary tokens and follow the brand like the toolbar buttons.

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

* fix: VNC console review fixes, round three

Wait for the instance to run before connecting and retry refusals right after a start, keep Reconnect now counting retries, stop key sending once the VM is down, only rename option-mangled letters (Alt without Ctrl, dead keys) so other layouts keep their keys, give the keyboard back to View when its panel closes, add a shortcut with Enter, keep long shortcut names to two lines, only replace Harvester's own brand and refresh the favicon, and stop relying on stylesheet order for the spinner and danger button.

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

* feat: change the VNC menu keys with the held modifiers

The keys under Hold modifiers follow what is held, so the menu sends what the old cascading menu did: Ctrl+N/T/W/Y with Ctrl, Ctrl+Alt+Del with Ctrl and Alt (through the same confirmation as its button), and Print Screen and F1-F12 alone or with Alt. Ctrl+Alt+F1-F12 stays for switching Linux consoles. The recorder points to the menu for browser-reserved combinations.

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

* feat: bring View only back to the VNC View menu

The View menu has a View only switch again, as the old settings panel did: the screen stays live but no mouse or keyboard input reaches the VM, the status reads Connected (view only), the key menus are disabled and the hint says how to turn it off. The design does not have it yet.

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

* feat: move View only into the VNC connection menu

View only is how this session uses the connection, so it sits in the Connected menu (also in full screen) as a checkbox item, and the View menu is only about how the screen is shown.

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

* feat: keep the VNC console's controls usable around the connection

Full screen goes over the whole page and its bar gets Shortcut keys and Ctrl+Alt+Del, so menus and the confirmation show there too and Take over no longer has to leave full screen. Soft reboot works whatever the console's state, since it does not go through it. The Shortcut keys menu always opens: while keys cannot be sent it says why and disables only the keys, so custom shortcuts can still be managed. The focus ring now sits 2px off the screen so it shows against a dark framebuffer edge in the light theme.

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

* feat: disable the VNC console's input controls while View only is on

View only sends nothing to the VM, so Shortcut keys (managing shortcuts included), Ctrl+Alt+Del and Soft reboot are disabled instead of the menu opening to explain why. The menu still opens while disconnected, as there are shortcuts to manage. The hint under the screen takes the new wording, read raw since t() would escape its quotes.

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

* feat: fill the window with the VNC console in full screen

The screen takes the whole window, with no padding, ring or inset, and black around a picture of another shape. It always fits in full screen, whatever View mode is saved, which comes back on leaving. The bar floats over the screen, slightly transparent until it is hovered, holds the keyboard focus or has a menu open, and no longer has Ctrl+Alt+Del, which stays in the Shortcut keys menu.

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

* feat: show the mouse over the VNC console

noVNC hides the mouse over the screen until the guest sends a pointer image, and a text console or a guest that draws its own pointer never does. Show the system pointer unless one arrives, so it can be seen in the window and in full screen. A guest that sends an image keeps it.

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

* fix: close the VNC console's menus on a click on the screen in Firefox

Firefox delivers the click to the canvas, where noVNC stops it, so an open menu never saw a click outside it. Full screen makes this matter, with little else left to click. noVNC does nothing else with a click, so let it through.

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

* feat: make View only a toggle in the VNC console toolbar

View only moves from the Connected menu to the shared ToggleSwitch between the connection status and Shortcut keys, in the toolbar and in the full screen bar, so its state is always in view and the status no longer has to repeat it. Turning it off hands the keyboard back to the console. The full screen bar no longer gets only half the window from its left: 50%, which would have squeezed its buttons with the wider content; it wraps when it really does not fit.

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

* feat: leave View only out of the VNC console's full screen bar

View only is set from the toolbar. A session that enters full screen with it on stays that way, with Shortcut keys disabled, and changes it after leaving.

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

* feat: make View only a checkbox in the VNC console toolbar

It takes the shared Checkbox instead of ToggleSwitch, in the same place between the connection status and Shortcut keys. Clicking its label now turns it off as well as on.

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

* fix: save the VNC view settings only when the user changes them

The previous console wrote its defaults to localStorage the first time it
opened, so Manual zoom at 100% looked like a choice and the new Automatic
default never reached anyone who had used the console. Settings now live
under a new key and are saved only when the user changes them.

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

* fix: keep View only on when the VNC View panel resets its settings

View only moved to the toolbar, but Reset to defaults in the View panel
still set it back to off, so the screen started sending the mouse and
keyboard to the VM again. The reset now leaves View only as it is.

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

* fix: give the VNC quality and compression sliders their full height

The slider rule's flex: 1 is meant for the zoom row. In the quality and
compression sections, which are columns, it set the height instead and
left those two sliders 4px tall, so a click on the visible thumb missed.

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

* fix: reach the VNC shortcut keys from the keyboard after holding a modifier

RcDropdown collects its items when the menu opens, and holding Ctrl or
Alt swaps the keys below the toggles while it is open, so the arrow keys
stopped at Alt. The menu now collects its items again on each key press,
as RcDropdown does for its submenus.

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

* fix: show a failed custom shortcut save inside the dialog

The dialog only reported a failed save with a growl, and the console
page's layout has no growls, so a delete or an add that could not be
saved changed nothing and said nothing. The error now shows as an alert
in the dialog until the next change or until it closes.

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

* fix: keep the focus in the custom shortcuts dialog after adding or deleting

The delete buttons and Add shortcut were disabled while a change saved,
and disabling the button that was just pressed dropped the keyboard's
focus to the page. They now stay enabled, and a change made while one saves is
ignored. After a delete the next row's button takes the focus, or the last
one's, and after an add, or once the list is empty, the recorder does.

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

* fix: record a modifier pressed on its own as a custom VNC shortcut

The recorder held every modifier for the key that ends the combination,
so the Windows key on its own could not be saved any more, while the old
dialog could. Modifiers released before any other key are now the
combination, once the last of them is released.

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

* fix: stop the custom shortcut form saying a new shortcut is already saved

The list shows a new shortcut while it saves, and the form kept it until
the save came back, so every add showed "This key combination is already
saved." as an alert for as long as the save took. The form now empties
as soon as Add shortcut is pressed, and the shortcut goes back in it if
the save fails, unless the next one was started meanwhile.

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

* fix: make the VNC Reconnect button an RcButton

The plain button took the global 40px button height inside the 32px
Disconnected pill, so its focus ring stuck out above and below the pill.
As a small ghost RcButton it is 24px tall and its ring stays inside.

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

* fix: carry View only over from the previous VNC console

The new storage key dropped a View only that someone turned on in the
previous console, so their mouse and keyboard reached the VM again
after the upgrade. View only was off unless the user turned it on, so
it is read from the previous key until this console saves its own
settings; the display settings still start fresh.

The comment on the key now says the settings are written once the user
changes one, rather than only the ones changed.

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

* fix: warn that a VNC soft reboot loses unsaved work

The soft reboot confirmation said the console disconnects while the VM
restarts and reconnects when it is back, which it does not: a soft
reboot restarts the guest in the same VM instance and pod, so the
console stays connected. It also dropped the previous dialog's warning
that unsaved work is lost, which is back.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-13 04:43:04 +01:00
Marcelo Fukumoto 08e483e3c8 chore(deps): align resolutions and yarn.lock with @rancher/shell 3.0.14 (#1239)
* chore(deps): align resolutions and yarn.lock with @rancher/shell 3.0.14

yarn only applies resolutions from the root package.json, so the ones
@rancher/shell 3.0.14 declares never reached the extension. Copy them
over, use the **/ form for diff2html/diff since diff2html sits under
@rancher/shell here, and drop the cronstrue pin so the extension and the
shell both use the 3.9.0 the shell depends on.

Re-resolve yarn.lock against the shell's own lockfile so every shared
package lands on the version the shell ships, and semver and
@types/node follow the shell's versions too.

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

* chore(deps): keep the cronstrue pin

cronstrue 3 describes @reboot, so the backup schedule form enabled Create
for it while Harvester's webhook rejects it. The dashboard itself runs
cronstrue 2.53.0 and the shell went back to that after 3.0.14, so keep
our 2.59.0 pin.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-10 22:07:49 +01:00
Marcelo Fukumoto ee915249ce fix: keep the ignore rule name valid when the check has spaces (#1234)
Backup schedule checks are named after the schedule's condition reason,
such as "Proactive Schedule Suspend". The rule name used it lowercased,
spaces included, so Kubernetes refused it and the check could not be
ignored. Turn whatever a name can't have into hyphens. The rule keeps
the check as it is in its spec, which is what the controller matches.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-10 12:21:30 +01:00
Volker TheileandMarcelo Fukumoto 784c22e27e fix: show resource counts for all side navigation items (#1196)
* fix: show resource counts for all side navigation items

The side navigation looks up the count of a nav item by its name, but the
counts are keyed by the K8s resource type. Many Harvester nav items are
named differently than the resource they list (e.g. harvesterhci.io.volume
lists persistentvolumeclaim), so no count was shown for them. Some list
views also show only a subset of their resource type, so the plain count
would not match the list.

Override the count getter of the harvester store:
- Resolve the nav item to the resource type it lists, using the same
  fallback to the configureType resource as schemaFor. This fixes Hosts,
  Alertmanager Configs, Cluster Flows, Cluster Outputs, Flows, Outputs
  and Secrets.
- Count only the subset shown by the list for Volumes, VM Networks,
  VM Backups, VM Snapshots, Volume Snapshots, Cloud Configuration
  Templates and Storage. The matches are counted per namespace once per
  store list using sharedComputed.
- Like the list views, do not count resources in system namespaces when
  "All Namespaces" is selected.

Steve's counts endpoint only returns the total per resource type, so the
filtered counts are computed from the store list and are only available
once that list is loaded. Until then these nav items show no count, unless
there are no resources of that type at all (then 0). The dashboard loads
PVCs and networks, the VM list PVCs and backups, the other resources are
loaded when their list is opened.

Related to: https://github.com/harvester/harvester/issues/11984

Signed-off-by: Volker Theile <vtheile@suse.com>

* refactor: get the side navigation counts from the server

Stop loading full resource lists and filtering them in the browser to
get the side navigation counts.

- Nav items listing all resources of a type use the counts endpoint,
  through the resource type of the nav item.
- VM backups, VM snapshots, volume snapshots, storage classes, cloud
  config templates and VM networks request their subset from
  /v1/harvester with a page size of 1. These requests run again when the
  counts endpoint reports other numbers for the type, and when the
  namespace filter changes.
- Namespaces count the already loaded namespaces that are neither system
  nor Fleet managed.
- Volumes have no count: the list hides volumes that are only marked by
  annotations, which the API cannot filter on.

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

* refactor: keep the side navigation count helpers in the store getters

Move them out of their own file, next to the count getter that uses them.

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

* fix: make the side navigation count requests more robust

- Ignore a late response of the previous cluster. Resetting the request
  ids when loading a cluster let it overwrite the count of the new one.
- Keep the watchers when a cluster left while it was loading finishes
  loading after the new one.
- Show no count instead of 0 on Harvester v1.3, which ignores the query
  and sends all resources without a count.
- Hide the storage network by its generated name. Networks created
  before Harvester v1.4 do not have the hash label, and an upgrade does
  not add it.
- Stop refreshing after leaving the product, cancel pending refreshes
  when the watchers stop, and cope with the store module being
  unregistered when logging out.

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

* fix: count only the settings the Settings page shows

The nav item showed the total of all Setting resources, but the page only
shows the allowed ones that exist in the cluster and are supported by its
version.

Move these rules into a visibleSettings getter that both the page and the
count use, so that they always agree. SettingList no longer needs its
feature flag check.

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

* test: remove a Settings page test that was committed twice

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

* fix: show the number of volumes in the side navigation

The Volumes list hides golden image volumes and the temporary volumes CDI
uses to populate a volume, so the total of the counts endpoint would be
wrong.

Golden image volumes are only marked by an annotation, which Harvester's
API cannot filter on, but each one belongs to a DataVolume owned by its VM
image. So request the volumes that are not owned by another volume, and
the DataVolumes owned by a VM image, and show the difference.

Every nav item with a list now has a number, so remove NO_COUNT.

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

---------

Signed-off-by: Volker Theile <vtheile@suse.com>
Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
Co-authored-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-10 12:20:34 +01:00
aa6d11a840 fix: block VM creation/save with invalid CloudInit YAML (#1040)
* fix(vm): block VM creation with invalid CloudInit YAML content

* fix(vm): add isWindows guard to validateCloudInit in template version

* fix: validate Windows CloudInit YAML on save

Co-authored-by: a110605 <5744158+a110605@users.noreply.github.com>

* fix: validate cloud-init by format in the VM mixin

Cloud-init picks the user data format from the first line, so scripts,
MIME messages and Jinja templates are valid without being YAML. Parsing
all user data blocked them, and it stopped any existing VM holding one
from being saved, even with nothing changed.

Only parse user data that starts with #cloud-config, and require a
mapping for it and for network data, because plain words are valid YAML
and were still saved.

Both forms already use the VM mixin, so the check moves there and shares
the header pattern with hasCloudConfigComment.

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

* fix: save other user data formats as typed and check text without a header

The form added #cloud-config to any user data that parses as YAML, so a
script was saved with the header and its lines folded together, and Edit
Config then failed the check on it. User data that starts with a script,
MIME or another cloud-init or Cloudbase-Init format is now saved as typed,
and any other text is checked as cloud-config, with or without the header,
because the form adds the header when saving it.

Editing only checks cloud-init that changed, so a VM saved before this
change can still be edited with the cloud-init it already has.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: a110605 <5744158+a110605@users.noreply.github.com>
Co-authored-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-09 15:59:37 +00:00
67ff2777d6 feat: add resource health dashboard in a Components tab (#1225)
* feat: add component health dashboard sections

Add health summary and component health tables with severity filters and expandable check details.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* feat: use health API group for component health resources

Update dashboard resource types to use the health.harvesterhci.io API group.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* feat: add component health ignore controls

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* feat: gate component health behind the componentHealth feature flag

Only show the component health dashboard sections on Harvester v1.10.0 and later.

Signed-off-by: Jack Yu <jack.yu@suse.com>

* fix: address component health review comments

- sort the health summary table by a severity rank
- use buttons instead of anchors for restore and show more actions
- let the affected resources list expand so every resource can be restored
- widen the ignore popup and cap its height

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* refactor: split component health into dedicated components

Move the health summary, component health tabs and ignore popup out of
the dashboard page into components/health, and share the constants and
helpers through utils/component-health.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* fix: sort component health by severity rank

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* fix: toggle health rows in place and tell empty filters from no checks

- toggle the expanded message and resource ids by mutating the unwrapped
  arrays, the template does not pass refs
- show "No checks match the selected filters" when the severity filters
  hide existing checks, keep "No issues detected" for a report without
  checks

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* refactor: fetch component health resources in their own components

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: Jack Yu <jack.yu@suse.com>

* feat: move health into a Components tab with the checks as sub-rows

The dashboard showed the summary table, then side tabs with a second
table for each component. It is now one table in a new Components tab
next to the Events tabs: one row per component, which opens to its
checks. Rows start closed, and the component name is a button so the
keyboard can open them. The tab only shows when the addon's resources
exist.

The table's own filter box replaces the severity dropdown. It only looks
at the table's own rows and the checks are in the sub-rows, so the rows
give it the text of their checks, a row only shows the checks it found,
and the rows it found open.

Ignoring a check moves from a popover, which cut off its Reason field
and Ignore button, to an RcModal that starts over each time it opens.

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

* refactor: use RcButton for the component health buttons

The Ignore modal's button already was one. This moves the rest of them,
the row's Ignore, Restore, the "show more" links and the component name,
off the global btn classes.

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

* refactor: manage one ignore rule per check from the row's actions

A check now has one rule, reached through the table's action menu: create
it when the check has none, view, edit or delete it when it has one. View
and edit use the same modal as create. This replaces the Ignore button and
the Restore links, which could only delete a whole rule and said the check
was restored when it wasn't.

The modal's section titles were the radio group's h3, as big as the modal's
own title. They follow what rancher/dashboard does in its forms now.

The actions follow what the user may do. The rules are only loaded with
their schema, and a list that fails no longer empties the table.

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

* refactor: let the tables filter by themselves and show resources as chips

The filter had logic of its own on top of the table's. The nested table now
filters its rows the way the outer one does, with what is typed in the box.
Rows no longer open by themselves, which is how the other tables with
sub-rows behave. Expand All and Collapse All are there instead, copied from
what the table has from shell 3.0.15.

Affected resources are chips under the name the UI has for their type, with
the usual counter badge and the API version beside it. Ignored resources are
outlined instead of filled, and the text of an ignored check is muted. The
links use the shell's wording.

The component rows lose Last Updated. The summary only has one time, for its
counts as a whole, so it said nothing about the component in the row. They say
Error instead of Critical, as the checks inside them do. The Node column goes,
as nothing sets its label.

The Components tab shows the number of errors as a badge, as nothing else on
the page tells there are any.

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

* fix: name the ignore rule after its check and make its expiry clear

- Name the rule the UI makes after its check, so Kubernetes refuses a
  second one for the same check. The row's menu only manages that rule.
- Show the rule's current expiry above the durations, and the new one
  under them once a duration is chosen. Edit starts with none chosen,
  Save stays off until something changes, and a warning says when an
  expired rule would stay expired.
- Delete the rule through the shell's delete prompt, like every other
  delete.
- Say which list could not be loaded, instead of showing it as empty.
- Keep the full count of affected resources, say how many ignored ones
  are left out of the list, and count them on Show ignored.
- Drop the checks' Last Updated, which is the time of their whole report.
- Leave out the row menu when no check has an action.
- Mark the Components tab with the shell's alert icon when there are
  errors, with their number in its tooltip, instead of a badge.

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

---------

Signed-off-by: Jack Yu <jack.yu@suse.com>
Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
Co-authored-by: Jack Yu <jack.yu@suse.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-09 16:56:15 +01:00
marcelofukumoto 73eaccc2ad fix: show VNC console dialogs in full screen and restore deleting custom shortcut keys (#1222)
* fix: show the VNC console's dialogs in full screen

Only the console went full screen and dialogs render outside of it, so the
Ctrl+Alt+Del and Soft Reboot confirmations, among others, stayed hidden behind
it until full screen was left. Put the whole page in full screen instead.

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

* fix: bring back deleting saved VNC console shortcut keys

The Vue 3 migration dropped the close button from the list of saved shortcuts,
which left no way to delete one. Restore it, and remove by position in the list:
the old code parsed the displayed HTML to find the shortcut, which cannot match
one with the Space key in it, such as Ctrl+Space.

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

* fix: tidy the VNC console's custom shortcut keys

Give the saved shortcuts in the menu the same space as the separator above
them, and name the dialog's buttons Cancel and Save, which say what they do.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-06 09:58:41 +01:00
marcelofukumoto 12c28c08fa feat: align the storage performance options with the Rancher machine pool form (#1212)
* feat: align the storage performance options with the Rancher machine pool form

Show the storage performance profile on every volume instead of behind a
collapsible toggle, and move the VM-wide options to a plain Storage
Performance section in the Advanced Options tab. Put the Native I/O tip in
a live region so screen readers announce the cache mode change, use an
integer input for the I/O thread count, and use the same copy as the
Rancher form.

Skip the view-only backup row in the image and container volumes when it
has nothing to show, so it no longer adds an empty gap above the profile.

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

* fix: announce the storage performance warnings and name the virtio requirement

- Put the bus tip and the Filesystem warning in an always-rendered status
  region. They appear above the field being changed, so screen readers need
  them announced.
- Say in the bus tip that a dedicated I/O thread needs the virtio bus, because
  KubeVirt rejects it on any other bus.
- Mark I/O Thread Count as required while editing, like the Rancher form.

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

* fix: state only the dedicated I/O thread requirement in the bus tip

Neither the Harvester docs nor KubeVirt tie cache mode or I/O mode to the bus,
so stop saying that those options work best on virtio.

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

---------

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-05 18:51:46 +01:00
Alejandro Bonilla 840f9de73e fix: show quotes in high-performance storage hints and keep Custom profile (#1204)
* fix: show quotes in high-performance storage hints and keep Custom profile

The Native I/O and I/O threads policy hints were passed to Banner as
:label="t(...)". t() escapes HTML and Banner escapes the label again,
so the quotes showed up as &quot;. Use label-key instead, which renders
the string once.

Picking the Custom performance profile and then choosing options that
match the Default or High Performance preset flipped the selector back
to that preset. Keep an explicit Custom choice and only infer the
profile from the disk values otherwise.

Related: harvester/harvester#11550

Signed-off-by: Alejandro Bonilla <abonilla@suse.com>

* fix: only keep Custom profile when the user picked it

syncProfile() skipped re-detection whenever the profile was Custom,
including a Custom that was inferred from the disk values. In an
existing-volume row, switching from a volume with a WriteBack override
to one with High Performance values left the selector on Custom.

Track the user's explicit Custom choice in its own flag and use that
in the guard, so an inferred Custom still follows the disk values.

Related: harvester/harvester#11550

Signed-off-by: Alejandro Bonilla <abonilla@suse.com>

* test: cover the label-key hints of VMPerformanceOptions

Check that the I/O threads policy and no virtio disk hints are passed to Banner as label keys, so their quotes are not escaped twice, and that the I/O threads policy hint is hidden once a policy is set.

Signed-off-by: Alejandro Bonilla <abonilla@suse.com>

---------

Signed-off-by: Alejandro Bonilla <abonilla@suse.com>
2026-11-04 12:23:30 +08:00
Victor ChangandMarcelo Fukumoto 3fb2d3da56 fix: bind bulk VM disk deletion checkbox to checkAll (#1146)
* fix: bind bulk VM disk deletion checkbox to checkAll

Signed-off-by: Victor Chang <t7902195204@gmail.com>

* test: cover the VM delete prompt checkboxes

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

---------

Signed-off-by: Victor Chang <t7902195204@gmail.com>
Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
Co-authored-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-11-03 22:05:47 +01:00
marcelofukumoto 77b643540e fix: label the VPC group of subnets without a VPC as None (#1210)
Kube-OVN sets a subnet's VPC (ovn-cluster when none is given), but a
subnet it hasn't processed, such as one with an invalid provider, has
none. The VPC page grouped those under "Virtual Private Cloud:" with an
empty name, and its Create Subnet, Topology and actions buttons pointed
at no VPC.

Show None as the VPC name for that group and leave out its VPC buttons.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-10-29 17:00:00 +01:00
marcelofukumoto 78d0a591a8 feat: move the device pages into a Hardware Devices side nav group (#1211)
The PCI, SR-IOV Network, SR-IOV GPU, vGPU, vGPU MIG and USB device pages
were listed under Advanced. Give them their own top-level group, placed
after Backup and Snapshots. Add-ons stay under Advanced.

Signed-off-by: Marcelo Fukumoto <marcelo.fukumoto@suse.com>
2026-10-28 19:51:40 +01:00
34 changed files with 156 additions and 3449 deletions

No files matched your search

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