Commit Graph

62 Commits

Author SHA1 Message Date
Alexandre Alves 42efc9d3c5
fix some a11y items on ArrayList and KeyValue (#13832) 2025-03-25 09:28:51 +00:00
Francesco Torchia 32ff1b612f
Fleet, set default polling interval on creation
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-20 09:59:30 +01:00
Francesco Torchia 5e723ae2b5
Fleet: fix pollingInterval format from int to duration ISO 8601
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-03-10 20:00:17 +01:00
Francesco Torchia 805251727b
Fleet: hide advanced info bannerin view mode and vue3 errors fix
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-27 17:22:53 +01:00
Francesco Torchia be8f609728
Nit
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:17 +01:00
Francesco Torchia 0b088081cc
Fleet: fix GitRepos steps descriptions and messages
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:16 +01:00
Francesco Torchia 340e342cae
Fleet: Add GitRepo known host e2e tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:13 +01:00
Francesco Torchia 30d19c9230
Fleet: move Advanced step in last position of GitRepo wizard; add info banner and fix labels
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:12 +01:00
Francesco Torchia aa9ac4d60a
Fleet: add plus icons to buttons
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:11 +01:00
Francesco Torchia ecbd3fe64a
Fleet: Add GitRepo edit steps
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-26 10:28:11 +01:00
Francesco Torchia e9c900272c
Fleet: fix createdBy label assignment in case of clone action
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-24 18:04:20 +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 8a0e784f72
Merge pull request #13372 from torchiaf/7824-expose-polling
Fleet: expose Polling Interval for GitRepos
2025-02-21 20:53:16 +01:00
Francesco Torchia 0712fec4ac
Fleet: updatePollingInterval refactoring
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 12:14:31 +01:00
Francesco Torchia 1085e94248
Fleet: data-testid camelcase
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 12:14:30 +01:00
Francesco Torchia 1a8df4d8fa
Fleet: remove scroll when edit polling
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 12:14:29 +01:00
Francesco Torchia b884de441f
Add second/seconds l10n
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 12:14:28 +01:00
Francesco Torchia 73f876c3ed
Hide SSHKnownHosts outside Fleet
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-20 10:48:34 +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 7eebb19649
Fleet: Add Webhook is configured warning
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:12 +01:00
Francesco Torchia 6aed4b6dd4
Fleet: fix default pollingInterval in edit mode
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:12 +01:00
Francesco Torchia 1b5675f341
Fleet: Add Enable Polling checkbox
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:11 +01:00
Francesco Torchia ba799a5cfb
Fleet: set default pollingInterval to 60 seconds and minimu to 15 seconds
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:10 +01:00
Francesco Torchia 0d9f5114db
Fleet: rename GitRepo Syncronization field -> Polling
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-17 17:02:09 +01: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 a58b553b14
Improve edit page section titles
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-12 16:30:45 +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
Francesco Torchia 77ffb46b19
Fleet: git repo wizard ux improvements
- Remove banner from Paths array and use title + protip instead
- Replace Repo banner with Source title
- Fix resources tooltip grammar; code refactoring
- Reword messages
- Remove gap between auth elements

Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-02-11 10:26:05 +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
Francesco Torchia d17abad788
Handle correctDrift:enabled undefined value
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-21 11:31:32 +01:00
Francesco Torchia 6da57b2a09
Fix ready steps
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-20 18:39:54 +01:00
Francesco Torchia 8f47b01dba
Fix Fleet - GitRepo first step
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-20 18:39:54 +01:00
Francesco Torchia ce752d5ea6
Replace banners with tooltips in GitRepo edit page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2025-01-13 19:12:51 +01:00
Evgeniya Vashkevich 69fa9ec355
Removed repo format validation (#12431) 2024-10-31 10:20:20 +00:00
Richard Cox 336e765e90
Fix errors not showing in fleet git repo form (#12425)
Missed from
- https://github.com/rancher/dashboard/pull/11956#issuecomment-2422936450
- https://github.com/rancher/dashboard/issues/12298
- https://github.com/rancher/dashboard/pull/12299
2024-10-31 09:19:23 +00:00
Evgeniya Vashkevich 885f0a8cde
[FIX] Fixed validation on Gitrepo page (#12386) 2024-10-29 08:02:39 -07:00
Cody Jackson 5052c2a8e8 Enabling `vue/require-explicit-emits` linting rule
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07: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
Cody Jackson f2f014597c Removing prop mutation in v-model usage 2024-08-12 14:47:52 -07:00
Dan Pock 9fa7fc9710 Adjust label to use predefined reference 2024-06-12 07:47:52 -04:00
Dan Pock 12b68b6a99 Add default fleet label for BRO
Add fleet managed label to ensure secrets created in Rancher's fleet UI get backed up by BRO
2024-06-11 16:13:42 -04:00
Richard Cox a5661c575f
Remove usages of findAll for types supported by server-side pagination (#10795)
* Changes for new design
- New visuals
- Pagination controls --> load more
- finished testing of label select with pagination off

# Conflicts:
#	shell/edit/provisioning.cattle.io.cluster/__tests__/Basics.tests.ts

* Changes following review

* Update Node list to support server-side pagination
- Setup pagination headers for the node type
- Define a pattern for fetching custom list secondary resources
- Major improvements to the way pagination settings are defined and created
- Lots of docs improvements
- Handle calling fetch again once fetch is in progress (nuxt caches running request)
- Validate filter fields (not all are supported by the vai cache
- General pagination fixes

* Lint / test / fixes

* Improvements to configmap e2e test & Improve pagination disabled

* Beef up validation

* Fix missing name column in non-server-side paginated node list

* Fix PR automation actions
- fix syntax
- catch scenario where a pr has no fixed issue

> There's duplication between files, see https://github.com/rancher/dashboard/pull/10534

* CI bump

* Fixes post merge

* Wire in 2.9.0 settings for server-side pagination
- Everything is gated on `on-disk-steve-cache` feature flag
  - There's a backend in progress item to resolve a `revision` issue, until then disable watching a resource given it
- Global Settings - Performance
  - Added new setting to enable server side pagination
  - this is incompatible with two other performance settings

* Integrate pagination with configmaps in cis clusterscanbenchmark edit form
Also
- improved labeled select pagination
- gate label select pagination functinality on steve cache being enabled

* - harvester machine-config
- project monitoring (and bug fixes)

* Disable workload screen if vai cache is on
- temp step until we get new overview

* TODOs and TEST

* Conditionally remove fetch of all secrets from SelectOrCreateAuthSecret

* TODOs and TEST

* Update SimpleSecretSelector
- only used in monitoring.coreos.com.alertmanagerconfig context

* View and Edit ingress - secrets

* node detail page - pods list

* Backup/Restore: Secrets (WIP)

* Backup/Restore: Secrets, and other usages of SimpleSecretSelector / SelectOrCreateAuthSecret

* Edit: Service account

* Add comments for remaining items

* Paginate Secret selection for logging providers
- Allow `None` option in Paginationed LabelSelect
- Optionally classify pagination response

* WIP

* fixes arfter merge

* Don't suggest container names, not practical
- previously all pods were fetched... and we scrapped all container names from them
- this is a scaling nightmare, user now must just enter the name/s to match

* Avoid findAll secrets in SimpleSecretSelector

* tidying up

* Move LabeledSelect/index.vue back to LabeledSelect.vue to not break extensions

* changes after self review... 1

* changes after self review... 2

* ooof

* changes after self review... 3

* fix formatting

* Link new paginated label select with pagination setting

* Work around failing kubewarden unit tests in check-plugins gate

* Fix backup.spec e2e test

* fix formatting, paginationUtils.isSteveCacheEnabled --> paginationUtils.isEnabled

* Don't fetch all secrets on cloud creds page

* Fix backup.spec e2e test

* TODO tidying / tracking

* don't getch ALL workloads for hacky way to get a link to a service's workload

* Fix bad merge

* Create a convienence wrapper called ResourceLabelSelector that hides most of the complexity

* fix unit test

* Updates following review

* changes following self review

* Fix bottom bar of edit backup, edit restore pages

* revert temp change

* changes following self review

* Workaround for kubewarden unit tests in check plugin gate

* bump

* Fix e2e
2024-06-05 09:15:43 +01:00
Alexandre Alves b3eee6c503
improve code to generate a browsable fake RKE2 cluster + add e2e test for issue 9984 (#10752) 2024-04-05 09:43:10 +01:00
Shavindra b22e4d8315
Add Fleet gitrepo helmRepoUrlRegex support (#9622)
* Add Fleet gitrepo helmRepoUrlRegex support.
2023-09-06 10:57:22 +02:00
Shavindra 51b47c2af1
Disable local cluster workspace change (#9552)
* Disable fleet workspace change for local cluster.
* Add LOCAL_CLUSTER constant.
2023-08-31 10:58:46 +02: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 078317f022
Fleet gitrepo E2E (#9534)
* Fleet gitrepo E2E
* Update workspace switcher spec for fleet dashboard.
2023-08-23 11:18:48 +01:00