Commit Graph

901 Commits

Author SHA1 Message Date
Evgeniya Vashkevich 0c3e06569a
[2.12] Fixed adding a new machine pool to existing GCE instance (#15568) 2025-10-02 21:13:25 -07:00
Nancy eece9aa677
Merge pull request #15335 from rancher/gha-portpr-17477296545-1
[backport-bot v2.12.2] Fix error when creating node driver clusters from yaml view
2025-09-05 06:40:59 -07:00
Evgeniya Vashkevich 89355f404e
[2.12] Added input validation to s3 endpoint field in cluster (#15187) 2025-09-04 17:26:03 -07:00
Nancy Butler 325e585cb6 fixed issue saving machine configs when creating node driver clusters 2025-09-04 21:35:02 +00:00
Francesco Torchia fa2a1a1654
Merge pull request #15322 from torchiaf/backport-15313-2.12
[2.12.2] Fix missing Fleet clusters updates after saving
2025-09-04 12:57:10 +02:00
Francesco Torchia 2c4f2b2942
[2.12.2] Fleet add active wait until Fleet clusters receive updates after saving
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-04 12:11:33 +02:00
Francesco Torchia 4ad55b1f9a
[2.12.2] Fleet remove CreatedBy section from App details
- move GitRepo data init in data()
- add fallback getting user info before store init

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-04 09:56:21 +02:00
Phillip Rak 63123b39ec Use `credentialId` instead of `credential` in `hideFooter()` computed
The `credentialId` was mutated into `credential` in 32b6280d4b. This had the unintended side effect of the footer being hidden for standard users who are cluster owners.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-08-22 15:04:08 -07:00
Richard Cox 7c252bde31 Ensure SecretSelector resets on namespace change
- re-render the core controls, reset the selected values
- also
  - fixed typing in labeled-select-pagination. something over the versions broke this
  - removed empty comment root output edit page
  - removed debug line in awsElasticsearch
2025-08-07 09:56:09 +01:00
codyrancher 361b8969ac
Fixes an issue where workload yaml editors didn't show errors (#15057)
Fixes #15020
2025-08-05 14:23:18 -07:00
Francesco Torchia 17ae7b2803
[2.12.1] Fleet improve validations
- fix urlRepository validator
- fix ociRegistry validator

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-08-05 12:44:53 +02:00
Francesco Torchia 150d648b95
Fleet fix HelmOps polling interval
- remove Enable/Disable Polling actions from HelmOps
- fix Polling Interval behavior in HelmOps wizard
- add HelmOps unit tests - polling interval

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-28 09:58:29 +02:00
Evgeniya Vashkevich 9a7c808093
Fixed footer inconsistency for different providers (#14829) 2025-07-17 15:23:33 -07:00
Richard Cox 8f6fa5f2e8
Rename rancher-compliance-system to compliance-operator-system (#14822) 2025-07-16 20:55:35 +02:00
Richard Cox eb1c08032f
Project Scoped Secrets (#14772)
* rename variables

* change button names + fix import

* apply pagination to secrets

* Major Changes

- secrets and project scoped secrets are now two pages
  - this fixes the issue where resource-fetch and associated mixins just fail with two of the same type on page
    - incremental loading would have been broken for both
- project scoped secrets
  - now correct lists upstream secrets that a project scoped based and on the target cluster
    - lots of work to get CRUD for management secrets in explore/cluster world
    - also includes a specific page to override the store for create/edit/view
  - these are now correctly grouped by project
  - updated to work with SSP enabled
- secrets list
  - shows if the secrets comes from a project
  - shows if the secret is a project scoped secret (only used on upstream cluster)
  - updated to work with SSP enabled
  - disabled update/delete of secrets created from project scoped (these just reset when sync runs again)
- disabled new detail view
  - this is broken, it ignores both storeOverride and currentStore, always going to `cluster` store


TODO:
- mostly testing
- blocked on some BE issues (bugs, additional indexed field)

* ... progress. will update commit message

* Revert "Merge pull request #14748 from richard-cox/revert-project-secrets"

This reverts commit be3962261d, reversing
changes made to 62d80084d9.

* tidy, and remove e2e

* test fixes

* fix vai group by

* Fix for grouping (secrets --> group by namespace --> pss --> table is incorrectly grouped but toggle is correct

* fix warning

* fix clone/yaml, fix default/system pss

* don't fetch projects, it wipes out header. this means in upstream we won't show project names for pss downstream

* fix lint

* fix ts complain

* Tweak column tooltips

* Add cypress logs for failing tests

* pipe in `inStore`

* tweaks to cypress logs process
- better name
- log http requests
- only create logs if run failed

* Secret selector improvements and test fixes
- don't cache or watch secrets if we're showing multiple selectors on a page
- ensure we classify secrets (make it into an instance of a model)

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
Co-authored-by: momesgin <mo.mesgin@suse.com>
2025-07-15 08:27:26 +01:00
momesgin a03bad566e
Compliance(CIS) profile warning banner (#13931)
* show warning banner when enabling cis profile

* add translation key

* fix show banner when re-selecting the original profile

* update message

* use isEdit computed prop

* use isEdit and isCreate from mixin

* update message

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-07-14 08:40:06 -07:00
Francesco Torchia fb67679e28
Merge pull request #14698 from torchiaf/fix-yaml-conflicts
Fix YAML 409 conflict errors
2025-07-14 10:48:15 +02:00
Phillip Rak 6f672ccf5f Add unit tests for Certificate.vue
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-11 15:52:30 -07:00
Phillip Rak c59d93e9df Certificate.vue: Initialize secretVal if `value.secretName` has data
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-11 15:52:01 -07:00
Francesco Torchia ecb8d827ba
lint
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 17:10:46 +02:00
Francesco Torchia 4b52e3f877
Handle conflict errors in resource-class.js/saveYaml PUT requests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 17:10:43 +02:00
Francesco Torchia 9873120e9f
normalize/handleConflict refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 17:10:43 +02:00
Francesco Torchia 0400d27783
Merge pull request #14770 from torchiaf/14769-fix-ca-bundle
Handle `CA Cert Bundle` empty value
2025-07-11 17:06:22 +02:00
Phillip Rak 791c75a5db
Auth Providers: Add search_using_service_account field (#14767)
* Add LPDAP option for search

* Add unit tests for LDAP config

* Add restriction for searchUsingServiceAccount config to specific types

* Use computed over direct check due lack of rendering issues with the prop

* Add tooltip for searchUsingServiceAccount

---------

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2025-07-11 07:48:04 -07:00
Francesco Torchia 82a79468b1
Fix CA Cert Bundle empty values
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-11 11:50:09 +02:00
Phillip Rak 5603a6cb47
Watch `value` to ensure that Certificate hosts and secretName update in DOM (#14755)
* Watch value to ensure that hosts is updated when deleting certs

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

* Watch value to ensure secretName is updated when deleting certs

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

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-10 15:07:38 -07:00
Alexandre Alves 5552e0df54
replace `mergeWithReplace` and `merge` with `handleConflict` function on machine pools sync mechanism (#14431)
* replace mergeWithReplace and merge with handleConflict function on machine pools sync mechanism

* do proper deep copy of objects

* fix PR

* address pr comments

* skim down usecases data

* add mergeWithReplace usecases for unit tests on handleWithConflict

* add more usecases

* fix merge conflicts
2025-07-10 19:50:59 +01:00
Nancy Butler 657a55e41a fix error message handling 2025-07-10 08:53:12 -07:00
Nancy Butler 0e08361c07 refactor setHarvesterChartValues to only run with harvester clusters 2025-07-10 08:53:12 -07:00
Nancy Butler 29e1175458 fix test path 2025-07-10 08:53:12 -07:00
Nancy Butler 007d84fac5 fix harvester cloud config path 2025-07-10 08:53:12 -07:00
Nancy Butler 05c5bfde88 fix rke2 harvester kubeconfig unit test 2025-07-10 08:53:12 -07:00
Nancy Butler 1d7ecf504c fix cluster provisioning edit as yaml modal 2025-07-10 08:53:10 -07:00
Nancy Butler 8f12599864 set harvester chart values in before save hook instead of saveOverride 2025-07-10 08:52:36 -07:00
Alexandre Alves faa7fe3b60
A11y report fixes (#14530)
* fix item 2: All page content should be contained by landmarks

* fix item 4. Elements must only use permitted ARIA attributes

* fix item 6. ARIA attributes must conform to valid values

* fix bug on item 6. and fix item 7. <ul> and <ol> must only directly contain <li>, <script> or <template> elements

* fix item 8. Interactive controls must not be nested

* fix item 10. ARIA toggle fields must have an accessible name

* fix item 11. autocomplete attribute must be used correctly

* fix item 12. Form elements must have labels

* fix item 14. ARIA input fields must have an accessible name

* fix item 15. Buttons must have discernible text

* fix item 16. Images must have alternative text

* working on item 17

* finish fix item 17. ARIA role should be appropriate for the element

* fix wrong role in hidden inputs

* address pr comments
2025-07-10 10:09:09 +01:00
Evgeniya Vashkevich c72a94e51c
Added GCE support (#14694) 2025-07-09 16:34:29 -07:00
Richard Cox 3f086247e2 Revert "Project scoped secrets (#13979)"
This reverts commit a35b81cbd3.
2025-07-09 11:16:16 +01:00
Phillip Rak 81071b5027
Revert: Add an id to track members of ArrayList.vue (#14742)
This reverts commit 6ee27db90d.
2025-07-08 18:46:56 -07:00
Francesco Torchia 65b78e506e
Fleet remove chart alphanumeric validation rule to allow dash characters
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-08 17:06:19 +02:00
Francesco Torchia f2a25a7ba1
Fleet fix Target clusters layout
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:09 +02:00
Richard Cox ce70f83265 Primary change - Fix and improve labelSelectors and vai auto updates
- labelSelector has two primary applicators
  - matching utils function
    - this should normally NOT be cached and not receive updates over sockets
    - this is done by stipulating transient = true
  - findLabelSelector
    - this should normally be cached and receive updates
    - this is done by stipulating transient = false
    - when applicable (workload and services detail page) we want live updates whilst we're on the page
      - we don't when we leave, so unwatch
- fix and align these two and their usages
  - ensure each input (transient) is correct for context
  - ensure response is in the correct format and handled correctly
- improved typing

Additionally
- Improve labelling for network policy ingress/egress label selectors
- Replace empty table with 'no details' in cis report detail page's list's sub row
- On services page handle the very weird use case of no visibility on pods
- Fix issue where extension catalog was not showing when refreshing on extension catalog page list
- Fixed an issue where we would ALWAYS show false positive invalid field warning in console
- Bump up default page size from 10k to 100k
  - this is for requests we make to the new vai cache outside of pages
  - it matches the default they use when proxying requests to target kube cluster
2025-07-03 14:25:37 +01:00
Francesco Torchia e29af970ba
Merge pull request #14650 from torchiaf/14618-fix-oci-storage-field
Fleet fix HelmOp OCI storage field
2025-07-03 13:13:05 +02:00
Francesco Torchia b5d0a59bdd
Merge pull request #14641 from torchiaf/14633-values-from-2
Fleet move ValuesFrom in ad hoc component
2025-07-03 11:43:19 +02:00
momesgin e0dd61daa3
Merge pull request #14662 from momesgin/14657-fix-secret-done-route
Fix missing done route for secrets cru resource
2025-07-02 10:11:30 -07:00
Julia Bier 7121951cca
Remove references to deprecated resourceset (#14629) 2025-07-02 12:08:00 +01:00
Francesco Torchia c6b3f8611d
Fleet fix Helm Ops OCI registry field
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-02 09:29:18 +02:00
Mo Mesgin 0214b17980 fix missing done route 2025-07-01 19:57:11 -07:00
Phillip Rak 6ee27db90d
Add an id to track members of ArrayList.vue (#14568)
* Add an id to track members of ArrayList.vue

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

* Fix unit tests

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

* Revert change to input

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

* Fix for e2e test failures

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

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-01 15:16:12 -07:00
Francesco Torchia abde612e63
Merge pull request #14626 from torchiaf/fleet-fix-app-bundles-routes
Fleet fix App Bundles routing
2025-07-01 17:12:09 +02:00
Francesco Torchia b65f5bae30
Fleet wire FleetValuesFrom in HelmOps wizard
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-30 20:02:38 +02:00