Commit Graph

426 Commits

Author SHA1 Message Date
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
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
Nancy 21167e1dc9
fix labeledselect getOptionLabel to use reduce prop when labels change (#8176)
* fix labeledselect getOptionLabel to use reduce prop when labels change

* Add unit tests

---------

Co-authored-by: cnotv <giuseppe.leo@suse.com>
2023-02-15 09:19:48 -07:00
Alexandre Alves 1834e0b738
fix css icon margin (#8153)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-14 17:11:42 +00:00
Giuseppe Leo f3f7a2a022
PSA: Update PSA default (#8133)
* Change inputs order for PSP/PSA/CIS; Code cleanup

* Add CIS override input; add and correct i18n for CIS

* Change label and input status, based on criteria

* Prevent issues for missing CIS profile args

* Disable logs to avoid code pollution

* Fix test issue

* Update PSA template default label

* Change PSACT on CIS changes if above 1.25

* Add banner for CIS cases

* Remove duplicated logic

* Correct issue after rebase
2023-02-14 18:03:38 +01:00
Giuseppe Leo fb590d2539
LabeledSelect: Displayed label does not update with options (#8154)
* Update displayed value in labeled select inputs if option labe changes but not the value

* Replace generic label and key with props

* Add i18n
2023-02-14 10:42:30 +01:00
wujun dce47f6d4a
polish namespace (#7915)
* polish namespace

* fix no getter.filterNamespace case

* add notFilterNamespace document

* HARVESTER: fix review comment

* add changeAllNamespaces comment
2023-02-13 16:52:06 -07:00
Qingyang Nong 83d0f8dd9c
HARVESTER: Fix Cannot edit Harvester namespace (#8127) 2023-02-10 11:11:03 -07:00
Shavindra 26cf8c6872
Allow user to select Fleet repo protocol select. (#7648)
* Allow user to select Fleet repo protocol select.

* Fix protoccol select.

* Fix PR comments.

* Fix translations.
2023-02-10 09:31:37 +00:00
Alexandre Alves 6516e094b8
Extensions enhancements (#7777)
* add extensions API methods
---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-02-09 10:58:29 +00:00
Francesco Torchia 75df30a1fb
Merge pull request #8098 from torchiaf/fix/8094
ResourceTable, fix Enter shortcut
2023-02-07 10:05:13 +01:00
Alexandre Alves 31ec71f75c
fix issue detected on advanced filtering where searching for a text with an uppercase yelded no results (should be case insensitive) (#8055)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-02-06 17:07:15 +00:00
Alexandre Alves d00e8dc4cd
fix styling of visible cols in advanced filtering (#8071)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-06 17:06:59 +00:00
Francesco Torchia 6f81986c31
ResourceTable, fix Enter shortcut
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-02-06 12:32:00 +01:00
Phillip Rak fe58a9075c
Merge pull request #7990 from catherineluse/ingress-service-text
Add text to help with Services and Ingresses
2023-01-27 15:45:10 -07:00
Alexandre Alves 84e260d95e
Manual Refresh Performance Option (#7904)
* update resource fetching on list views so that secondary resources follow the logic of manual refres
h and/or incremental loading if the main resource defines it

* Update resource-fetch logic to take into consideration the storeType for each individual request + fix logic regarding namespace for fetching resources + update missing resources logic (nodes and prov clusters)

* fix tipo

* reinstate hash system to handle requests for nodes and prov cluster lists

* revert mutation code + add check to register type if it doesnt exist on loadDataPage action

* fix issue with timeout that wasnt working properly for the update of live and delayed cols after manual refresh

* Take in to account the per resource count when calculating `limit`
- This means primary resources with a smaller amount don't restrict secondary resources with larger amounts

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-01-27 14:32:42 +00:00
Catherine Luse aa8514d8b2
Avoid showing YAML in form mode (#7924) 2023-01-27 12:40:40 +00:00
Francesco Torchia 3d0138e921
Merge pull request #8018 from torchiaf/fix/7972
Events tab, restore tooltips
2023-01-26 19:40:30 +01:00
Giuseppe Leo 0768d82f16
PSA minor changes (#8022)
* Add missing and correct i18n PSA labels

* Correct description size by removing helper

* Add title to Namespace list tooltip if any PSA

* Allow to disable use of checkbox for PSA form

* Change timeout for growl to 5s on Pod warning due PSA

* Add type label for PSA

* Move PSA menu under Advanced

* Replace toggling system label with extending the value within the same

* Emit initial PSA form values con creation if no checkboxes due lack of interactions
2023-01-25 14:02:26 +01:00
Francesco Torchia 5895859a2b
Events tab, restore tooltips
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-25 10:01:49 +01:00
Phillip Rak caeae6a300
Merge pull request #7989 from rak-phillip/chore/replace-draggable-zone
Remove DraggableZone from @rancher/components
2023-01-23 08:29:38 -07:00
Sorin 8b036c4c88
Masterhead component spacing issues (#7985)
* Fixes Masterhead header tag spacing
2023-01-23 09:59:09 +01:00
Catherine Luse 1d885b8588 Add text to help with Services and Ingresses 2023-01-21 22:51:28 -07:00
Phillip Rak 478d3a5289 Remove DraggableZone from @rancher/components
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-01-20 15:57:41 -07:00
Giuseppe Leo e03f28358d
Add support for Pod Security Admission in the Clusters and Workloads (#7787)
* Add PSA template dropdown to RKE2 cluster editor

* Add tests for RKE2 custom cluster editor to display options for PSA

* Remove TODO and hardcoded value for k8s PSA 1.25+

* Allow CRU editor to have error maps

* Fix linting on destructured arrays for unused values in Workloads erorr map

* Allow to change PSP and reset values accordingly

* Correct banner HTML for reprovisioning

* Replace default term with none in cluster creation policies

* Replace PSA ID with Name for the template in the cluster creation

* Remove extra condition for PSA options

* Add i18n with separated values for RKE default optins

* Restore default option for no PSP template in RKE2
2023-01-20 16:27:30 +01:00
Giuseppe Leo 8497f587d7
Add PSA custom resource in Cluster Manager (#7678)
* Add PSA resource model, edit, list, types, config, utils and navigation

* Remove controls sorting from config file in PSA form due unnecessary added logic

* Add missing type to exemptions

* Remove component specific grid alignment styling

* Add meaningful values on PSA form tests

* Add prefix for the namespace PSA form

* Correct PSA form test

* Revert RKE cluster erroneous changes

* Rename all the PSA form values to match specification and avoid issues

* Create function to convert array to dictionary

* Add types and replace function with utility in PSA form

* Trim exemptions values for PSA form

* Correct util test and function

* Enable YAML editor for PSA resource
2023-01-20 16:26:43 +01:00
Nancy 1ab3fc3856
re-add header tag global style to accommodate pre-existing extensions with classless header elements (#7948) 2023-01-18 15:46:29 -07:00
Dai Yuzeng c19a07f01e
Use property forceYaml to create resources via yaml (#7857) 2023-01-17 09:32:10 -07:00
Qingyang Nong 17f784ccf0
HARVESTER: Add hideNamespaceLocation for product config (#7702) 2023-01-13 08:42:23 -07:00
Neil MacDougall 9f3922424a
Add support for svg icons (#7769)
* Fix lint

* Fix bad merge

* Fix bad merge

* Fix issue with custom color
2023-01-13 12:59:59 +00:00
richa 45236c4a80
Fixed column-header tooltip postion (#7901)
* Fixed column-header tooltip postion

* Fixed tooltip position
2023-01-13 10:34:38 +01:00
Bastian Hofmann d6bbae46a6
Fix multi select styling (#7843)
* Fix multi select styling so that the form field expands if not all items fit into a single line anymore.

Fixes https://github.com/rancher/dashboard/issues/7842

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

* Remove duplication in _select.scss

* Fix select heights in ContainerLogs, ContainerShell, ApplicationLogs and ApplicationShell components

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-01-12 23:01:07 +00:00
Richard Cox d4b9840d28
Merge pull request #7207 from mantis-toboggan-md/plugins-harvester-manager
Create a Harvester Manager plugin
2023-01-11 10:19:57 +00:00
Richard Cox 2a779a8873
Merge pull request #7797 from richard-cox/improve-ns-filter
Improve performance of NamespaceFilter when there are thousands of entries
2023-01-10 16:49:46 +00:00
Nancy Butler d4a9bef75c move stuff again 2023-01-09 10:48:42 -07:00
Nancy Butler 53774ce38c move harvester-mgr stuff 2023-01-09 10:48:42 -07:00
Francesco Torchia faa6f7abb4
Merge pull request #7848 from torchiaf/fix/7048-2
ResourceTable, allow Enter event to be propagated
2023-01-09 15:18:43 +01:00
Francesco Torchia f8ee95fd37
ResourceTable, allow Enter event to be propagated
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-09 14:49:35 +01:00
Francesco Torchia 63ebec8de6
Merge pull request #7830 from torchiaf/fix/7820
xterm, align theme properties to version 5.x
2023-01-09 10:32:35 +01:00
Giuseppe Leo 3e31e9f138
Add support for Pod Security Admission in the Namespace resource (#7619)
* Create models, config and utils for PSA

* Create PSA tab form view

* Create custom labels for Namespace

* Add icon option for Namespace detail view

* Add icon for Namespace list

* Add PSA tab for Namespace edit view

* Add i18n for all the PSA parts

* Separate PSA labels between mode and versions

* Filter DetailTop Namespace labels from PSA versions

* Correct unit test

* Correct Namespace tooltips for details, to be created after fetching the resources

* Remove unnecessary model

* Add todo for PSA implementation

* Add TODO for tests with checkbox and select

* Correct namespace list link with model method

* Add TODO

* Move i18n key for PSA

* Align Namespace detail view chips icon to the top

* Restore labels and annotation to the Namespace view

* Merge LabelsPSA features to existing Labels component

* Move all the PSA logic from the view to the model

* Tweaks following review

DetailTop
- Remove PSA specific code from generic component

ResourceDetail
- Remove PSA specific code from generic component
- Remove plumbing for descriptions and icons from parent component to DetailTop

Labels&Annotations component
- Default `show system labels` to off
- Ensure size of `Labels` and `Annotations` titles are the same
- Improve padding
- Remove PSA specific code from generic component
- Removed un-needed margin-bottom

Project/Namespace List
- Improve padlock icon alignment
- Improve spacing around PSA list in tooltip (this will pop up often)

PodSecurtyAdmission settings component
- Improved alignment on PSA checkbox

General Improvements
- Always show Labels&Annotations on Namespace config (view) page

* Changes following testing
- Fix display of show/hide system labels when there are no system labels
- Ensure PSA order shown in project/namespaces list PSA tooltip matches PSA controls in Namespace edit/config page
- Remove two usages of lodash
  - pickBy --> new common pickBy
  - values --> Object.values

* Fix unit tests

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-01-06 16:01:40 +01:00
Richard Cox 6fd5c1e7b5
Merge pull request #7832 from richard-cox/fix-workload-health-icon
Fix Workload Health column drop down icon
2023-01-06 14:13:31 +00:00
Richard Cox 18f1f1dec4
Merge pull request #7807 from richard-cox/fix-navigation
Fix project/namespace --> cluster manager blank page bug
2023-01-05 10:27:31 +00:00
Phillip Rak 1a3f83ff4d
Merge pull request #7811 from rak-phillip/chore/update-imports
Update alias for ProjectMembershipEditor import
2023-01-03 15:02:23 -07:00
Richard Cox bd1403716c Fix Workload Health column drop down icon 2023-01-03 19:26:10 +00:00
Phillip Rak 550b586993 Update alias for ProjectMembershipEditor import
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-01-03 10:27:44 -07:00
Francesco Torchia d2de096f14
xterm, align theme properties to version 5.x
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-01-03 17:12:42 +01:00
Phillip Rak b17cffc7a1 Update probe labels and placeholders
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-01-03 09:02:01 -07:00
Richard Cox b88ceb6e5a Fix project/namespace --> cluster manager blank page bug
- caused by circular dependency of
  - index.vue --> resource-fetch mixin --> resource-fetch-namespaced mixin --> index.vue
- not sure why the works on most pages... but bugs out for this one... but the fix makes sense
2022-12-23 11:34:12 +00:00
Richard Cox c52006b547 Fix typing...
- These are fine in unit test land... but not in e2e (which should probably exclude __test__)
2022-12-23 10:31:29 +00:00
Richard Cox e19c7c043a Fix unit tests
- fix one issue brought in by pr
- fix warning related to namespaceFilterMode
2022-12-23 09:56:38 +00:00