Commit Graph

186 Commits

Author SHA1 Message Date
Jordon Leach 447174958d
Add initial Kubewarden installation tests (#9295) 2023-07-12 09:46:42 -04: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
Alexandre Alves 49b5cd356c
Handle extensions that are already installed and shouldn't run in a particular kube version (#9128)
* add logic to display message on installed extension card to warn user when kube version for installed extension is not met + add logic to disable version buttons on info side panel

* add code comment

* minor cleanup

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-07-10 10:13:35 +01:00
richa 8c60009a2b
Removed cluster tools banner from dashboard page (#9240)
* Removed cluster tools banner from dashboard page

* Removed banner text from translation files
2023-07-10 08:56:02 +02:00
wujun 80ff8ea453
fix version undefined (#9281) 2023-07-07 10:53:10 -07:00
richa d4c35d3004
Fix role template title (#9244)
* Fixed role template title

* Fixed auth role template title

* Fixed renamed title in test
2023-07-04 08:51:47 +02: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
Alexandre Alves a4a2689a65
fix issue where extension versions appeared as duplicated (#9121)
* fix issue where extension versions appeared as duplicated

* remove force option

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-06-16 14:21:15 +01:00
wujun 717a2b2c14
HARVESTER: add bare-metal container and mcm support (#8754)
* HARVESTER: add bare-metal container and mcm support

* Harvester: Fix re-render old route component

* HARVESTER: fix services and hide repositories

* HARVESTER: add svg icon

* HARVESTER: add harvester version in explorer page

* HARVESTER: change openRancherManagerSupport => isRancherInHarvester

* HARVESTER: move method to models type

* HARVESTER: enhancement TopLevelMenu when use embedded rancher

* HARVESTER: polish harvester mode judgment

* HARVESTER: Add namespace resource quota help text

* HARVESTER: remove service filter

* HARVESTER: set harvester-baremetal-container-workload to false

* HARVESTER: fix svg & namespace component

---------

Co-authored-by: n313893254 <n313893254@126.com>
2023-06-15 13:28:08 -07:00
Richard Cox 1d735338cc
Merge pull request #9086 from richard-cox/fix-wizard-header-alignment
Align wizard title row
2023-06-15 09:31:23 +01:00
Mo Mesgin 91b64bdbfe 8712 - fixed plugin icons alignment 2023-06-13 16:10:11 -07:00
Richard Cox 8f1332383d Fix bottom bar 2023-06-12 10:03:46 +01:00
Richard Cox 1b48759c99 Add margin top to app chart install wizard
- This looks nicer initially
- Covers the case when the banner is remove
2023-06-09 15:51:30 +01:00
Richard Cox 7dc04fa1e1 Align wizard title row
- Ensure step vertical bar is aligned correctly
- For App Chart Install ensure the os warning tag is placed correctly WITHOUT borking the alignment of the header or changing wizard classes
- Tested
  - Wizard in app chart install - linux only warning and no warning
  - Wizard in cru resource (fleet git repo)
  - Will also validate in epinio wizard later on
2023-06-09 11:33:27 +01:00
Jordon Leach d94e78c24a
Add extension image load dialog (#9010)
Update dialog with repo creation - update docs

Add uninstall for custom images

Add extension images list view

Add image load dialog and uninstall within extension image view

Update publish and bundle scripts for image load - move image page to tab

Add extension container build workflow file to pkg creator

Move plugin server template into extension build scripts

Fix publish script for multiple asset packages

Move ImageList view to separate page - add crd metadata for custom images

Update docs - fix references to images with catalog

Fix wording, cache state badge, masthead breadcrumb, when deleteing resources check for namespaces

Update docs - fix delete repo resource - default cache state

Trim image whitespace - populate extensionUrl

Add experimental badge
2023-06-02 08:28:47 -04: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
Nancy a9276ea340
fix grafana url utility (#9019)
fix grafana url on monitoring index

recompute grafana dashboard iframe url if monitoring version changes
2023-06-01 11:07:47 -07:00
Sorin 3dbba288e0
TEST: Performance -> Inactivity (#8888)
* e2e performance -> inactivity modal
2023-05-25 17:55:37 +02:00
richa e181f83ae3
Fixed install page scroll bug (#8981)
* Fixed install page scroll bug

* Cleanup code
2023-05-25 14:58:42 +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
Richard Cox 6fffc0d36a Fix linting 2023-05-18 14:28:28 +01:00
Richard Cox 7e5ad5de34 Expand enforced namespace filtering to multiple namespaces and projects
> This uses a new endpoint that has yet to merge. See https://github.com/rancher/rancher/issues/40140

WIP
- Contains console.warns (via custom logger, can be disabled)
- Waiting for final BE endpoint changes to merge
- Contains TODOs to resolve on final enpoint changes delivered

Pertinent Points
- Incompatible with incremental loading / manual refresh
  - Harder to get counts (need to sum up from different namespaces)
  - Requires use of new steve pagination
- Enforced NS threshold has been removed
  - The threshold only applies to the primary resource. This has issues when loading a low count primary (daemon sets) which depends on a very high count secondary (pods)
  - Fixing this would involve knowing all secondary resources a list uses, which isn't currently possible (each resource is requested individually, need to know them all first)
- There is no way to subscribe to multiple namespaces (one or all)
  - We mock this in subscribe by only persisting changes to resources from within target namespaces
- Everything should work with Advanced Worker enabled
2023-05-18 14:28:28 +01:00
richa 17da3a4b8c
Fixed empty available list issue immediately after enabling extensions (#8892) 2023-05-17 16:42:05 +02:00
richa 3b4685d342
Wizard theme color fix (#8850)
* Fixed dark theme issue in wizard

* Fixed tabbed height inside wizard

* Fixed scroll issue in repo wizard

* Clean-up code

* Removed sticky header
2023-05-15 19:00:44 +02:00
Sorin 5777e105b2
Inactivity Modal (#8775)
* feat: inactivity modal 

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-05-05 19:33:53 +02:00
Shavindra 334bf11476
Fix cluster dashboard pod stats. (#8756)
* Fix cluster dashboard pod stats.
2023-05-04 13:27:55 +01:00
richa bc5aefe716
Fixed sticky footer in Helm Chart Install Yaml (#8497) 2023-04-25 11:14:07 +02: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
Nancy 18841fc3b8
hide continuous delivery get started btn if user cant create gitrepos (#8590) 2023-04-03 10:27:23 -07:00
Giuseppe Leo 467a456b1b
Remove previous implementation of hiding PSP check for clusters with K8S 1.25 even if PSP is enabled in charts installation/update (#8553)
* Remove PSP checkbox logic for default charts

* Remove PSP value check for custom charts using shared component
2023-03-31 08:54:56 +02:00
Nancy a68f325bd7
overwrite chart CRD global values with chart global values not inverse (#8573) 2023-03-30 16:11:47 -07: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
Neil MacDougall 2859ad0214
Fix OPA Gatekeeper constraint inconsistencies (#7979) 2023-03-09 21:24:36 +00:00
Alexandre Alves 4bc77c467d
fix issue with extensions versions not availableg (#8333)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-03-03 12:16:33 +00:00
Richard Cox cf907a5b13
Merge pull request #8315 from rancher/richard-dev
Fix grafana dashboard options & styles
2023-03-02 13:11:54 +00:00
Alexandre Alves 3fa7f59b08
fix issue with plugins panel versions button wrap (#8320)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-03-02 11:06:53 +00:00
Alexandre Alves 96b823c391
update icon logic on extensions to show the icon of the latest compatible version and not the chart icon (#8307)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-03-02 10:06:14 +00:00
Richard Cox a071f88c22 Fix grafana dashboard styling
https://github.com/rancher/dashboard/issues/8302
2023-03-01 16:54:50 +00:00
Richard Cox 8d8e16bd96 Fix changing grafana dashboard details for new Monitoring version
- Latest monitoring chart `102.0.0+up40.1.2` bumps grafana from `7.5.11` to `9.1.5`
- This breaks changing dashboard `detail/summary`, `Range` and `Refresh Rate`
- It seems we're safe now to remove the dep on angular when applying these changes to the iframe url
- to be replaced with a simpler approach

Also
- Removed the metrics tabs dependency on hash (given there's two tab groups on page)
- Added `key` to `GrafanaDashboard` components to insure they're created/destroyed correctly

> There's some whitespace changes dont automatically

> Note - This cannot be tested locally due to https://github.com/rancher/rancher/issues/31891
2023-03-01 16:04:34 +00: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
Richard Cox e405bfd9ff Ensure that the helm install getClusterRegistry process handles missing machineSelectorConfig 2023-02-23 10:18:46 +00:00
Alexandre Alves ed33257abe
fix small issue with extension developer load (#8230)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-22 11:35:33 +00:00
Alexandre Alves 44f238330c
add logic around limiting extensions to a specific ui-version (#8200)
* add logic around limiting extensions to a specific ui-version

* fix semver version comparison to use rancher version

* fix version fetching for ui-rancher annotation on extensions

* ignore checks for head versions (hash) on ui-version annotation for extensions

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-21 14:02:28 +00:00
Bastian Hofmann e2cf3e0e10
Add links to object resource to cluster events tables (#7947)
This adds an additional column to the cluster explorer events table, so that there is one column with the object, one with the message and one with event name.

The object column is linked to the object resource. The event name column is linked to the event detail page.

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-02-21 13:42:33 +00:00
Francesco Torchia f76a53c02c
Merge pull request #7998 from torchiaf/fix/7761
Monitoring tab, fix cards layout
2023-02-20 14:48:59 +01:00
Richard Cox 0435f04cdb
Merge pull request #8041 from torchiaf/fix/8034
Remove matching chart UI component on RELEASE_NAME
2023-02-16 13:41:53 +00:00
Qingyang Nong b547ba97a4
HARVESTER: Fix kubernetesVersionExtension is '' on the create Harvester storage class page (#8169)
* HARVESTER: Fix kubernetesVersionExtension is ''

* fix typo in kubernetesVersionExtension regex

---------

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-02-15 14:15:49 -07:00
Neil MacDougall 4bb0168444
Improve presentation of Harvester Manager Built-in Extension (#8004)
* Improve presentation of VM Built-in Extension

* Update description following PR feedback
2023-02-09 20:15:34 +00:00