Commit Graph

456 Commits

Author SHA1 Message Date
Francesco Torchia a25b27907c
Fleet: fix createBy user location; fix duplicated bundles and add null checks
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:21 +01:00
Francesco Torchia 805690623d
Fleet: Add createdBy labels null checks
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:18 +01:00
Francesco Torchia baaf5ca23c
Fleet: Add createdBy labels via before_save_hook; Fix E2E tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:18 +01:00
Francesco Torchia 42b54a80e8
Fleet: Save createdBy labels on create GitRepo
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:15 +01:00
Francesco Torchia b6973366fc
Fleet: Labels refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:15 +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
Francesco Torchia 3197c081cb
Fleet: add Disable/Enable polling icons
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 17:47:50 +01:00
Francesco Torchia 98e5c50b94
Fleet: Add Enable/Disable Polling actions
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:13 +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
Nancy adcedf55af
bump shell version to 3.0.2-rc.4 (#13388)
* bump shell version to 3.0.2-rc.4

* fix translation string typo
2025-02-12 13:42:57 -08:00
Neil MacDougall a244f7b0bb
Add support for known hosts on ssh secret in Fleet Git Repo 2025-02-12 16:30:43 +01:00
Nancy 49664eaf01
Fix issue loading cluster provisioning ui from extensions on edit; fix provisioning cluster table grouping label (#13347)
* wip refactor emberLink

* wip edit non-rke2 clusters with ui from extension

* refactor emberLink to account for isImported isCustom and provider annoation

* clean up

* lint
2025-02-11 12:34:04 -08:00
Alejandro Ruiz 0bdf258a27 Fix precedence for resource state field 2025-02-11 17:58:26 +01:00
Alejandro Ruiz 58c92c1a74 Calculate resourceCounts from perClusterResourceCounts 2025-02-06 16:48:00 +01:00
Alejandro Ruiz 5d31b2cb79 misc: change bundleDeployments getter to "matching" 2025-02-06 16:48:00 +01:00
Alejandro Ruiz c793641518 Calculate bundle state counts from bundle statuses 2025-02-06 16:48:00 +01:00
Alejandro Ruiz 41a92158c8 Remove Age from FleetResources table 2025-02-06 16:48:00 +01:00
Alejandro Ruiz 24a31579b2 GitRepo resource table from status 2025-02-06 16:48:00 +01:00
Mo Mesgin 537878af56 Merge branch 'master' of github.com:rancher/dashboard into 12485-repositories-disabling-feature 2025-01-31 08:46:55 -08: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
Mo Mesgin face94e4ff Merge branch 'master' of github.com:rancher/dashboard into 12485-repositories-disabling-feature 2025-01-30 10:43:25 -08:00
Francesco Torchia df1aab576f
Fleet: Add cluster labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-28 12:16:44 +01:00
Mo Mesgin 8cd82ae5df Merge branch 'master' of github.com:rancher/dashboard into 12485-repositories-disabling-feature 2025-01-24 13:50:39 -08:00
momesgin 5a83e052fd
Merge pull request #13198 from momesgin/13126-managed-apps-warning-message
Add custom vendor to managed apps warning messages for delete and upgrade
2025-01-24 10:01:47 -08:00
Alejandro Ruiz 8c49d0c0e1
Merge branch 'master' into perf-improvements 2025-01-24 10:23:25 +01:00
Mo Mesgin 89348de8ec add vendor to managed apps warning messages 2025-01-23 14:40:51 -08:00
Alejandro Ruiz 69abbf8263 Misc changes 2025-01-23 18:41:02 +01:00
Alejandro Ruiz 40b5960959 Normalize states to enum values 2025-01-23 18:41:02 +01:00
Alejandro Ruiz db7f9b52d6 Use BundleDeployments to calculate Bundles summary 2025-01-23 18:41:02 +01:00
Alejandro Ruiz 18194d9097 Use matching getter to get all bundles for a gitrepo 2025-01-23 18:41:02 +01:00
Alejandro Ruiz 30fbee23fe Remove unused functions 2025-01-23 18:41:01 +01:00
Alejandro Ruiz 69a89d81d7 Obtain bundle and resource statuses from GitRepo status 2025-01-23 18:41:01 +01:00
Alejandro Ruiz 1b9d95f3cc Remove clusterResourceStatus, no longer used 2025-01-23 18:41:01 +01:00
Alejandro Ruiz e54c936a87 Calculate cluster state within gitrepo without iterating on all clusters 2025-01-23 18:41:01 +01:00
Alejandro Ruiz c5403d50e2 Calculate resourceCount for single cluster instead of using find 2025-01-23 18:41:01 +01:00
Alejandro Ruiz 53b4082b87 Remove unused clusterLabel fields 2025-01-23 18:41:01 +01:00
Richard Cox 51f21ab6f3 Merge remote-tracking branch 'upstream/master' into pagination-remove-findall-2 2025-01-23 15:57:51 +00:00
Mo Mesgin ef4e0d7ca5 keep disable and enable buttons next to each other 2025-01-21 14:57:06 -08:00
Mo Mesgin 3812fc8dbe update badge disabled styling 2025-01-20 17:36:27 -08:00
Mo Mesgin b8c39e99df Merge branch 'master' of github.com:rancher/dashboard into 12485-repositories-disabling-feature 2025-01-20 15:22:19 -08:00
Neil MacDougall 3ff358c401
Show badge color for local cluster (#13077) 2025-01-13 16:30:16 +00:00
Richard Cox 09194418bf finish off functional stuff 2025-01-09 16:50:41 +00:00
Richard Cox fb203f945f tidying up ready for review 2025-01-09 11:26:18 +00:00
Richard Cox f980283813
Add server-side pagination to cluster explorer lists (#11672)
* cluster list now uses resource table

* New PaginatedResourceTable

* WIP

* add context to pag setting

* tidying up

* Add server-side pagination to cluster explorer events and general events list

* Servier-side pagination for catalog apps, cluster repo and operation

* Servier-side pagination for Service --> HPA, inmgress, services

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* fixes after merge. apply PagResTable to node list, vue3 fixes

* - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists

* policy section

* fix async button in manual refresh mode

* fgh

* aaaaa

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* fixes / updates

* testing/tidying

* WIP - Rest of workload lists

* finish off workloads

* tidying up

* fix non-generic list filtering by namespace

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests

* remove invalid sort/filter type

* Running through new indexed fields

* fix unit tests

* lint fixes

* Fixes after small review

* lint

* Test for check-plugin-gates pkg build from shell

* e2e fixes

* Testing new indexed fields with dev image

* tidyuing up imports in hope to fix ts error in check-plugins gate

* Fix failing check-plugin-gates
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file

* tidying up a smidge

* Many tweaks
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields

* Improve location of new place where componentWillFetch is set

* fix lint, comment updated

* Fix failing e2e tests
- fix cluster dashboard events test
- fix and greatly improve flaky events test
- fix hpa test
- functional fixes
  - fix sorting/filtering events by object type
  - fix hpa columns
2025-01-07 15:13:42 -07:00
Richard Cox 11eda663bf WIP 2025-01-07 13:34:18 +00:00
Mo Mesgin f4147d6401 add disable/enable functionality to cluster repos 2025-01-06 09:35:38 -08:00
Richard Cox b614082ce1
Add server-side pagination to home page cluster list (#11663)
* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests
2025-01-03 15:34:28 +00:00
Richard Cox 95c693f850 Merge branch 'pagination-home-page' into pagination-cluster-explorer 2024-12-16 15:44:18 +00:00
Richard Cox 39c2cd7599 Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881
2024-12-16 13:42:33 +00:00