Commit Graph

490 Commits

Author SHA1 Message Date
Richard Cox 01dbbd6897
Merge pull request #14719 from richard-cox/pagination-fix-receiver-config
Ensure correct syntax is used with SSP and the secret selectors
2025-07-09 08:26:27 +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 e765334cb5
Add showErrors prop in ResourceYaml and make errors closable
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-08 17:07:50 +02:00
Richard Cox bd7341aae4 Ensure correct syntax is used with SSP and the secret selectors
- two fixes, two places
- Fix - ensure filter=x=1,x=2 format is used and not filter=x=1,2
  - this must have worked at some point...
- Fix - ensure partial filter is used when searching secrets by name
  - same here...
- SimpleSecretSelector is only used in monitoring alertmanager receive config
  - See issue for repro steps
  - whoever created it should have used SecretSelector instead
- SecretSelector is only used in logging output providers
  - Logging --> Outputs --> Create --> Outputs tab --> Access secret fields
2025-07-07 20:17:31 +01:00
Francesco Torchia 311aeca2f3
Merge pull request #14655 from torchiaf/fleet-cosmetics-2
Fleet cosmetic fixes
2025-07-07 12:15:21 +02:00
Francesco Torchia cd20c86597
Fix labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:14 +02:00
Francesco Torchia a7db4d17dd
Fleet Target Clusters assign focus on add MatchExpression rule
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:12 +02:00
Francesco Torchia 7d30fa86a7
Fleet Target Clusters assign focus on add MatchExpression
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:11 +02:00
Francesco Torchia 787de58e97
Fleet fix GitRepo Paths layout
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:10 +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
Francesco Torchia 18a8607426
Extend Show System labels to cattle.io/
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 09:45:18 +02:00
Francesco Torchia 76374d8fd8
Merge pull request #14667 from torchiaf/11229-system-labels
Fix protected Labels
2025-07-03 20:20:18 +02:00
Francesco Torchia ceb318cf52
Implement Labels unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-03 18:01:32 +02:00
Francesco Torchia 9452f01946
Fix Labels component
- display errors when adding protected labels/annotations
- discard new labels/annotations when keys are protected and preserve old protected keys
- show protected labels/annotations toggler only in view mode and for EVERY models having custom protected labels/annotations

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-03 16:38:40 +02:00
Francesco Torchia 788b26a664
KeyValue clean-up
- remove protectedKeys and toggleFilter
- add keyErrors for key field

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-03 16:35:37 +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
Neil MacDougall f8a6ddf25d
Fix select controls do not close when clicking on arrow (#14217)
* Fix select controls do not close when clicking on arrow

* Rebase

* Control vue-select state via labeledSelect

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

* Control vue-select state via Select.vue

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

* Set isOpen to false when select closes

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

* Move focus back to select wrapper on close

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

* Defer more select open state logic to wrapper

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

* Close when no selection is made

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

* Allow for multiselect

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

* Fix failing e2e test

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

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2025-07-02 13:33:43 -07:00
Siva Kanakala 5192b2501f
fix-onPaste-Keyvalue (#13071) 2025-07-02 08:50:37 +01: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
edenhernandez-suse c7ee08f825 Lint fix 2025-06-27 14:10:05 +02:00
edenhernandez-suse bcc638d818 Fleet settings minor issues - headings, button sizes 2025-06-27 13:53:31 +02:00
Phillip Rak ade0a1f9d9
Simplify spacebar prevent behavior when focusing LabeledSelect (#14553)
* Simplify spacebar prevent behavior when focusing LabeledSelect

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

* Fix unit test

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

* Simplify spacebar prevent behavior when focusing Select

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

---------

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-06-26 08:57:30 -07:00
Francesco Torchia cae2fc219c
Merge pull request #14535 from torchiaf/13765-fleet-settings
Fleet Settings
2025-06-26 15:41:14 +02:00
Alexandre Alves aebde5c25f
Rancher as an OIDC provider (#14475)
* Rancher as an OIDC provider (interface and flow)

---------

Co-authored-by: Richard Cox <ricox@suse.com>
2025-06-26 10:39:26 +01:00
Francesco Torchia 31826b0f0c
Fix Taints, add missing mode prop to effect field
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-25 19:39:35 +02:00
Francesco Torchia 7a2140bf14
ConfigMapSettings add handler option to use Custom components based on setting types
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-25 19:39:32 +02:00
momesgin a35b81cbd3
Project scoped secrets (#13979)
* projec scoped secrets page

* project-scoped secret creation

* refactor

* use new label + refactor

* refactor

* always local cluster url for project-scoped secrets

* grouping secrets by project name

* fix grouping

* fix namespace value

* fix cancel redirect

* fix done redirect

* e2e tests

* fix e2e test

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2025-06-24 12:58:37 -07:00
codyrancher 26859160ff
Merge pull request #14538 from codyrancher/detail-page-config-map
Adding the new configmap detail page
2025-06-20 11:03:35 -07:00
Francesco Torchia 8180c38d65
Merge pull request #14471 from torchiaf/13188-repo-paths
Fleet GitRepo Bundles and Paths refactoring
2025-06-20 17:51:06 +02:00
Francesco Torchia 86fbbd3930
Fleet fix GitRepo paths add comments
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-19 12:15:48 +02:00
Francesco Torchia 275cb5f450
Fleet fix GitRepo paths labels and tooltips
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-19 11:54:55 +02:00
Francesco Torchia a7aa6eeaf5
Fleet fix gitrepo paths css
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-19 11:54:52 +02:00
Francesco Torchia c8c40c55ff
Fleet code clean up
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-19 11:54:50 +02:00
Francesco Torchia a5608820e8
Fleet add GitRepoPaths component and wire it in gtirepo pages
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-19 11:54:46 +02:00
Francesco Torchia 29ef1ba8d2
Fleet fix target clusters labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-19 09:53:08 +02:00
Cody Jackson 36e9876f23 Adding the new configmap detail page
fixes #13324
part of #13325
2025-06-19 00:40:57 -07:00
Francesco Torchia 952be9a79c
Fleet targets button css
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 15:46:45 +02:00
Francesco Torchia 1a6c154a47
Fleet add FleetClusterTargets component and wire it in GitRepos and HelmOps
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 15:46:41 +02:00
Francesco Torchia 51c24a1a8d
Fleet implement HelmOps list page; fix dashboard cards
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:40 +02:00
Francesco Torchia 1ea22fc32c
Fleet add Oci Registry secret selector in GitRepo wizard
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-17 04:04:31 +02:00
Richard Cox fdcdf81278
Merge pull request #14467 from richard-cox/add-role-psa-project-warning
Show a warning on the project/namespace role create/edit and detail pages for upgradepsa perms
2025-06-12 10:49:50 +01:00
Richard Cox 614a820bba Show a warning on the project/namespace role create/edit and detail pages for upgradepsa verb 2025-06-05 14:25:21 +01:00
Richard Cox 5de354c7e5 Ensure selection of secret key when configuring alert manage configs
- Regression brought in via https://github.com/rancher/dashboard/pull/10786
- wrong map fn was used for SimpleSecretSelector
- SimpleSecretSelector is only used when managing alert manager configs
2025-06-05 10:06:23 +01:00
Richard Cox a985e97469
Merge pull request #13208 from richard-cox/fix-monitoring-install
Fix failure to fetch workload resources in monitoring chart install
2025-06-04 17:57:23 +01:00
Alexandre Alves 387891f61f
improve a11y in some of our most used components in Rancher Dashboard (#14343)
* improve a11y in some of our most used components in Rancher Dashboard

* revert changes to roles on keyvalue component
2025-06-04 08:50:48 +01:00
Richard Cox d870c07cf1 Finish testing, fix search services, reference new rancher/rancher issues 2025-06-03 13:20:25 +01:00
Richard Cox 2a518c33f8 Update given BE progress 2025-06-03 09:58:47 +01:00
Neil MacDougall 0ababdda45
Add support for HTML page banners (#14356)
* Add support for HTML banners

* Add support for HTML banners

* Updates test so it runs okay after the text banner tests

* Fix for html tests running after others

* Improve e2e test reliability

* Add aria-labels
2025-05-29 17:15:21 +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
Alexandre Alves 20827a1943
fix problem with space key on searchable selects (#14362)
* fix problem with space key on searchable selects + add unit tests

* fix lint issue
2025-05-19 11:49:44 +01:00