Commit Graph

57 Commits

Author SHA1 Message Date
Neil MacDougall c0ea22f63b
RKE1 Clusters unsupported (#14226)
* Make RKE1 Unsupported

* Fix for unit tests

* Update a11y test for removed RKE1 toggle switch

* Fix missing import

* Remove RKE templates and related tests

* Fix lint and tidy up

* Removed unused code

* Updates e2e tests

* Tidy up e2e tests

* Fix lint

* Prevent edit of RKE1 cluster

* Remove RKE1 settings

* Fix lint with removed settings

* Remove e2e test for removed setting

* Remove unused e2e po

* Remove toggle switch from a11y test
2025-05-29 13:07:00 +01:00
Evgeniya Vashkevich f5305ed0d2
Improved version management banner for local and imported clusters (#14328) 2025-05-22 13:02:47 -07:00
Evgeniya Vashkevich 93a4befad9
Merged cluster import and editing imported cluster (#13332) 2025-02-25 14:05:44 -08:00
Mo Mesgin a7a49eb9f9 Merge branch 'master' of github.com:rancher/dashboard into 13284-rke1-deprecation-banner 2025-02-21 11:07:31 -08:00
Mo Mesgin ab7b8d7e47 shorter message on rke1 toggle 2025-02-21 11:07:19 -08:00
Mo Mesgin c70353dc7a show warning in details page and when switching the rke1 toggle 2025-02-19 23:28:06 -08:00
Nancy d240d2a300
Import GKE clusters (#13447)
* rearrange gke components to fit with import needs

* cluster picker

mostly works

tweak location arrangement

fix save hooks

* fix lint

* remove auto-populate project id

* remove commented code
2025-02-19 14:27:41 -08:00
Nancy 35623b3ee3
partially revert 13347 (#13406) 2025-02-14 07:05:48 -08:00
Nancy 49664eaf01
Fix issue loading cluster provisioning ui from extensions on edit; fix provisioning cluster table grouping label (#13347)
* wip refactor emberLink

* wip edit non-rke2 clusters with ui from extension

* refactor emberLink to account for isImported isCustom and provider annoation

* clean up

* lint
2025-02-11 12:34:04 -08:00
Evgeniya Vashkevich 06c788e7a9
Migrated editing imported cluster to Vue (#13216) 2025-02-03 13:43:57 -08:00
Richard Cox 29abba5916 Remove trailing comma 2024-12-20 12:37:21 -08:00
Richard Cox 20477d56d3 One tweak, one e2e
- make the top spacing small (given it's not seperating between rows)
- add e2e test in
  - tweaked the get (added `/`, worked ok without for me though)
  - check whole row cluster driver row is missing
2024-12-20 12:37:21 -08:00
Nancy Butler 30a8d65e0b fix spacing issue on cluster provisioning page 2024-12-20 12:37:21 -08:00
Nancy Butler 1603dec497 add hidden prop to the cluster provisioner interface 2024-12-20 12:37:21 -08:00
Nancy Butler c05cb281dd hide extension cluster provisioners when disabled=true; add disabled getter to eks, aks, and gke provisioners to hide them when the kontainer driver is inactive 2024-12-20 12:37:21 -08:00
Nancy bf5f6469bc
fix ember routing for kontainer driver clusters that are not EKS AKS nor GKE (#12587) 2024-11-13 08:01:45 -08:00
Mo Mesgin 05522c3857 Merge branch 'master' of github.com:momesgin/dashboard into 10362-remove-charts-call 2024-09-24 11:34:12 -07:00
Cody Jackson 5052c2a8e8 Enabling `vue/require-explicit-emits` linting rule
https://github.com/rancher/dashboard/issues/11961
2024-09-19 09:58:53 -07:00
Phillip Rak 72d8fa7ced Fix RKE1/RKE2 toggle switch when creating a cluster
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Cody Jackson 8aaf39381e Fixing the usage of ToggleSwitch in cluster create. 2024-08-22 16:07:03 -07:00
Phillip Rak a4ab569711 Resolve issue with invalid prop type
Invalid prop: type check failed for prop "resource". Expected Object, got String with value "provisioning.cattle.io.cluster".

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:07:03 -07:00
Phillip Rak 31646c2eae Replace `set()` with assigment
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:07:03 -07:00
Phillip Rak b48cd579a3 Fix `v-model` Vue Compiler Warnings
VueCompilerError: v-model cannot be used on a prop, because local prop bindings are not writable.
Use a v-bind binding combined with a v-on listener that emits update:x event instead.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:07:03 -07:00
Phillip Rak 2e2e3c8395 Fix two-way data binding
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:07:03 -07:00
Cody Jackson 9b829c55ea Ran `yarn lint --fix` 2024-08-22 16:05:36 -07:00
Cody Jackson d5ce4fff2e Run the vue3 migration script
Commands run:

➤ yarn migrate
➤ git clean -fdx
➤ nvm use 20
➤ yarn
2024-08-22 16:05:36 -07:00
Cody Jackson f2f014597c Removing prop mutation in v-model usage 2024-08-12 14:47:52 -07:00
Mo Mesgin 3a23a2b9a5 rely on isRke1 from the model instead of the computed property in the component 2024-07-16 11:55:16 -07:00
Mo Mesgin f0bdf96203 remove the charts call when editing an rke1 cluster 2024-07-15 14:55:14 -07:00
Alexandre Alves 102f1e6871
make sure we are adding the machine config to the subTypes array so that it is available while creating/editing an Elemental cluster (#11423) 2024-07-12 05:31:53 -07:00
Cody Jackson 3256f2fc3b Fixing an azuread test where the wrong auth provider is being selected
It appears that there are 2 less providers being used now. Is this a backend issue?
2024-06-10 13:12:23 -07:00
Nancy 557d0280fb
EKS Provisioning (#10581)
* eks initial

* k8s options

* eks node group component

* add config and networking components

* fix default region on initial load

* use .sync modifier in network tab

* launch templates

* node group styling

* spot instances/launch template instance type

* fix selectcredential footer when not showing the rest of the form

* cluster name description and options

* iam listRoles

* subnets

* k8s version dropdown custom

* logging tab

* agent deployment customization, labels and annotations

* working default values

* fix edit eks/aks

* instance types dropdown improvements and spot instance type filtering

* validation;

localization

* todos

* tests

* move diffUpstreamSpec

* clean up

* improve launch template loading appearance

* fix kms key fetch

* fix custom role radio

* fix failing nodegroup test

* fix lint

* fix typescript errors in crueks

* nodegroup ts

* cache ec2 instance types

* cache instance types in vuex

* nodegroup ts

* ts errors in eks networking

* eks config ts errors

* tweak nodegroup input sizing

* reset nodegroup default values if the launch template is cleared

* add tooltips and userdata file upload button to node groups

* add networking tooltips; make credential dropdown half width when not showing credential form controls

* fix rancher managed launch template detection

* fix networking tooltip

* show when a node group has a rancher-managed launch template

* fix error filtering for ec2 iam roles

* add system labels and annotations for norman clusters

* lint

* lint

* fix labels and annotations getters in norman cluster model

* added tests for norman cluster system labels and annotations

* fix some eks typescript and hide cluster name when no credential

* fix userdata sublabel link

* fix networking info banner translation typo

* node group size labels and tags should be editable
2024-04-26 09:06:48 -07: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
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
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
Alexandre Alves aee70208c9
add query param rkeType to cluster creation url + add logic to take into consideration rkeType query param when reading cluster provisioning create url + replace some strings for consts + add e2e (#10284)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2024-01-22 09:06:22 +00:00
Nancy 4cca5faf81
AKS provisioning extension (#9669)
Adds a built-in AKS provisioning extension to replace the embedded ember pages, as well as modifications to the provisioning UI to support other non-rke2 provisioning extensions
2024-01-11 07:52:45 -08:00
richa 5770637a4c
Disable rke1 UI (#10056)
* Added test file

* Added test in cluster create test

* Added fix for test svg

* Fixed test

* untrack file fix

* Removed unused code

* Fixed lint

* Remove blank line

* revert change to set up of isElementalActive const

* fix unit test

---------

Co-authored-by: Neil MacDougall <nmacdougall@suse.com>
Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-12-27 12:05:25 +00:00
Richard Cox 48d0807181 Revert "App upgrade notification shown for incorrect app (#9806)"
This reverts commit eec4a46fdb.
2023-10-20 15:13:52 +01:00
Giuseppe Leo eec4a46fdb
App upgrade notification shown for incorrect app (#9806)
* Heavy code cleanup: move function to utils, config and types to their own file

* Add fallback and tests for version comparison not retrieving values

* Fix refactoring

* Add partial case of array filterBy

* Replace multiple functions handling the same case with single getter; add covering tests

* Add no parameter case to be correctly handled

* Add case with different chart values, e.g. Epinio issue case

* Prevent issues if retrieved version is undefined; Add unit tests for upgrade cases

* Filter out charts if lack parameters
2023-10-10 11:14:24 +02:00
wujun f4856ffccc fix circular dependency 2023-07-26 17:45:27 +08: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
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
Francesco Torchia 66b4be8ae9
CruResource, make preventSubmit as optional
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
2023-03-29 15:42:23 +02:00
Alexandre Alves 0e33fd4c13
getting elemental changes on cluster provisioning back to rancher dashboard (#7543)
* getting elemental changes on cluster provisioning back to rancher dashboard

* code cleanup

* apiversion created from machineCconfig schema attributes

* add machine-config loader to load it from an extension

* fix issue where elemental cluster details could not be displayed + minor changes and fixes

* fix bug where elemental infrastructureRef.name for elemental start with nc- and therefore was generating a fake machine when it shouldnt + cleanup prov cluster model

* prevent code change

* getting k8s file back up to master state to avoid complex merge conflicts

* getting k8s file back up to master state to avoid complex merge conflicts

* applying changes to cluster.x-k8s.io.machinedeployment

* Address PR feedback

---------

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>
2023-01-27 16:12:47 +00:00
Neil MacDougall 40afad6ccd
Update and refine PSP banners (RKE2) (#8012) 2023-01-25 09:23:42 +00:00
Bastian Hofmann fec5ec5e6c Fix: Also show RKE1/RKE2 toggle on cluster creation screen if all node drivers are deactivated
Fixes https://github.com/rancher/dashboard/issues/7705

Signed-off-by: Bastian Hofmann <bashofmann@gmail.com>
2022-12-20 11:13:46 +01:00
Richard Cox 5152adc131 Revert "On Cluster creates, sets rke2/k3s as default (#7691)"
This reverts commit 85ecda083e.
2022-12-14 11:17:21 +00:00
Sorin 85ecda083e
On Cluster creates, sets rke2/k3s as default (#7691) 2022-12-14 09:12:33 +01:00
Phillip Rak 3d410d0974 Apply linter auto-fixes
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2022-11-16 18:38:20 -07:00