Commit Graph

810 Commits

Author SHA1 Message Date
Neil MacDougall c0ea22f63b
RKE1 Clusters unsupported (#14226)
* Make RKE1 Unsupported

* Fix for unit tests

* Update a11y test for removed RKE1 toggle switch

* Fix missing import

* Remove RKE templates and related tests

* Fix lint and tidy up

* Removed unused code

* Updates e2e tests

* Tidy up e2e tests

* Fix lint

* Prevent edit of RKE1 cluster

* Remove RKE1 settings

* Fix lint with removed settings

* Remove e2e test for removed setting

* Remove unused e2e po

* Remove toggle switch from a11y test
2025-05-29 13:07:00 +01:00
Richard Cox 980d4b06d9
Integrate new label select filtering (#12919)
* Test / Wire in new label filtering to limited places

- Wired in to
  - Workload detail page - pods and services (broken due to reverse selector)
  - Service Detail - Pods List
  - Service create/edit - Pod selector tab
- Also
  - Fix showPodRestarts in random location
- TODOs
  - Lots of testing / validation required
  - reverse deployment --> service selector (not services given deployment, but for each service contains pods from deployment)
  - workload model usages of pods getter
  - services model usages of pods getter
  - many many more....

* wired in, NOT tested

* improvement

* sdfdsf

* ryrty

* werer

* The great test off begins

* testing and tidying

* testing and tidying

* First good run

* tests, fixes and improvements

* updates

* Tidying up

* Fixes (namespace orientated), tweaks, updates

* Fix unit test

* Fixes for vai off

* Re-write `matching`
- handle namespaces better (given if the resource is namespaced
- better align with legacy matching fn (given specific scenarios that should return none or all)

* Lots of fixes, but mainly vai off --> pods list --> deployment detail --> pods list updates correctly

* fix lint, unit test

* e2e fix

* Fix weird plugins build validation failure (TS error on expected param for JS method with a default)

* Fix workload services

* changes following mini code review

* Only show pods tab if workload type supports it, always show pod resource table if tab is shown
2025-05-28 11:17:25 +01:00
Evgeniya Vashkevich f5305ed0d2
Improved version management banner for local and imported clusters (#14328) 2025-05-22 13:02:47 -07:00
Phillip Rak 9303ab6884
Preserve valid user-supplied chart values in rke2 form (#14261)
* RKE2: Account for rke2Charts when applying chart values

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Add unit tests for rke2 changes

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Handle `null` and `undefined` values in `rke2Charts()` getter

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-05-09 07:30:24 -07:00
Alexandre Alves f86d60f47b
address issue with common config and updating k8s version which should NOT change base dir for k8sDistro config (#14267) 2025-05-07 11:18:53 +01:00
Alexandre Alves 50e1daccd5
Refactor AssignTo, MoveModal and feature flag modal as prompt modals (#14187)
* refactor AssignTo, MoveModal and feature flag modal as prompt modals + add unit tests + remove store mechanisms that were dedicated to these modals

* fix small issues with FeatureFlagListDialog and MoveNamespaceDialog

* fix merge conflicts + remove code comments

* address merge conflicts + remove text from template
2025-05-06 17:34:55 +01:00
Phillip Rak 22633ef3eb
Overwrite default chart values with user supplied values (#14200)
* Overwrite default chart values with user supplied values

Changes to merge behavior so that user supplied values overwrite default values when merging. The lodash merge operation merges object properties recursively, meaning that any keys in the left-most object will remain present. The customizer function works to overwrite any duplicate properties present in the user values.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Add ability to handle objects to `mergeWithReplaceArrays`

This renames `mergeWithReplaceArrays` to `mergeWithReplace` and adds functionality for working with objects. I'm opting to extend the existing util after I found that objects are not the only concern In reviewing prior work #14165 that dealt with arrays. Defaulting `replaceObjectProps` to `false` keeps the existing behavior in  place for other usages of `mergeWithReplace`, limiting the chance for regressions in rke2 yaml.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Unit test object merging behavior

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-29 10:15:40 -07:00
Phillip Rak 773fbb22b9
Enter edit mode if updating roles fails during user creation (#14081)
* Enter edit mode if updating roles fails during user creation

This emits  an `update:mode` event that sets to mode to "edit" and refreshes all resource-related variables when the `updateRoles()` method fails during user creation. This provides an opportunity for users to correct mistakes while still staying in the "Create User" context.

An alternate approach that explored navigating to an edit route was explored, but this required re-rendering the entire form and would eliminate the error message; additional state to persist the error messages would be required and I found that requirement to be more complex than the approach taken here.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Display a user readable error an escalation error is raised

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* e2e test: attempt to create an admin user with standard user

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Prevent watcher from overriding values when user id changes

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

* Generate new timestamp for admin user

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-23 11:02:55 -07:00
momesgin 8f40e09040
Fix RKE2 Addon Config Values Persistency (#14165)
* fix mistakenly mutating object

* lint

* add mutateOriginal flag to mergeWithReplaceArrays

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-04-22 14:16:14 -07:00
Cody Jackson 05f32fbf04 Replace the done param fix and changed how we render the credential dynamic components
Fixes #13802
2025-04-16 16:34:29 -07:00
Alexandre Alves cb7cb52dbe
add role 'none' to hr elements in TopLevelMenu (#14121)
* add role 'none' to hr elements in TopLevelMenu

* add missing role and label to SideNav

* add aria-label to show/hide button in the Password component

* add role 'none' to hr elements

* add missing alt to user avatar image
2025-04-16 10:23:38 +01:00
momesgin 6d9c8b9947
fix machinepool chips color for negative numbers (#14128)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-04-14 15:46:49 -07:00
Evgeniya Vashkevich 0715f04712
Added data-testid prefix prop to ArrayList (#14085) 2025-04-14 09:12:37 -07:00
Alexandre Alves e8e05df687
fix missing labels on form fields (#13957)
* fix missing labels on form fields

* update Select to match wiring work done in another PR for aria attributes + add a11y unit test
2025-04-11 09:51:15 +01:00
Evgeniya Vashkevich 818507d1df
Fixed feedback left from scheduling customization feature
Fixed feedback left from scheduling customization feature
2025-04-09 11:04:14 -07:00
Evgeniya Vashkevich 8e3dbcf184 fixed lint 2025-04-08 12:23:06 -07:00
Evgeniya Vashkevich 3fb411ff8c moved initsSchedulingCustomization method 2025-04-08 12:12:30 -07:00
Phillip Rak 51436a5e53
Merge pull request #14046 from rak-phillip/bugfix/14043-ingress-class
Update IngressClass labeled select to use `update:value` instead of `selecting`
2025-04-08 07:59:38 -07:00
Alexandre Alves 467139b939
fix aria-labels in copy to clipboard (#14014) 2025-04-08 08:45:57 +01:00
Phillip Rak 616676b069 Unit test changes made to IngressClass
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-07 15:46:36 -07:00
Phillip Rak 3ee69896a9 Update labeled select to use `update:value` instead of `selecting`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-07 15:19:05 -07:00
momesgin a3318d697b
Validation support for RKE2 machine pool configuration (#13789)
* machinepool validation

* refactor

* finish refactor + e2e test

* remove unnecessary emit item

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-04-03 15:55:35 -07:00
codyrancher 1061ab1993
Merge pull request #13966 from codyrancher/cluster-create-cred
Fixing the focus loss issue of the cloud credentials creator on the create cluster pages
2025-04-02 16:02:45 -07:00
Phillip Rak eb3cc9a096
Merge pull request #13964 from rak-phillip/bugfix/13958-pod-creation
Workload Mixin: Remove call to `selectContainer` from `created` hook
2025-04-02 13:31:55 -07:00
Phillip Rak 7a4b3930e9 Add an e2e test for adding containers to pods form
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-02 10:46:16 -07:00
Evgeniya Vashkevich 17d4ff6cfe Fixed feedback left from scheduling customization feature 2025-04-02 10:32:57 -07:00
codyrancher bacecce715
Merge pull request #13942 from codyrancher/etcd-correction
Made the new s3 snapshot units/tooltip show when s3 is selected
2025-04-02 10:03:17 -07:00
Alexandre Alves 0131d7ff71
fix unit test (#13968) 2025-04-02 16:04:56 +01:00
LiuYan bef1ffc295
fix(auth/oidc): reset issuer and auth endpoint if oidcUrls.url is empty (#11650)
* fix(auth/oidc): reset issuer and auth endpoint if oidcUrls.url is empty

* test(auth/oidc): clear URL should clear issuer and auth-endpoint if Keycloak
2025-04-02 11:02:05 +02:00
Giuseppe Leo 853ad6ab3a
Auth Provider create/edit form can be saved with some mandatory fields in blank (#13865)
* Correct validation to accept already mentioned requirements

* Extend requirement to all the basic scopes which prefill the view

* Update Story for KeyValue protected case

* Fix Story slot issue

* Updated tests, comments, added TODO; Added validation tests
2025-04-02 10:52:30 +02:00
Cody Jackson ae1045e6ce Looks like we missed a the cloud credentials creator on the create cluster pages
Fixes #13802
2025-04-01 18:04:54 -07:00
Phillip Rak ddbaa5d82b Workload Mixin: Remove call to `selectContainer` from `created` hook
0c6eb6473d introduced a change that moved the call to `selectContainer` out `data` and into the `created` hook. Before this change, any modifications made by invoking `selectContainer` would get overwritten by setting container in the data prop. `selectContainer` only needs to be invoked once on first render, and the changed method in `shell/edit/workload/index.vue` satisfies this requirement.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-04-01 15:25:38 -07:00
Cody Jackson 7b4dd463e3 Made the new s3 snapshot units/tooltip show when s3 is selected
fixes #13462
2025-03-31 13:22:33 -07:00
Phillip Rak 021cfac4f8
Merge pull request #13703 from rak-phillip/task/13702-form-components-data
Refactor form components so data prop no longer contains init logic
2025-03-28 15:10:44 -07:00
Cody Jackson dbd576695e Preventing the re-render of cloud credentials when validation takes place
Fixes #13802
2025-03-28 14:24:28 -07:00
Alexandre Alves 42efc9d3c5
fix some a11y items on ArrayList and KeyValue (#13832) 2025-03-25 09:28:51 +00:00
Phillip Rak 5ea18aeb08 Revert "Auth Providers: Add search_using_service_account field #13223"
This reverts commit 85c31a4073.

Testing exposed that this feature requires all three attributes (`searchUsingServiceAccount` flag, plus separate credentials via `searchServiceAccountDistinguishedName` and `searchServiceAccountPassword`) to function properly.

Reverting this change will prevent confusion until a fix can be applied to make the feature functional.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-24 10:13:57 -07:00
Phillip Rak 594570d37a Fix unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak bb10d31196 Fix unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-03-21 15:23:59 -07:00
Phillip Rak 2bf3b98fad
Merge pull request #13847 from torchiaf/matches-namespaces-selector
Fix namespaces selector in Match.vue component
2025-03-21 12:48:50 -07:00
Francesco Torchia 3d15ca1beb
Fix namespaces selector in Match.vue component
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-21 18:03:32 +01:00
Francesco Torchia 32ff1b612f
Fleet, set default polling interval on creation
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-20 09:59:30 +01:00
Evgeniya Vashkevich b2c13c9457
Merge pull request #13776 from eva-vashkevich/iss12699
[FIX] Adjusted HPA to handle non-resource metrics
2025-03-19 10:55:26 -07:00
Evgeniya Vashkevich 9b46062ecd Addressed aome comments 2025-03-18 15:27:38 -07:00
codyrancher de18c9f2bb
Merge pull request #13495 from codyrancher/old-k8s-etcd
Better handling of rendering the etcd page when a no longer supported k8s version is used
2025-03-18 15:49:48 -06:00
Alexandre Alves 88cbee575b
fix bug with Unit Input component not updating correctly (#13780)
* test fix

* working on unit tests

* remove console log

* bump shell version

* fix broken unit inputs

* fix unit test
2025-03-18 18:17:29 +00:00
Giuseppe Leo 6d53a2de59
[BUG] Keycloak generated Auth and Issuer endpoints are using outdated URL patterns (#13767)
* Remove auth segment from generated URLs

* Remove existing log bloating console output

* Add TS specificity to existing tests due warning issues

* Add tests to verify URL are automatically generated
2025-03-14 22:10:36 +01:00
Evgeniya Vashkevich 70be8838cd [FIX] Adjusted HPA to handle non-resource metrics 2025-03-14 13:49:02 -07:00
Mo Mesgin 2d48b9157a forwardport fix for vsphere cpi/csi config 2025-03-14 12:57:23 -07:00
Francesco Torchia 622bdd1031
Merge pull request #13716 from torchiaf/13600-fix-logging-flow
Remove duplicate container selector in Logging, create Cluster Flow page
2025-03-12 10:51:32 +01:00