Commit Graph

76 Commits

Author SHA1 Message Date
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
Catherine Luse 3654eac4f7 Change Azure VM size endpoint 2022-12-16 14:12:23 -07:00
Catherine Luse dcf0b5e1b7 Indicate availability of VMs by region and AZ 2022-12-16 14:12:23 -07:00
Catherine Luse 9732773327 Show errer when selected VM doesn't support AN 2022-12-16 14:06:53 -07:00
Catherine Luse 19f7a3cf30 Add availability zone field 2022-12-16 14:04:36 -07:00
Catherine Luse b0b5703bab Put managed disks checkbox next to storage type dropdown 2022-12-16 13:22:47 -07:00
Catherine Luse 3eb7c67374 If Azure storage type StandardSSD_LRS is selected, show managed disks warning 2022-12-16 13:11:16 -07:00
Catherine Luse 91b2f32011
Merge pull request #7296 from catherineluse/azure
Add tags to Azure machine pool config
2022-12-16 11:06:14 -07:00
Catherine Luse ec59230d1e
Merge pull request #7254 from catherineluse/azure-storage
Add StandardSSD as a storage option for Azure cluster provisioning
2022-12-12 15:26:10 -07:00
Catherine Luse 27ebf919a9 Add tags to Azure machine pool config 2022-12-09 13:37:40 -07: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
Giuseppe Leo d2d4122bc0
Review HTML formatting rules (#6805)
* 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
2022-11-11 17:04:22 +01:00
Dai Yuzeng 06a741e590
Harvester: exclude the network created by storage-network (#7288) 2022-11-01 08:55:56 -07:00
Catherine Luse db2e20e187 Add StandardSSD as a storage option for Azure cluster provisioning 2022-10-20 17:44:12 -07:00
Bastian Hofmann 72ef83ac30
RKE2 Cluster provisioning on Harvester: Make image form field editable (#6765)
Fixes https://github.com/rancher/dashboard/issues/6764
2022-09-29 12:55:30 -07:00
n313893254 ef77f00373 HARVESTER: Add node driver namespace filter 2022-09-20 17:18:14 +08:00
Richard Cox 7ecfe879c0 Merge remote-tracking branch 'upstream/master' into test-pluginize-rc-2 2022-09-09 13:19:15 +01:00
Richard Cox ad950c9d70 Fixes following review
- Don't use `harverster/findAll` in harvester machine config
- Fixed access for `SETTING.UI_DASHBOARD_HARVESTER_LEGACY_PLUGIN`
2022-09-09 11:34:14 +01:00