Commit Graph

328 Commits

Author SHA1 Message Date
Francesco Torchia ef040e0d04
[unit-tests] Add resourceNames tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 11:20:01 +01:00
Francesco Torchia fab51d0be3
Delete message, list of items refactoring:
- Remove plusMore from dialogs and use a default one
- Fix double and string in resourceNames
- Fix pods remove dialog

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 11:20:00 +01:00
Alexandre Alves d33622f112
fix form fields missing label associations (#13429)
* fix form fields missing label associations

* Update pkg/rancher-components/src/components/Form/LabeledInput/LabeledInput.vue

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* fix lint issue

* address pr comments

* address pr comments

---------

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-21 08:52:12 +00:00
Francesco Torchia 29e4b82d8f
Merge pull request #13282 from torchiaf/11239-validate-git-repo-url
Fleet: validate GitRepo Url
2025-02-05 17:34:24 +01:00
Francesco Torchia 2ffa22c9c4
Fleet: validate GitRepo Url
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-04 16:34:30 +01:00
Evgeniya Vashkevich 06c788e7a9
Migrated editing imported cluster to Vue (#13216) 2025-02-03 13:43:57 -08:00
Giuseppe Leo 78d3e1ef2a
Crontab @daily marked as invalid in Rancher Cronjobs (#13214)
* Export abstracted chron rule validation and message to match both current architectures

* Add chronSchedule to the parameterized tests; Add @daily case

* Add missing JSDocs for comprension

* Update Cronstrue to 2.53

* Remove unnecessary import

* Fix lint issues

* Add sublabel and chron type with hints

* Add @daily case to the input stories

* Add multiline type story for input

* Added Cron error case

* Add chron tests for input label

* Add periodical case as exceptions

* Linter fix

* Correct unit test definition
2025-01-30 18:49:43 +01:00
Francesco Torchia aa670a0a67
Fix missing await async calls; Remove this.harvesterRepository assignement to avoid PUT conflict
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-27 16:45:12 +01:00
Francesco Torchia 6501f3ddd2
Merge pull request #13206 from torchiaf/13199-harvester-repo-matching
Match Harvester community repo check via regex
2025-01-27 14:27:17 +01:00
Francesco Torchia 55c3dfe0a7
Match Harvester community repo check via regex
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-24 15:53:52 +01:00
Alejandro Ruiz 8c49d0c0e1
Merge branch 'master' into perf-improvements 2025-01-24 10:23:25 +01:00
Alejandro Ruiz 6aa9f06549 Conditions could be undefined 2025-01-23 18:47:46 +01:00
Alejandro Ruiz db7f9b52d6 Use BundleDeployments to calculate Bundles summary 2025-01-23 18:41:02 +01:00
Alejandro Ruiz cfaee91878 Fetch bundles from the Dashboard page in the background 2025-01-23 18:41:02 +01:00
Richard Cox 86ae345eed Tidying up ready to review 2025-01-09 13:55:55 +00:00
Richard Cox 17778da0ed Update ingress detail and edit pages
- use common helper
- both require services and secrets (of type cert) in a specific namespace
- for ease, just use the existing mechanism
2025-01-08 17:42:46 +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
Francesco Torchia 7acfdc73bc
Merge pull request #12968 from torchiaf/12679-ca-bundle-2.11
Support caBundle plain text
2025-01-07 11:49:45 +01:00
Francesco Torchia a7f1872970
Lint
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-07 11:10:39 +01: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
Francesco Torchia 710fe9da86
Remove is-base64 dependency
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-03 14:43:18 +01:00
Francesco Torchia ac4585d3c9
Add supported chart version filter
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-12 11:59:03 +01:00
Francesco Torchia a05b2d21ea
Fix refreshHelmRepository to fetch the latest repo version before update
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 18:15:39 +01:00
Francesco Torchia 0b76ae1bcb
Code refactoring and better error handling
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 16:24:51 +01:00
Francesco Torchia f98caf7407
Rename ui-plugins.ts utils file
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 15:49:53 +01:00
Francesco Torchia 47f98da936
Fix latest harvester version fetch to consider rancher compatibility
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 15:48:10 +01:00
Francesco Torchia 8e09edf809
Various improvements
- Change Prime repository name
- Fix labels
- Limit the number of cluster rows to show the messages below properly
- Add error handling when fetching Helm charts

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 15:48:09 +01:00
Francesco Torchia 6bd8ce4ad4
Lint
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 15:48:08 +01:00
Francesco Torchia d49a340524
Add Harvester extension installation automation
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-12-05 15:48:08 +01:00
Mo Mesgin c4510f6cce use mergeWithReplaceArrays to merge array values on add-on yaml editor 2024-11-27 14:36:49 -08:00
Mo Mesgin 1603dd2551 Merge branch 'master' of github.com:rancher/dashboard into 11289-undefined-chart-version 2024-11-15 08:58:48 -08:00
Richard Cox 24249f9cc1
Merge pull request #12521 from aruiz14/rework-gitrepo-status-resources
Use BundleDeployment status to calculate GitRepo resources
2024-11-14 15:54:11 +01:00
Mo Mesgin e1089f71ea Merge branch 'master' of github.com:rancher/dashboard into 11289-undefined-chart-version 2024-11-13 11:14:52 -08:00
Francesco Torchia eac3deaa4b
Add harvester features
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-11-13 15:38:36 +01:00
Richard Cox 5161bcaf71 trivial change 2024-11-08 13:45:13 +00:00
Richard Cox 0be2b76dd9 Remove duped code 2024-11-08 13:11:38 +00:00
Mo Mesgin d171ba094b refactor accessing provider 2024-11-08 13:11:38 +00:00
Mo Mesgin e177668f80 refactor getting feature flag + check provider before running the logic 2024-11-08 13:11:38 +00:00
Mo Mesgin 94596cb003 return when prebootstrap flag is active 2024-11-08 13:11:38 +00:00
Alejandro Ruiz 046eb46009 Use BundleDeployment status to calculate GitRepo resources 2024-11-06 16:31:53 +01:00
Mo Mesgin d7735cf1e4 set empty string as fallback for undefined version 2024-11-05 13:53:39 -08:00
Francesco Torchia 2e494c47f9
Merge pull request #12349 from torchiaf/feature/harvester-shell-integration-2
Harvester shell integration - bump chron libraries
2024-11-05 13:04:02 +01:00
momesgin cf25646378
Merge pull request #12446 from jordojordo/israncher-false
Add deepToRaw method for recursively converting proxy objects to raw
2024-10-31 16:19:55 -07:00
Jordon Leach 75f26c4d7c
Replace cloneDeep with deepToRaw method - add nested reactive object case 2024-10-31 13:04:23 -04:00
Jordon Leach 627e385c43
Add check for function and symbol - add unit tests 2024-10-31 11:24:28 -04:00
Jordon Leach 2b55944791
Add deepToRaw method for recursively converting proxy objects to raw 2024-10-31 10:55:00 -04:00
Evgeniya Vashkevich 69fa9ec355
Removed repo format validation (#12431) 2024-10-31 10:20:20 +00:00
Evgeniya Vashkevich 885f0a8cde
[FIX] Fixed validation on Gitrepo page (#12386) 2024-10-29 08:02:39 -07:00
Francesco Torchia efb2826120
Add verbose option to cron result
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-10-28 19:14:08 +01:00
Richard Cox 965833d12d Update following review
- avoid 0 showing as `?` - e.g. `0 || ?`
2024-10-28 16:19:56 +00:00