Commit Graph

467 Commits

Author SHA1 Message Date
Alexandre Alves 764fa6087d
add e2e tests for #10389 and #9926 (#10745)
* add e2e tests for #10389 and #9926

* disable eslint for massive blueprint schema file

* fix e2e test issue + sneaky improvement for carousel unit test

* uncomment missing e2e test

* simplify schemas data and logic to generate a V2 monitoring on a local cluster for e2e tests

* minor code cleanup
2024-04-10 08:41:18 +01:00
Mo Mesgin d287f9c6ab update unit test to check visiblity 2024-04-05 11:12:17 -07:00
Alexandre Alves b3eee6c503
improve code to generate a browsable fake RKE2 cluster + add e2e test for issue 9984 (#10752) 2024-04-05 09:43:10 +01:00
Alexandre Alves e3abf60fd6
add e2e test (#10729) 2024-04-05 09:33:19 +01:00
Alexandre Alves 72440c3597
add e2e test (#10728) 2024-04-02 09:58:02 +01:00
Phillip Rak 6206f9763c
Merge pull request #10716 from rak-phillip/chore/remove-nuxt-link
Replace `nuxt-link` with `router-link`
2024-04-01 08:00:12 -07:00
momesgin efcb10fc00
Merge pull request #10724 from momesgin/10641-network-policy-rules
Fix re-render issue with the matching message in PolicyRuleTarget
2024-03-28 11:55:50 -07:00
momesgin 3a351ff83b
Auth Provider warning banners for granting admin permission (#10690)
* add permission warning to all auth providers

* convert to ts component

Co-authored-by: Phillip Rak <rak.phillip@gmail.com>

* fix syntax

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-28 09:40:33 -07:00
Mo Mesgin 5bbe6e67f6 fix re-render issue with the matching message in PolicyRuleTarget 2024-03-28 09:38:54 -07:00
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
Nancy c393cba656
fix driver unit tests (#10714) 2024-03-27 11:34:18 -07:00
Phillip Rak 6e9f80c8c2
Merge pull request #10689 from rak-phillip/chore/simple-store
Replace `createNamespace` pattern with a simple store for sharing data
2024-03-27 07:59:46 -07:00
Evgeniya Vashkevich 47ff3ddac6
[FEAT] Moved driver pages from Ember (#10557)
* [FEAT] Moved driver pages from Ember
2024-03-26 16:33:15 -07:00
Phillip Rak 8fd88c52f6 Explicitly mock individual actions
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 13:07:47 -07:00
Phillip Rak e5bbf42c52 Mock `dispatch` for unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-26 10:38:29 -07:00
Nancy 13f2e5fe00
Improve LabeledSelect performance (#10650)
* remove labeledselect ability to detect stale option labels in order to improve performance

* add key rerender hack to fix psa dropdown option labels not refreshing

* fix lint
2024-03-20 08:04:44 -07:00
Sorin 89fecf80d7
9810/follow-up with fixes. (#10638)
* fix: moves AddCustomDialog outside NameNsDescription
---------

Signed-off-by: scures <scurescu@suse.com>
2024-03-20 08:17:45 +01:00
Alexandre Alves 3df4e9dd53 Reintroduce "Replace `Vue.extend` with `defineComponent` in shell"
This reverts commit 1eacbdea40.
2024-03-13 10:10:26 -07:00
Sorin a54edec8b6
Merge pull request #10522 from scures/9810/incorrect-abbreviation
9810/incorrect-cluster-name-abbreviation
2024-03-12 14:44:30 +01:00
Mo Mesgin 835ca5c6c9 Merge branch 'master' of github.com:momesgin/dashboard into 10456-create-repo-auth 2024-03-11 09:10:06 -07:00
Mo Mesgin 66993893a8 fallback for inStore 2024-03-11 09:09:57 -07:00
scures 27889b0dbf
feat: cluster abbreviation to 3 chars, shows customisation on cluster creation 2024-03-11 14:43:28 +01:00
Neil MacDougall 00d23b8d1a
Allow extensions to override node provider icons (#10312)
* Allow extensions to override not provider icons

* Fix merge issues
2024-03-08 15:03:31 +00:00
Mo Mesgin f01f7dc310 lint 2024-03-05 18:22:44 -08:00
Mo Mesgin 4b49ba26b1 fix creating repository with secret 2024-03-05 17:49:55 -08:00
Richard Cox b464d15ee0
Integrate new schemaDefinitions endpoint (#10141)
* resource edit AS yaml

* fix cruresource (yaml from form)
- lazy load the schemaDefinitions when needed, avoids sync all to createYaml before we have an async chance to fetch schemaDefinitions

* Fix questions
- there are only four places we use questions, none of which use schema, this is just to be safe

* cluster scan, plugins/fieldsForDriver, defaultFor, validationErrors

* pathExistsInSchema
- used to optionally show conditions tab/list in resource detail view
- logs of things in ingress list/edit

* createPopulated / defaultFor
defaultFor requires resourceFields, it's only used by createPopulated in one place to support machine configs without components

* wip

* WIP MONITORING.SPOOFED
- these aren't spoofed types, but secondary schemas
- testing fix blocked, primary schema's have resourceFields

* Move steve specific (resourceField) code to steve models
- create models for steve schemas and apply to cluster and management stores
- move resoureField based validationto steve model
- move pathExistsInSchema to steve store getter
- don't fetch schemaDefinitions on start up when saving prefs (not needed and blocking)

* comments / improvements

* (untested) refactoring

* Fix alertmanager definitions, add retry definition fetch

* Fix pathExistsInSchema for path length > 2

* Fix questions that accept schemas
- tested by adding Questions to random page and the node schema

* Fix to saving configmap part 1
- the save works but doesn't show data. the yaml is the same as before. debug info added

* Validation by resourceFields is a norman specific thing, so make it such

* small refactor

* Tidying up

* Remove rebase junk

* fix linting and unit tests

* fix unit tests

* fix linting from fix for test....

* Tidying up, fix alertmanagerconfig

* Remove unit test todos

* add unit tests for resource fields

* sdssdf

* Add unit tests for pathExistsInSchema

* JS --> TS

* Store schemas in local singleton cache to avoid hitting store

* fix minor changes from review

* cruresource changes following review
- improvement - remove spurious canDiff
- createResourceYaml - pass in resource to use instead of calc in code

* WIP changes to parseType

* Fix generic cloud credential and node driver forms

* handle missing reactivity given schema definitions not in store

* fix and add unit tests for `parseType`

* Fix create-yaml test

* Changes following review
- improved comments
- SchemaDefinitionCache is now per store (and is reset as such)
- typeRef now uses parseType

* Fix dep loop by moving route based helps in auth out to utils file

* fix unit tests

* Changes following review
2024-02-28 17:08:35 +00:00
Alexandre Alves dbe99ccb00
make name required by form validation + update form validation for creds that send validation from custom component + remove 'optional' from placeholder + allow editing of the 'name' prop in cloud creds + add tests (#10512)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-02-27 15:10:13 +00:00
momesgin ccb88e871f
Fix default values not being set when a new pool is added in edit mode (#10477)
* fix displaying false vsphere errors

* rename variables

* fix default values not being set when a new pool is added in edit mode

* minor refactor

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-02-20 15:10:15 -08:00
Alexandre Alves d00618c0d5
fix issue with squashed custom box in Checkbox (#10464)
* fix issue with squashed custom box in Checkbox + add tests + sneaky fix for prop as computed

* fix e2e test + add test to a couple of more areas

* add another test

* remove important

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-02-20 10:06:06 +00:00
Francesco Torchia 9cd3f0bc9f
Merge pull request #10255 from torchiaf/10045-kubelet-args-missing
Handle `kubelet-arg` when defined in cluster's global configurations
2024-02-19 09:51:08 +01:00
momesgin 2b3cf048e4
Merge pull request #10433 from momesgin/10412-registries-rerender-items
Fix SelectOrCreateAuthSecret not re-rendering properly after removing
2024-02-16 08:16:03 -08:00
Alexandre Alves ed31439ac1
add option of 'none' for Container Network select in Basics tab of RKE2 provisioning (#10385)
* add option of 'none' for Container Network select in Basics tab of RKE2 provisioning + add e2e test to check that option is available and can be selected

* add correct logic to include none as a CNI option

* address pr comments

* fix small bug with missing optional chaining

* add banner to Basics component when CNI option selected is 'none' to warn user about the need of additional configuration

* update e2e to test banner

* fix issue

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-02-15 09:09:46 +00:00
Mo Mesgin 0693ec0752 make key more unique 2024-02-14 14:39:21 -08:00
Mo Mesgin 188ff436f2 Merge branch 'master' of github.com:momesgin/dashboard into 10412-registries-rerender-items 2024-02-13 16:16:37 -08:00
Phillip Rak a79ca8f6ae
Merge pull request #10440 from rak-phillip/bugfix/10426-cloud-provider
Revert "Aws In-tree support (#9643)"
2024-02-13 09:51:22 -07:00
momesgin 049e8bc15e
Fix registry host not being synced with its secret (#10397)
* fix registry host not being synced with its secret

* lint

* refactor landing on Create Custom page

* refactor creating cluster name in e2e test

* pass index to selectors

* reuse clickTabWithSelector

* lint

* refactor registries e2e po

* lint

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-02-13 08:44:27 -08:00
Phillip Rak 1b107ecb3a Revert "Aws In-tree support (#9643)"
This reverts changes made by  Aws In-tree support (#9643). While testing, it appears that the intent of this PR (to handle upgrade cases and display a banner) can never be triggered.

fixes #10426
2024-02-13 08:45:34 -07:00
Mo Mesgin 3cc7ba0847 fix SelectOrCreateAuthSecret not rerendering properly after removing 2024-02-09 13:03:16 -08:00
yonasberhe23 c272370ced
RKE2 Amazon EC2 cluster provisioning tests (#10384)
* amazon ec2 rke2 cluster tests

* update saveAndWaitForRequest fn

* add loading po and use in test

* updates per change requests

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2024-02-08 12:44:12 -08:00
Cody Jackson 34dbf6db9a Make rke2 clusters respect the machingConfig `addCloudCredential` property
https://github.com/rancher/dashboard/issues/7023
2024-02-06 10:26:20 -07:00
Francesco Torchia ceb8bcb38c
Revert kubelet-args array selector
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-06 09:45:53 +01:00
Francesco Torchia c0bdc5b517
Add other rke2 configs safety check
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-05 12:40:33 +01:00
Francesco Torchia 19dd7f6dce
Clean-up tooltip message; Fix kubelet-args array selector
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-05 12:39:44 +01:00
Francesco Torchia 13345e9406
Rename proxyURL field in monitoring configs page
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-02 17:16:19 +01:00
Francesco Torchia 279776875b
Fix Advanced Unit tests
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-02 14:57:17 +01:00
Francesco Torchia 7f0f67024a
Add tooltip for global config
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-02 13:38:02 +01:00
Francesco Torchia 01cf4e4793
Fix kubelet-arg source logic
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-02-02 13:37:45 +01:00
yonasberhe23 3099aefcab
ui automation: global settings (#9458)
* ui automation: global settings

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2024-02-01 15:06:03 -08:00
Nancy c77e402313
Allow cluster provisioning extensions to define cluster-importing support (#10316)
* allow prov extensions to specify cluster importing support, allow prov extensions to overwrite built-in

* remove commented code

* fix e2e test data
2024-01-31 07:58:55 -08:00
Francesco Torchia ac747afc04
add isView
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2024-01-31 15:39:07 +01:00