Commit Graph

93 Commits

Author SHA1 Message Date
Evgeniya Vashkevich 0c3e06569a
[2.12] Fixed adding a new machine pool to existing GCE instance (#15568) 2025-10-02 21:13:25 -07:00
Nancy Butler 2317ab4eea add unit test for vsphere networks 2025-07-23 11:55:28 -07:00
Nancy Butler 7edb3612f5 do not change network name 2025-07-23 11:55:22 -07:00
Evgeniya Vashkevich c72a94e51c
Added GCE support (#14694) 2025-07-09 16:34:29 -07:00
Alexandre Alves cb7cb52dbe
add role 'none' to hr elements in TopLevelMenu (#14121)
* add role 'none' to hr elements in TopLevelMenu

* add missing role and label to SideNav

* add aria-label to show/hide button in the Password component

* add role 'none' to hr elements

* add missing alt to user avatar image
2025-04-16 10:23:38 +01:00
Mo Mesgin 270b8f7dbf sync network value for selected networks before moid support 2025-03-24 17:57:03 -07:00
Cody Jackson d4e1a775b1 Preventing the UI from overriding custom vapp fields when they're set
Fixes https://github.com/rancher/dashboard/issues/13441
2025-03-10 07:37:57 -07:00
Mo Mesgin c4510f6cce use mergeWithReplaceArrays to merge array values on add-on yaml editor 2024-11-27 14:36:49 -08:00
Nancy d23db14d7a
update vsphere machine config to use new networks endpoint (#12263)
* update vsphere machine config to use new networks endpoint

* update vapp options to reference network name not moid

* vapp wip

* clear out vapp config when switching to custom
2024-10-16 14:49:05 -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 0fb02f5b2d Unit test updates
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Phillip Rak e39ce7899f Resolve a batch of unit test failures
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
Phillip Rak 7874da578f Fix slot syntax
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -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
Giuseppe Leo a2304f462e
Remove or replace all the @nuxt libraries (#11302)
* Update checkout to v4 and bump Node to 16

* Update GHA workflow migration paths

* Removed named exports from Vue files

* Move code outside of the Vue app element

* Remove @nuxtjs/eslint-config-typescript

* Remove @nuxt/types and @nuxt/typescript-build

* Fix import issue with http-proxy-middleware

* Replace @nuxtjs/axios with axios and axios-retry

* Remove @nuxtjs/webpack-profile

* Fix linting issues after Nuxt webpack removal

* Pin resolution for glob after rebase

* Update yarn.lock after rebase

* Fix issue with rancher-components

* Bump rancher-component GHA config to match rebase changes

* Generate yarn file

* Add dependency

* Remove nuxt global var in app template

* Pin version for babel/plugin-proposal-private-methods
2024-08-08 15:31:44 +02:00
Evgeniya Vashkevich ee44a98306
[Automation] Added a test for credential changing the Azure environment (#11033)
* [Automation] Added a test for credential changing the Azure environment
2024-05-16 14:19:11 -07:00
Evgeniya Vashkevich 6bd67ba3ff
[INT] Refactored some of the plugins - 3 (#10946)
[INT] Refactored some of the plugins - 3
2024-05-08 15:10:27 -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
momesgin 4af6e261d0
Fix removing array type values in machine pool configs (#10741)
* fix removing array type values in machine pool configs

* update comment

* lint

* limit custom merge helper to vsphere

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-04-18 08:25:12 -07:00
momesgin ba01b9d9e7
Error handling for contentLibrary, tag and network fields (#10599)
* error handling for contentLibrary, tag and network fields

* fix typo

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

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
Co-authored-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-12 15:03:41 -07:00
Nancy ad752110b2
Ensure Azure RKE2 default region is available with selected cloud credential (#10471)
* Fix(aks) Ensure AKS RKE2 default loaded region aligns with Credentials

* fix azure machine pool default on edit

* remove always-disabled azure environment input

* force re-run ci

---------

Co-authored-by: Siye Wang <siye@rancher.com>
2024-03-08 14:33:54 -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
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
momesgin f05a2bbd94
Fix displaying false vsphere errors (#10473)
* fix displaying false vsphere errors

* rename variables

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-02-20 12:19:38 -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
momesgin df4a889bd3
fix ui inconsistency in vsphere config section when in view mode (#10183)
Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-12-22 12:42:50 -08:00
momesgin 00b773a16d
Expose raw data in vSphere cluster form (#10143)
* expose raw data in vSphere fields + tooltip for select options with possible long values

* fixed tooltip icon overlapping error containers

* passed empty array to ArrayListSelect, used defaultAddValue prop to override default empty string

* pass empty array as a fallback to networks for getDefaultVappOptions

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-12-18 13:33:51 -08:00
momesgin 9d7b930dbf
expose gracefulShutdownTimeout option for vsphere (#9991)
* expose gracefulShutdownTimeout option for vsphere

* updated tests

* removed console log

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2023-11-15 16:16:38 -08:00
Phillip Rak e0697ed824 Relay vSphere configuration errors to root form
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-09-19 18:07:25 -07:00
Jordon Leach 3813e4bd8d
Reset network property when region is updated (#9662) 2023-09-07 14:31:42 -04: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
Alexandre Alves a9195dda4a
address QA concerns (#8339)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-03-06 09:01:55 +00:00
Alexandre Alves e18529c799
fix bug where location wasnt being populated before fetching vmSizes on async fetch when adding a new machine pool for azure after cluster creation (#8289)
Co-authored-by: Alexandre Alves <aalves@Alexandres-MBP.lan>
2023-02-28 14:16:34 +00:00
Nancy 225a865e18
Add enablePublicIpStandardSku field to azure rke2 provisioning (#8156)
* add form validation for azure availability zones

* add availability zone require fields warnings
2023-02-14 09:34:30 -07:00
Catherine Luse 42bf373067
Merge pull request #7921 from catherineluse/az-order
Availability zones are in order
2023-01-19 12:37:20 -07:00
Catherine Luse 9859d92af0 Show VMs that support AN first 2023-01-13 14:50:46 -07:00
Catherine Luse e420a31a82 Availability zones are in order 2023-01-13 14:42:17 -07:00
Richard Cox f77798a935 Fix linting after merge of old PR
- the pnap PR is pretty old and was done prior to some lint changes
2023-01-12 11:55:20 +00:00
Richard Cox d72e78be10
Merge pull request #6569 from PNAP/master
pnap machine driver implementation
2023-01-12 10:10:02 +00:00
Nancy Butler 7500405cf5 fix cloud-credential and machine-config imports 2023-01-09 10:48:42 -07:00
Qingyang Nong e4e1620f5c
HARVESTER: Remove External Harvester Cloud Credentials Support (#7827) 2023-01-03 16:30:10 -07:00
wujun 221f9a2812
filter harvester system namespace (#7767) 2022-12-20 11:25:25 -07:00
Catherine Luse 565dca9b96
Merge pull request #7687 from catherineluse/azure-vms
Add accelerated networking and availability zones to RKE2/K3s machine pools
2022-12-16 16:23:32 -07:00
Catherine Luse 7a61b15f71 Remove duplicated check box 2022-12-16 16:22:34 -07:00
Catherine Luse 304aa07454 Remove unused import 2022-12-16 15:32:46 -07:00
Catherine Luse 96ee18e135 Minor fixes to accelerated networking PR 2022-12-16 15:25:19 -07:00
Catherine Luse aaf09ca272 Respond to feedback on Azure options PR 2022-12-16 14:30:50 -07:00
Catherine Luse 32ba252152 Use AvailabilitySet by default in create mode 2022-12-16 14:12:23 -07:00