* 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
* 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>
* Added blue color only to creation action
* Removed test code
* Revert some changes without dummy text
* Fixed names for attribute, color variables for dark and light theme, removed a tag
* Allow /rancherversion endpoint override (#7088)
* Fix KeyValue Component. (#7093)
* Fix KeyValue Component.
* Refactor solution.
* Fix PR comment.
* Adds new logos without Manager to bettr represent all sub-brands and improve readability
* Updates error of HSB colour to HSL
* Remove uneeded check - add custom check for old endpoints (#7058) (#7074)
* Allow to reset ui-brand global setting (#7110)
* Remove negative margin for Tabbed component, causing issues in Network policies (#7108)
* Update script to use newer version of Rancher Docker (#7114)
* Removed files from featured-carousel PR that should not be there at top-level (#7092)
* Allow wildcards in ingress hostnames (#7025)
Wildcards are allowed in ingress hostnames since Kubernetes 1.18: https://kubernetes.io/blog/2020/04/02/improvements-to-the-ingress-api-in-kubernetes-1.18/#support-for-hostname-wildcards
Fixes https://github.com/rancher/dashboard/issues/6957
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
* Improve PSP deprecated banner
Fixes#7096
Previously...
- a new request for PSPs was made on each page visit
- the request would fail for users without access to the PSP
- failed requests equated to white page dev error (fine in prod)
Now...
- use the `counts` resource to determine if the user can see any PSPs
- move logic to a computed property
* Hide experimental charts from Cluster Tools
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
Co-authored-by: Neil MacDougall <nwmac@users.noreply.github.com>
Co-authored-by: Shavindra <Shavindra@users.noreply.github.com>
Co-authored-by: Kenneth Wimer <wimer@suse.com>
Co-authored-by: Jordon Leach <40806497+jordojordo@users.noreply.github.com>
Co-authored-by: Giuseppe Leo <giuseppe.leo@suse.com>
Co-authored-by: Bastian Hofmann <bashofmann@gmail.com>
Co-authored-by: Richard Cox <richard.cox@suse.com>
This also adds a new menu group "Policy" which includes all policy related resources
* LimitRange
* NetworkPolicy
* PodDisruptionBudget
* ResourceQuota
Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
* 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
* remove @input event from v-select as event is already sent by default by v-select
* adjust unit tests
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
* Set data test id and allow complex component to have default and inherited values for all the actions
* Create cluster tests with steps; Create cluster E2E test
* Extend command to use selector matchers
* Create test for cluster navigation and deletion
* Extend commands to find by id as in get method
* Extend documentation with guidelines and info about E2E
* Correct cluster delete and details tests to get menu within speciftc cluster row
* Add remaining E2E tests for the cluster
* Add baseUrl to the paths
* Add RKE2 selection on cluster creation for CI
* Add E2E debugging information
* Rename clluster manager E2E for consistency
* Correct data test ID after rebase
* Prevent cluster provider errors if no management parameter is provided
* Prevent accessing objects in mutation if none is provided
* Remove imported cluster sample due discarded logic
* Reset RKE2 switch on cluster creation
* Adjust test naming for cluster manager
* Replace static data test ID with a variable
* Groupped tests under different common types
* Add POs for pages and componets used in the cluster tests
- fixes#6627
- provides common POs and page POs
- covers a lot of the basic list features
* Remove testid from generic create page
- this is a page at the top level of vue
- any custom test id would need to come from params (cluster, product and/or resource)
* Fix application of branding, color and theme from settings
- The watchers for settings apply them
- This was not happening as they never changed from the initial value
- Caused by 771f168a5b
- Revert to the initial way. This may break epinio but that can be fixed later on
* Add basic tests for some settings in the Branding Page
- Add PO to easier test pages that have a cluster id in their path
- Skip some tests (either liable to change, or hard to validate change)
- There's issues getting values from shadow dom, see value() from labeled-input
Co-authored-by: cnotv <giuseppe.leo@suse.com>
* move secondary data requests to a non-blocking ui method + pass loading props to the correct labeled selects
* main data loading procedure for secondary data done
* use pvcs from secondary resource fetch on storage component
* rename loading props to asyncDataLoading for better context
* cleanup
* move secondary resources data loading logic to a mixin
* cleaning up resource-manager mixin
* fix issue where namespace wasnt being updated on secondary requests
* add doc description for data structure for resourceData
* minor change
* add plural option to resource-manager + remove loading var from workloads for sec resources + optimise persistentvolume edit view
* improve persistentvolumeclaim edit view
* add loading flag
* addressing PR comments
* fix latest PR comments
* doc on classify option for resourceManagerFetchSecondaryResources param
* Ensure reponse for namespace resources mimics non-namespaced
- The resources returned when requesting namespaced types do not contain id, type and links properties.
- This isn't perfect, or universally applicable, but will work for the current set of use cases
* working on merge conflicts
* Remove files from bad merge
* Handle new namespaces
- The secondary resource manager fetches some resources by namespace
- The user however can supply a new namespace
- When in `new namespace` mode we need to
- avoid trying to fetch namespaced resource
- clear any cached namespaced resource
- this only currently applies to workloads, PV and PVC pages don't fetch namespaced resources
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
Co-authored-by: Richard Cox <richard.cox@suse.com>