Commit Graph

35 Commits

Author SHA1 Message Date
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
Giuseppe Leo d2d4122bc0
Review HTML formatting rules (#6805)
* Prevent ESLint to format generated paths

* Add HTML ESLint Rules

* Format all the Vue HTML templates except Harvester

* Exclude Harvester package from linting HTML, keeping old formatting rules
2022-11-11 17:04:22 +01:00
Sean 301002559f Provide extra feedback to the user until form-validation can be added
Provide extra feedback to the user until form-validation can be added and also adds in a default value for "Enable SMS" so we're not loading the form in an invalid state.
2022-07-21 09:00:58 -04:00
Neil MacDougall 30d002a701
Fix Rancher Backup S3 CA field should be base64 encoded (#5873)
* Fix Rancher Backup S3 CA field should be base64 encoded

* Catch error if trying to encode a bianry file

* Fix lint
2022-07-08 17:41:16 +01:00
Phillip Rak 72b36cb360
Create Rancher Component Library (#5504)
This adds a new project for Rancher Components under `pkg/rancher-components` and replaces components used throughout dashboard with the versions used here. All imports for the following components have been updated:

```
  |- BadgeState.vue
  |- Banner.vue
  |- Card.vue
  |- Form
    |- Checkbox.vue
    |- LabeledInput.vue
    |- LabeledTooltip.vue
    |- RadioButton.vue
    |- RadioGroup.vue
    |- TextAreaAutoGrow.vue
```
2022-05-24 15:09:53 -07:00
Richard Cox 25acc1f8eb Plugins: Rejig files to new shell locations (#5623)
* Doc

* v0.7.0

* v0.7.1

* v0.7.2

* Add creators

* v0.1.14

* v0.1.17

* Add Yarn link

* Tidy ups and typos

* Allow models to be loaded from plugins

* v0.1.15

* v0.1.18

* v0.6.6

* Improve readme, fix cyperss log msg

* v0.1.17

* v0.1.19

* v0.6.7

* v0.6.8

* Fix logo ref when in shell

* Fix lint issues

* Fix error in example

* Fix script to work on linux

* Add ability to revert moves without losing changes

* Fix bug with custom models in a plugin

* Fix build of UI packages

* Add dist-pkg to .eslintignore

* Pull out util from extend-router to prevent router being pulled in UI packages

* Update PLUGINS.md

* Remove duplicate dependency

* Reduce size of built UI packages

* Share codemirror. Other tidy ups

* Further improvements

* Tidy ups to support i18n in plugins

* Clen up add comments

* More clean-ups and comments added

* Rename from extension to plugin

* Missed file in rename

* v0.6.9

* TIdy ups following rename

* v0.1.20

* v0.1.21

* More refactor and tidy up

* v0.1.22

* v0.1.18

* v0.1.19

* v0.1.23

* v0.6.10

* Version Packages. Improve naming. Unload.

* v0.6.11

* v0.1.20

* v0.1.21

* v0.1.24

* v0.6.12

* v0.1.25

* v0.1.22

* v0.6.13

* Fix issues when plugin is builtin

* Add missing files

* Fix lint issues and watcher ignores

* Fixes following review

* v0.1.28

* v0.1.31

* v0.6.20

* Fix coer.js version

* Fix bug where plugins included via npm don't work

* Changes post merge

* Move plugins doc to dev guide, add note at top of README

* Update cypress version

* Add note about the reset --hard in rejig -d

* Fixes post merge

* Rename @ranch to @rancher and ad plugins

* Improve routes support, add package assets support

* Add uninstall hooks and pass interal opts

* Fix rejig script

* Minor fixes

* Routing tweaks
- attempted to improve `addRoutes` typing, failed a lot
- improved typings in plugins.ts
- added "@pkg/*" entry and vue-shim (for importing components) to the pkg creator
- fixed some linting
- safely fail when Verdaccio isn't running
- fixed some typos

* Remove frontmatter-markdown-loader reference from nuxt-config

* Revert "Remove frontmatter-markdown-loader reference from nuxt-config"

This reverts commit 29ef6f2f7b.

* Exclude creators from dashboard build

* Revert "Exclude creators from dashboard build"

This reverts commit 8ede93ee7c.

* Ingore creators via tsconfig
- We're still susceptible with vue shims in multiple packages
- Need to determine why packages can't use shim from route
- Probably need to move `./vue-shim.d.ts` in to `./shell`. Needs testing with a pkg that imports a component

* After rejig

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
2022-05-10 10:04:02 +01:00