Commit Graph

346 Commits

Author SHA1 Message Date
Shavindra e721ce3fe8
Handle correctdrift for previously created repos. (#9578)
* Handle correctdrift for previously created repos.
* Fix edit and Clone textbox
2023-08-25 12:18:19 +02:00
Shavindra 078317f022
Fleet gitrepo E2E (#9534)
* Fleet gitrepo E2E
* Update workspace switcher spec for fleet dashboard.
2023-08-23 11:18:48 +01:00
Evgeniya Vashkevich 74c3337f83
fixed bad import in NavLinks (#9461) 2023-08-01 11:07:47 -07:00
Alexandre Alves e70abeb82c
UI says "Matches no existing clusters" when there is a null value for cluster selector in cluster groups (#9441)
* fix bug with matchexpression

* clear console logs

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-07-31 11:46:08 +01:00
Evgeniya Vashkevich ebfd4ccd51
Changed navlink page and improved error handling for FileImageUpload (#9411) 2023-07-27 14:03:43 -07:00
wujun f4856ffccc fix circular dependency 2023-07-26 17:45:27 +08:00
Richard Cox cb1c89eed0
Merge pull request #8848 from smallteeths/master-issues#41519
Add initial value to empty object for rkeconfig.configMap[hostname] d…
2023-07-21 10:04:39 +01:00
Giuseppe Leo 0208645b0f
(SURE-5538) Persistent Volume is not having CSI driver as vol plugin which is current default for latest versions of AKS (#9386)
* Move persistent volume constants and configurations away from model

* Add fallback for drivers with name only

* Enable support for CSI volume

* Prevent errors if no name is provided for route in CRUResource method

* Update test to check plugin options and value

* Update i18n
2023-07-20 23:31:50 +02:00
Qingyang Nong 3f6abf15c3
HARVESTER: Fix failed to pass guest cluster name into Harvester cloud provider (#9381) 2023-07-20 14:13:12 -07:00
Siye Wang 1c0e30093b Add initial value to empty object for rkeconfig.configMap[hostname] during rke2 editing
Signed-off-by: Siye Wang <siye@rancher.com>
2023-07-20 09:23:40 +08:00
Alexandre Alves d3b802ab15
fix issue with Resources Select in globalRoles edit/create interface (#9210)
* fix issue with Resources Select in globalRoles edit/create interface

* address PR comments

* add missing check

* Minor improvement, add comments
- Did a deep dive on what this should actually be doing, added comments to explain
- We should prioritise methods to find a key via config before falling back on label and random string
- The opt.optionKey has been (previously) applied incorrectly. It should be the actual option key, rather than a key to find the option key
  - This is the root of the issue.
  - I don't think we should fix this here in case of breaking somewhere else
  - The changes in the PR are one's we should be doing anyway

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-17 13:23:02 +01:00
Dai Yuzeng d86bc69472
Re-render Labels component manually (#9239) 2023-07-14 11:21:29 -07:00
richa 141d277e71
Added router to rediect github auth (#9262)
* Added router to rediect github auth

* Added env variables for client id

* Fixed broken server Middleware

* Removed e2e changes

* Fixed lint

* Removed code for test

* Clean code
2023-07-14 16:35:51 +02:00
Giuseppe Leo 11f7cfe9f1
[RKE2] Cluster unable to provision after switching back to Back to Form from Edit as YAML (#9264)
* Cleanup code

* Prevent to JSON clone agent config if undefined

* Add clean-tooltip directive to jest configuration

* Remove agent cleanup from the before hook

* Split fetch methods in parts

* Move condition to parent

* Add tests for agent configuration

* SKip test till resolved extra setup

* Updated code comment based on changes
2023-07-13 19:52:49 +02:00
Evgeniya Vashkevich c00445d501
Added UI to enable Fleet self-healing (#9310)
* Added UI to enable Fleet self-healing

* removed unused data-testid
2023-07-13 10:31:50 -07:00
Richard Cox e60d02009a
Merge pull request #9033 from bashofmann/hpa-behavior
Add HorizontalPodAutoscaler scaling behavior support
2023-07-12 16:06:17 +01:00
Neil MacDougall c9e1a19396
Extension support for custom provisioning (#9246)
* Extension support for custom provisioning

* FIx lint issues

* Discovery / Tweaks
- fix issue where namespacesOverride was lost
- tidy up PROVIDER
- try to handle missing provider=type url param (could be missing extension-params)
- added a few comments to comments to come back to

* Names and typings
- change param --> customParam to make it clearer it's not url params
- add labels-annotations to shell types

* Wire in provider detailTabs
- as per original readme this should be made generic (extension point working directly with ResourceTabs)

* Update IClusterProvisioner & docs

* Improvements / Changes to support proving out DO extension
- cluster hooks optional
- buff up save hook (and pass in cluster when calling apply fn)
- move normalizeName into generic place
- bring back async create machine config
- hack for do extension (map example provider to do provider)

* updates, add optional saveCluster, add missing kube file
- saveCluster complements hooks, doesn't skip handling of addons, etc
- ensure register hooks take the `this` context in all worlds

* Adding docs

* Updates
- location config based changes
  - change customParams to context
  - add query param
- add new extention point to add tabs to cluster create cluster config section
- fixed some typing
- fixed issue where cluster was not passed to before / after hooks (only important if 'this' changes

* Changes following review, fix `t` in plugins

* Fix linting

* Docs updates, pass through more edit/view things

* Conditionally show the namespace grouping in the cluster list
- means users can differentiate between clusters with same name in different namespaces
- useful when clusters created via extension provisioner where ns can be selected

* docs tweaks, actually include the provisioning page in docs

---------

Co-authored-by: Richard Cox <richard.cox@suse.com>
2023-07-11 22:17:57 +01:00
Bastian Hofmann 47f5d51c04
Fix styling
Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-07-10 16:48:40 +02:00
Bastian Hofmann 10a9c31fbc
Add HorizontalPodAutoscaler scaling behavior support
* Adds form fields to edit the autoscaling behavior in the HPA edit form
* Adds autoscaling behavior information on the HPA detail page

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

Signed-off-by: Bastian Hofmann <mail@bastianhofmann.de>
2023-07-10 16:33:04 +02:00
momesgin 033993b0c5
fixed duplicate warnings on PrometheusRules create page (#9140)
* fixed duplicate warnings on PrometheusRules create page

* fix eslint warning

* added tests for prometheuserule monitoring

* eslint fix

* reset closedErrorMessages after create/save

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-06-28 15:45:08 -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
richa 9e6e1e49fa
Fixed broken banner (#9126) 2023-06-20 14:45:03 +02:00
richa 767907055c
Unit test to check Receivers and Output email should have port and ho… (#9053)
* Unit test to check Receivers and Output email should have port and host fields

* Added test to a valid integer

* text correction

* Fixed lint
2023-06-16 11:01:14 +02: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
Qingyang Nong 7c5ead687f
HARVESTER: Update LB design (#9087) 2023-06-13 10:55:17 -07:00
Giuseppe Leo af0e68ba1b
Add test for Namespaces inheriting limits from the project (#9066) 2023-06-08 16:41:37 +02:00
Giuseppe Leo 00a3cfa1ae
Automation: Loki Outputs URL can accept invalid input (#9042)
* Add prefix in management settings test description

* Add dictionary term

* Add url validation test for Banzai cloud

* Test presence of placeholder for Loki URL input

* Prevent issues with optional values

* Prevent issues with missing imported statics

* Hide warnings from unit tests on CI

* Correct issues with replaceAll unsupported on Safari
2023-06-07 14:34:50 +02:00
richa f755df1807
Automation namespaces button flatlist (#9020)
* Added e2e test for create ns button in flat view

* Fixed lint

* Clean up code
2023-06-07 10:55:26 +02:00
wujun e6f0fa5805
fix object overwrite & rerender (#8809)
* fix object overwrite & rerender

* add comment to rke2 syncMachineConfigWithLatest

---------

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-06-01 16:37:46 -07: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 68c75fe5d8
Added port input in receiver email form (#8026)
* Fixed view mode

* Fixed storybook issie

* Fixed lint

* Add all logic in index page

* Removed request for host and port

* Added colon when port is not empty

* Added fix for missing host value

* Fixed lint
2023-05-26 17:03:46 +02:00
Neil MacDougall 3db04f1e9a
Changes to support custom node driver UI extensions (#8735)
* Changes to support custom node driver UI extensions

* Fix bad merge

* Fix merge

* Fix bad merge

* Revert changes that are more impactful for now

* Add mock for $plugin

* Fix lint issue

* Address PR feedback

* Fix bad rebase

* Fix merge issues

* Removed unused import

* Fix merge issue

* Add back in missing validation for roles

* Fix unit test
2023-05-25 15:37:16 +01:00
yonasberhe23 5e9824edfd
cypress UI automation: account and api keys tests (#8857)
* account and api keys tests

* account & api keys tests: updates made per review

* account and api keys tests: added checkRowCount fn and added step to make test deterministic

* account and api keys tests: removed unused import

* account and api keys tests: update assertion

* account and api keys tests: update navigation test

* account and api keys tests: move deleteButton function, update selector value

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2023-05-23 07:34:38 -07:00
Qingyang Nong c0cdc2dbf3
HARVESTER: Cloud provider enhancement (#8935)
* HARVESTER: Cloud provider enhancement

* fix labels-annotations.js linting

* fix missing comma in labels.vue

* fix labels.vue missing bracket

---------

Co-authored-by: Nancy Butler <42977925+mantis-toboggan-md@users.noreply.github.com>
2023-05-22 16:49:19 -07:00
Nancy 67fd20bf24
add cluster-name label to prometheus recording rules (#8951) 2023-05-22 15:56:44 -07:00
Giuseppe Leo 0eeafa3251
Automation: Create tests to ensure presence of pool machines requirements on RKE2 cluster creation (#8882)
* Group up default configuration for RKE2 tests

* Prevent error in case of no machine pool

* Add machine pools tests
2023-05-22 19:18:07 +02:00
Qingyang Nong 66fe935b79
HARVESTER: Cloud provider should set none when the Harvester cloud provider is disabled (#8811) 2023-05-22 09:45:41 -07:00
Neil MacDougall 9fc18dd7c7
Fix incorrect i18n string for CSI suffix (#8936) 2023-05-22 12:32:22 +01:00
Phillip Rak 23163c751f
Merge pull request #8919 from rak-phillip/chore/purify-tooltip
Purify tooltip content with `v-clean-tooltip` directive
2023-05-19 08:47:08 -07:00
Alexandre Alves ec2fe531ed
fix issue with Tolerations component (#8896)
* fix issue with Tolerations component not covering the spec correct correctly when talking about effect All

* fix e2e due to changes to Tolerations component

* addressing PR comments + change label in Tolerations component

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-05-19 10:19:48 +01: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
Neil MacDougall 25757ad1f2
Fix issue where project owner does not have permission to update PSP template bindings for a project (#8693) 2023-05-17 11:20:00 +01:00
Francesco Torchia abea5634f6
Merge pull request #8815 from torchiaf/fix/8776-8774
[PolicyRuleTarget] add unit tests
2023-05-16 17:40:45 +02:00
Giuseppe Leo 99d617e6bc
Automation: Allow user to change the volume name when creating a workload (#8867)
* Add storage tests

* Correct comment
2023-05-16 16:15:25 +02:00
Francesco Torchia a4869e98c4
Move tests utils from __test__
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-16 14:39:44 +02:00
Francesco Torchia e3c0fa11de
Move PolicyRuleTargetSelectors to a new file
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-16 11:58:34 +02:00
Francesco Torchia 8d3d7356b5
Fix import statements
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-05-16 11:58:05 +02:00
Richard Cox a359b728bc
Merge pull request #8833 from n313893254/remove-network
HARVESTER: Make NetworkAttachmentDefinitions generic in explorer
2023-05-15 17:37:06 +01:00
Richard Cox a137f53dc4
Merge pull request #8788 from DaiYuzeng/opensearch
HARVESTER: expose suppress_type_name for opensearch provider
2023-05-15 16:18:28 +01:00
n313893254 78c24f47b9 HARVESTER: Make NetworkAttachmentDefinitions generic in explorer 2023-05-11 19:54:25 +08:00