Commit Graph

181 Commits

Author SHA1 Message Date
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
Francesco Torchia 83d07af9f9
[2.12.2] Fleet fix missing resources from clusters details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-09-02 18:38:08 +02:00
Richard Cox a53e85f092
Merge pull request #15083 from richard-cox/2-12-fix-resource-detail-updates
[2.12] Fix general and specific resource detail watch issues
2025-08-11 10:31:56 +01:00
Richard Cox 8c474ff64c Merge pull request #15011 from richard-cox/fix-resource-detail-updates
Fix general and specific resource detail watch issues
2025-08-07 10:14:46 +01:00
Richard Cox e69262f02b Merge pull request #14994 from richard-cox/fix-workload-sublists
Improvements to workload detail page resource lists
2025-08-07 10:05:46 +01:00
Evgeniya Vashkevich 2e25bc83ae
Added back RKE1 removal, removed etcdbackup (#14786) 2025-07-14 08:29:27 -07:00
Richard Cox 32867a9fd0
Merge pull request #14309 from richard-cox/pagination-docs-2
Performance: Developer Docs
2025-07-09 17:11:28 +01:00
Siva Kanakala 38d02a4548 fix-clipping-graphs 2025-07-08 22:42:32 +05:30
Francesco Torchia 462f26d126
Fleet add HelmOps count in Workspace details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-07 13:52:27 +02:00
Francesco Torchia 993b48a285
Fleet clean-up workspace details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-07-04 10:11:07 +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 41a7cbed79
Update to support compliance benchmarks (#14582)
* Update to support compliance benchmarks

* Fix lint

* Don't use hard-coded default profiles

* Update e2e tests

* Fix name change in e2e test

* Fix lint

* Rename
2025-06-29 20:20:26 +01: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 a6d97f6833
Fleet rename helmapps to helmops; fix cluster registriy and chart values handling
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:50 +02:00
Francesco Torchia 1a4ec36b9f
Fleet switch workspace when navigating to helm ops details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:48 +02:00
Francesco Torchia cea205afd2
Fleet add applications table in cluster details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-18 11:15:44 +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 ff3afa1df4
Fleet Implement Dashboard main panel
- Add HelmOps model
- Implment dashboard functionalities
- Change workspace when navigating to GitRepo details page

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-06-10 18:21:44 +02:00
Richard Cox 1bf6f3cb66 Updates 2025-06-04 17:31:33 +01:00
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
Phillip Rak c4bf19ec88
Revert custom object merge behavior (#14352)
Revert changes to object merge behavior because the existing behavior is destructive when merging deeply nested user values. For example, a default object contains the value:

```js
a: {
  b: true,
  c: true,
  d: {
    e: true,
    f: {
      g: true,
      e: { },
      f: [ ],
    },
  },
}
```

and a user value modifies `g`, which is stored as:

```js
a: {
  d: {
    f: {
      g: false,
    },
  },
}
```

When the object is merged, deeply nested values will only be taken from the user values, causing properties to be lost. Furthermore, default properties for `f` can also be dropped. This operation is too destructive, and it's better to merge user-supplied properties with defaults than to drastically alter YAML altogether.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-05-14 15:05:54 -07:00
Richard Cox 9ec9018a23
Merge pull request #13728 from richard-cox/fix-node-detail
Improve handling of missing schemas
2025-05-12 15:20:09 +01:00
Phillip Rak 4cb4b80970
Detail view: Overwrite defaults with user-supplied chart values (#14315)
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-05-09 18:13:02 -07:00
Francesco Torchia 9ff31fa071
Merge pull request #14124 from aruiz14/fleet-deprecate-resourceKeys
Use BundleDeployment status for showing Bundle resources list
2025-05-06 23:29:24 +02: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
Alejandro Ruiz 22a044c4b6 Use FleetResources component in Bundle details 2025-04-15 10:29:07 +02:00
Alejandro Ruiz 8c31b1609d Small refactoring in GitRepo resources to allow sharing code 2025-04-15 10:29:07 +02:00
Richard Cox cae343df78 Allow individual resource tables to supply overrides for product resource group settings 2025-04-11 11:00:02 +01:00
Evgeniya Vashkevich 9b46062ecd Addressed aome comments 2025-03-18 15:27:38 -07:00
Evgeniya Vashkevich 70be8838cd [FIX] Adjusted HPA to handle non-resource metrics 2025-03-14 13:49:02 -07:00
Richard Cox 0030b2bb39 Improve handling of missing schemas
- make ported `createHeaders` schema null safe
- ensure node detail page handles no pods permissions
- both are pre 2.11 issues (though some code has changed locations)
2025-03-12 18:16:58 +00:00
Alexandre Alves 598e32ea25
RKE2 Cluster Detail Page: Machine Pools List is not grouped by pool / machine deployment (#13623)
* hide grouping controls for machines and machine pools in prov cluster details view corresponding tab

* Fix rke1 pool list

---------

Co-authored-by: Richard Cox <ricox@suse.com>
2025-03-10 15:43:52 +00:00
Francesco Torchia 9e3b7b1b4e
Merge pull request #13306 from torchiaf/13189-fleet-created-by-label
Fleet: Created By label
2025-02-25 11:08:04 +01:00
Francesco Torchia 8610dd5d9a
Fleet: fix find users permissions
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:21 +01:00
Francesco Torchia 573406b341
Fleet: Add created by label in Bundle details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:14 +01:00
Francesco Torchia 3229dfc30e
Fleet: Add created by label in GitRepo details page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:13 +01:00
Mo Mesgin cc0d56853d Merge branch 'master' of github.com:rancher/dashboard into 13284-rke1-deprecation-banner 2025-02-21 12:31:47 -08:00
Francesco Torchia 8a0e784f72
Merge pull request #13372 from torchiaf/7824-expose-polling
Fleet: expose Polling Interval for GitRepos
2025-02-21 20:53:16 +01:00
Mo Mesgin a7a49eb9f9 Merge branch 'master' of github.com:rancher/dashboard into 13284-rke1-deprecation-banner 2025-02-21 11:07:31 -08:00
Richard Cox a1ed926776 Ensure cluster detail manchine and node lists are grouped correctly
- their resource table elements turned these off
- this misconfiguration was ignored until grouping was fixed in https://github.com/rancher/dashboard/pull/11663
  - specifically the addition of the if in computedGroupBy
   ```
    computedGroupBy() {
      // If we're not showing grouping options we shouldn't have a group by property
      if (!this.showGrouping) {
        return null;
      }
   ```
2025-02-20 17:04:02 +00:00
Mo Mesgin c70353dc7a show warning in details page and when switching the rke1 toggle 2025-02-19 23:28:06 -08:00
Francesco Torchia ae60872005
Fleet: add Polling Interval input field to GitRepo edit page
- Add UnitInput field to edit/display the pollingInterval
- Add unit tests
- Add warning banners to inform about polling interval low value risks
- Scroll page to show warning banners

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:09 +01:00
Francesco Torchia 0b764f88f4
Merge pull request #13244 from aruiz14/fleet-resources-rework
Simplify handling of GitRepo status resources
2025-02-17 16:33:55 +01:00
Neil MacDougall a244f7b0bb
Add support for known hosts on ssh secret in Fleet Git Repo 2025-02-12 16:30:43 +01:00
Alejandro Ruiz ad94ec16ae Remove unused function 2025-02-07 10:02:07 +01:00
Alejandro Ruiz bdc0162307 Stop fetching bundleDeployments 2025-02-06 16:48:00 +01:00
Neil MacDougall 8001967416
Extensions: Add hooks to support virtual clusters (#11064)
* Add hooks to support virtual clusters

* Fix lint issues

* Refinements

* Update for Vue 3 changes

* Fix import

* Minor tweaks

* Fix bug causing e2e tests to fail

* Fix lint issue

* Rename internal properties and ensure they don't break clone/save

* Ensure we generate types for the plugins package to give us access to mapDriver

* Simpler approach

* Fix lint issues and add type

* Remove unused code

* Revery unnecessary changes

* Bug fix for finding model extension

* Factor out string constant and add provider display method

* Add experimental to API

* Update typegen.sh to use SHELL_DIR var

* Move type def

* Fix lint issue

* Address PR feedback

* Update steve-class.js so we always get an array

* Fix type definition
2025-01-31 08:51:58 +00:00
Alejandro Ruiz 8c49d0c0e1
Merge branch 'master' into perf-improvements 2025-01-24 10:23:25 +01:00
Alejandro Ruiz 04cde0f6fd Use clusterId instead of clusterLabel 2025-01-23 18:41:01 +01:00