Commit Graph

51 Commits

Author SHA1 Message Date
Alejandro Ruiz 1e0cfc0651 Deprecate unused functions and types 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
Francesco Torchia c09de5b1e4
nit
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-28 18:13:17 +01:00
Francesco Torchia fd79da312c
Fleet, remove missing resources links
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-28 17:38:13 +01:00
Francesco Torchia b1b9b756e6
Fleet: Implement force update dialog
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-25 12:48:49 +01:00
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 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
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 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
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
Alejandro Ruiz 8e76737596 Fix empty GitRepos list on Cluster details 2024-11-20 11:33:34 +01:00
Alejandro Ruiz 046eb46009 Use BundleDeployment status to calculate GitRepo resources 2024-11-06 16:31:53 +01:00
Evgeniya Vashkevich 885f0a8cde
[FIX] Fixed validation on Gitrepo page (#12386) 2024-10-29 08:02:39 -07:00
Richard Cox 965833d12d Update following review
- avoid 0 showing as `?` - e.g. `0 || ?`
2024-10-28 16:19:56 +00:00
Richard Cox df9c7ad684 Fleet Improvements
- Performance Fix
  - go back to using git repo status cluster ready / desired stats instead of costly clusterResourceStatus (churn can call this a LOT)
  - Improve load time of fleet cluster detail page
- Bug Fix
  - Using targetClustersReady and targetClusters doesn't seem to work in some cases, revert back to previous
- General Fixes
  - Fix weird fleet cluster list column alignment
2024-10-28 14:05:45 +00:00
cnotv ff08d80e0e Lint: Manually fixed issues related to vueApp variable added by the script 2024-08-22 16:07:03 -07:00
Cody Jackson 9b829c55ea Ran `yarn lint --fix` 2024-08-22 16:05:36 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Alexandre Alves b70864ace6
Test GitRepo detail view displays incorrect number of bundles + code improvements and fixes (#10986)
* add cluster tab to git repo details + improve code on fleet dashboard view + fix count of clusters in fleet dashboard view badges + add e2e test for 9866

* address pr comments + remove clusters tab from fleet gitrepo details view
2024-05-20 16:43:19 +01:00
Neil MacDougall f5431cbbaf
Add i18n string usage checker script (#10805)
* Add i18n string usage checker script

* Fix lint issues

* Add i18n check to GH Action workflow

* Update to node 16

* Update workflow to run script properly

* Allow script to return okay if when there are errors

* Add documentation

* Remove commented code
2024-05-02 20:52:15 +01:00
Shavindra 2e69430808
Fix fleet cluster state (#10162)
* Display cluster state.

* Display cluster repo status badge.

* Fix typo.

* Fix typo.

* Fix linting.

* Fix linting.

* Removed type from request.

* Reverted change.
2023-12-18 10:52:11 +01:00
Shavindra e721ce3fe8
Handle correctdrift for previously created repos. (#9578)
* Handle correctdrift for previously created repos.
* Fix edit and Clone textbox
2023-08-25 12:18:19 +02:00
Shavindra eeb2a48330
Filter the bundles by label repo-name. (#9408) 2023-07-25 20:30:24 +02:00
Shavindra f9a954a263
#4683 - Add fleet gitrepo resource age per cluster. (#9299)
* Add fleet gitrepo resource age per cluster.
2023-07-20 14:24:20 +02:00
Evgeniya Vashkevich c00445d501
Added UI to enable Fleet self-healing (#9310)
* Added UI to enable Fleet self-healing

* removed unused data-testid
2023-07-13 10:31:50 -07:00
Giuseppe Leo 01eeb0548f
Add recommended lint rules globally (#8997)
* Update configuration

* Create default config for eslint

* Restore plugin:vue/recommended

* Add exceptions and overrides

* Correct manually remaining issues

* Adding further picked exceptions groupped up

* Fix or disable specific cases manually and singularly

* Add naming linting exception

* Remove unused variable in component

* Move rules to default

* Autocorrect rancher/components linting issues

* Configure VSCode to use multiple files, to display linting for rancher components

* Disable jest lint hook restriction for string list component

* Autofix
2023-06-23 17:02:55 +02:00
Shavindra e12939115e
Allow basic fleet user to manage fleet without cluster permissions. (#7446)
* Allow basic fleet user to manage fleet without cluster permissions.

* Handle no workspaces.

* Add Fleet bundle namespace mapping - fleet.cattle.io.bundlenamespacemapping

* Add git repo restrictions.

* Handle auth errors for checkSchemasForFindAllHash.

* Fix workspace switcher and handle fleetworkspaces 401 issues.

* Update workspace switcher.

* Fix Gitrepo restriction creation from the Workspace create

* Disable workspace creation
* Fix workspace loading after creation

* Fix Bundle creation error.

* Remove redudant FLEET.TOKEN request.
2023-02-23 14:15:32 +00:00
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00
Alexandre Alves 1e3110f9e6
Fleet request: more real time visibility (#5938)
* Fleet Bundle Deployment Chart

Co-authored-by: Alexandre Alves <aalves@AlexandresMBP2.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2022-05-12 16:20:08 +01:00