Commit Graph

55 Commits

Author SHA1 Message Date
Richard Cox 58fcd7e28b fix unit test 2025-08-07 10:25:13 +01:00
Richard Cox bbd8ee7eb8 Fix failure to fetch workload resources in monitoring chart install
- with vai on the filter fields need to be defined
- blocked on https://github.com/rancher/rancher/issues/48603
2025-06-03 09:58:47 +01:00
Richard Cox 1698b33a12 Ensure in Monitoring install wizard storage class can be selected
- we were fetching a specific path on all workload types
- however it doesn't exist for cron jobs, so exclude
2025-04-11 09:33:58 +01:00
Evgeniya Vashkevich 9b46062ecd Addressed aome comments 2025-03-18 15:27:38 -07:00
Evgeniya Vashkevich 85b097b4cd
[FIX] Storage class selector not working (#12970) 2025-01-03 12:48:38 -08:00
Phillip Rak 468685bf75 Replace remaining instances of `\$delete` with `delete`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-14 10:33:13 -07:00
Phillip Rak cf1341cd44 Replace remaining instances of `\$set` with assignment
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-14 10:33:01 -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
Cody Jackson 39b5e35ce0 Refactoring tabbed values in chart installation
We had this `hasTabs` api which implicitly allowed a chart install override component to implicitly define tabs instead of just having the component define them explicitly.

This required prop drilling to work and it doesn't appear to work any longer with dynamic components. Since this was only used in two places I removed support for this and simplified the implementation.
2024-08-22 16:09:55 -07:00
Phillip Rak 97b58ca4f0 Update unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
cnotv 78d70353c5 Unit test: Migrate unit tests with the script 2024-08-22 16:07:03 -07:00
Cody Jackson 909affa02f Replacing $emit('input' with $emit('update:value'
This should've been done in the migration script and will be fixed for the next run.
2024-08-22 16:07:03 -07:00
Cody Jackson d744a0d8b3 Switch out/remove the deprecated createLocalValue for the plugins: [Vuex]
This only addresses the complaints made by the cli when running. There are still more instances of createLocalVue

https://stackoverflow.com/questions/66932839/typeerror-0-testutils-createlocalvue-is-not-a-function
2024-08-22 16:05:36 -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
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
Richard Cox 542ebd4f40
Wire in pagination to LabeledSelect and use for pods, secrets and configmaps (#10786)
* 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

* TODOs and TEST

* 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

* changes after self review... 3

* Link new paginated label select with pagination setting

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

* Fix backup.spec e2e test

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

* fix unit test
2024-05-30 10:49:29 +01:00
momesgin 6ca6174aba
Add e2e test to check default grafana storage size for statefulset type (#10933)
* add e2e test to check default grafana storage size for statefulset type

* make default grafana size reusable for both pvc and statefulset types

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-05-02 15:11:53 -07:00
momesgin 1b1b2d233a
Fix storage class not being selected properly (#10808)
* fix storage class not being selected properly

* lint

* add feature tag

* minor refactor

* add storageClasses to watch block

* minor refactor

* fix test

* remove unnecessary watch item

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-04-17 18:24:17 -07:00
Phillip Rak 7e703b4c74 Replace `nuxt-link` & `n-link` with `router-link`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-27 14:04:17 -07:00
Alexandre Alves 5409f2b23a
remove v1 monitoring code (#10539)
* remove v1 monitoring code

* fix lint issue

* remove monitoring v1 uninstall code + remove v1 uninstall translation strings + simple checks for detail pages in e2e tests to verify integrition of work done

* address pr comments

* fix unit tests

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-03-22 17:39:32 +00:00
Neil MacDougall 2cd4b00d41
Add grafana resource configuration (#10086)
* Fix for Monitoring Helm chart sometimes adds empty selector

* Correct close icon styling

* Tweak close icon width

* Fix lint issues

* Monitoring chart: Add support for Grafana resource configuration

* Remove duplicate test from merge issue

* Don't install the charts, use static response

* Fix e2e test
2024-01-08 17:05:25 +00:00
Neil MacDougall b1f40a0c49
Fix select does not select default storage class (#10107)
* Fix select does not select default storage class

* Fix indentation
2024-01-04 17:56:14 +00:00
Neil MacDougall 29d8f34ba5
Fix for Monitoring Helm chart sometimes adds empty selector (#10085)
* Fix for Monitoring Helm chart sometimes adds empty selector

* Correct close icon styling

* Tweak close icon width

* Fix lint issues
2023-12-14 13:23:25 +00:00
Richard Cox 2397f3cc5d Remove testing artefact
- Came in with https://github.com/rancher/dashboard/pull/10054
- The TODO relates to testing locally and shouldn't have been merged
2023-12-12 15:35:24 +00:00
Richard Cox 18989a8bc0 Fix import 2023-11-21 15:19:45 +00:00
Richard Cox 0c7e71139f Don't fetch all workload types to check for prom operator
- Previously ALL workloads were fetched and then filtered for those containing certain images
- We now do this upfront via API
- depends on https://github.com/rancher/dashboard/pull/10024
2023-11-17 17:59:54 +00:00
Richard Cox fd9285ea4d Remove use of findAll secrets - Monitoring Chart
- Contributes to #9964
- Monitorign chart fetched all secrets, then all usages of it filtered down to a single namespace
- So we now only fetch

Related
- Fix scenario where fetching all then fetching namespaced would return all results

Improvement
Also improve spacingin a placeholder
2023-11-17 17:58:43 +00:00
momesgin a0a1bc3439
Merge pull request #9723 from momesgin/2615-default-value-for-grafana
default size value for grafana v2
2023-11-15 16:15:51 -08:00
Evgeniya Vashkevich 92d810399a
[FEAT] Removed all mentions of Pod Security Policies (#9962) 2023-11-01 11:02:43 -07:00
Mo Mesgin 8eb2addd27 default size value for grafana v2 2023-09-15 10:14:10 -07:00
Evgeniya Vashkevich a77323ff5f
Added validation to 'Rancher backups' chart installer (#9278)
Added validation to the 'Rancher backups' chart
2023-07-10 16:01:34 -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 c1e3897792
Remove empty selector from prometheus. (#8889)
* Remove empty prometheus selector values from API request.
* Add E2E for Prometheus selector.
2023-06-01 20:13:33 +02:00
richa 69e19ae02f
Fixed banner alignment in istio installation page (#8863) 2023-05-22 12:50:25 +02:00
Phillip Rak ade3c9f4e7 Replace all instances of `v-tooltip` with `v-clean-tooltip`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-05-18 15:39:14 -07:00
Nancy 039bf00d67
Ensure CRDs are always installed with the same global values as the main chart (#8636)
* during chart installation only apply crd values that have been customized

* rm unused import in install.vue
2023-04-05 14:32:04 -07:00
Neil MacDougall c65100e416
Update v-html to v-clean-html (#8633) 2023-04-05 13:56:33 -07:00
Neil MacDougall 9584e994eb
Istio install : Fix issue where Kiali requires Pilot (#7971)
* Istio install : Fix issue where Kiali requires Pilot

* Update en-us.yaml

* Update istio.vue

* Fix merge issue

* FIx merge issues
2023-04-05 13:04:06 +01:00
Giuseppe Leo d0eb4f32c2
Custom chart UIs show PSP switch on Kubernetes v1.25 (#8505)
* Formatting test code

* Remove wrapping styles from ChartPsp checkbox

* Add PSP display condition; allow to pass title

* Prevent checkbox to disappear on value change on certain conditions

* Ignore path for given map of charts/keys if k8s >= 1.25 and PSP is disabled

* Changed way to retrieve cluster version to standard method
2023-03-27 18:02:03 +02:00
Phillip Rak 7cecbc0f62 Replace all instances of `v-html` with `v-clean-html`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-03-22 08:30:15 -07:00
Nancy ecfd035751
Add enableDefaultSeccompProfile option to the Gatekeeper chart install ui (#8381)
* fetch auto-install chart info; pass associated chart values to custom chart ui components; allow configuring enable default seccomp profile during gatekeeper install

* fix gatekeeper localization path
2023-03-13 09:15:57 -07:00
Nancy d9794c375c
add enable psp checkbox to custom chart uis (#8163)
* add enable psp checkbox to custom chart uis

* fix chartpsp checkbox import

* expand chartpsp tests, fix path in chartpsp component
2023-02-17 15:32:08 -07:00
Neil MacDougall b1ac45d18e Address PR feedback 2023-02-09 20:37:07 +00:00
Nancy 14afb83a72
Revert "get docs base url version from getVersionInfo (#7436)" (#7863)
This reverts commit 129568d991.
2023-01-10 11:12:13 -07:00
Nancy 129568d991
get docs base url version from getVersionInfo (#7436)
*update docs links in translation file

*update chinese translation doc links

* fetch latest rancher version tag to determine doc url versioning

* fix hardcoded links to 2.6-only documentation

* update doc base url
2023-01-04 09:09:26 -07:00
Nancy 002c984e0f
refactor promptModal component props (#7435)
* use modalData.componentProps to pass props to custom modal components

* linting errors
2022-12-06 09:41:17 -07: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
Bastian Hofmann 5532558a08
Monitoring Installation: Remove Prometheus storage volumeMode (#6601)
form field

Prometheus needs a formatted filesystem for its persistent volume. Setting the volumeMode to anything else but `Filesystem` (default) does not work.

Fixes https://github.com/rancher/dashboard/issues/6600
2022-11-15 14:51:36 +00:00