Commit Graph

38 Commits

Author SHA1 Message Date
Nancy 4dcbc1db28
remove $set usage in eks provisioning and gatekeeper constraints (#12447)
* remove $set usage in eks provisioning and gatekeeper constraints

* fix lint

* fix gatekeeper constraint  parameters event handling
2024-11-15 09:03:02 -08:00
Phillip Rak 479aa652d5 Replace all usages of `v-tooltip` with `v-clean-tooltip`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-11-11 08:59:47 -07:00
Phillip Rak fafd4b2bf8 Use `semver.coerce()` to get valid kubernetes version
When creating AKS clusters, `1.29` is a valid kubernetes version that can be supplied to provision a cluster with the latest patch version. Unfortunately, `aksConfig?.kubernetesVersion` only stores `1.29` and the fully compatible semantic version is unknown. With the information we have available to us, we can utilize `semver.coerce()` to at least attempt to infer a Kubernetes version with the information that we have available to us.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-11-06 18:13:11 -07:00
Nancy 0f723dd163
Set creator principal id annotation when creating projects and v3 clusters (#12233)
* set principal id annotation when creating projects

* set creator principal id when creating kontainer and machine driver clusters

* correct kontainer provisioning principal id annotation

* add test for project creation

* fix projects afterEach hook
2024-10-15 11:26:15 -07:00
Phillip Rak cf1341cd44 Replace remaining instances of `\$set` with assignment
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-14 10:33:01 -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
Nancy c6ad2e6636
fix aks pool count validator and add some unit tests (#11907) 2024-09-12 17:49:15 -07:00
Nancy c7e2f860ca
fix failing aks unit tests (#11879)
* fix failing aks unit tests

* skip failing project/namespace test
2024-09-10 18:52:16 -07:00
Nancy 85c5c28c22
Vue3 fix unit tests (#11776)
* remove $set from AKS validators

* fix cruGKE not rendering

* fix most aks unit tests

* fix crueks and eks config unit tests

* fix eks networking and nodegroup unit tests

* fix gke unit tests

* fix consumption gauge test

* fix namespacefilter tests

* fix command and taints unit tests

* fix questions unit tests

* fix hpa and service unit tests

* fix registryconfigs unit tests

* fix job unit tests

* fix longhorn unit tests

* fix addextensionsrepos unit tests

* fix rke2 basics unit tests

* fix container shell unit tests

* fix last aks pool test

* fix mount tests

* fix namespace and pv unit tests

* fix codemirror unit tests

* clean up aks, boolean, namespacefilter unit tests

* fix namespacefilter test

* remove redundant test case
2024-09-10 08:07:21 -07:00
Nancy 9f005d93a8
aks node pools - allow 0 count when autoscaling is enabled (#11855)
* aks node pools - allow 0 count when autoscaling is enabled

* fix aks min/max translation string
2024-09-06 11:06:30 -07:00
Nancy 49539364d4
update hardcoded aks region availability zone support list (#11831) 2024-09-05 16:24:27 -07:00
Cody Jackson 8d59cd5914 Skipping all failing unit tests for the Vue3 merge. 2024-08-22 21:12:40 -07:00
Phillip Rak a71857ce7d Unit test updates - partially fixed
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:56 -07:00
Phillip Rak 97b58ca4f0 Update unit tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-08-22 16:09:54 -07:00
cnotv ef16cacbb1 Fix issue with the Vue.set replacement bracket edge case 2024-08-22 16:07:03 -07:00
Cody Jackson 909affa02f Replacing $emit('input' with $emit('update:value'
This should've been done in the migration script and will be fixed for the next run.
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
Nancy 2386076635
fix default aks pool name and add unit test (#11644) 2024-08-15 09:33:39 -07:00
Giuseppe Leo d98ca6bd85
Remove Nuxt reference in extensions and creator (#11420)
* Remove nuxt commands

* Remove vsconfig nuxt mention

* Remove Nuxt path as unused

* Remove Nuxt

* Remove creator scripts

* Remove all the nuxt and nuxt.config references

* Restore existing comment about Nuxt

* Add dependency for check-plugin

* Add more missing dependencies

* Update to comments

* Correct comment based on PR review
2024-08-07 18:42:08 +02:00
Nancy Butler b1351774d0 fix aks node pool tab key issue and add validation for pool name uniqueness 2024-07-16 13:24:25 -07:00
Nancy f8185c53a3
add node pool name length validation and refactor to allow unit tests (#11410) 2024-07-11 08:09:28 -07:00
Nancy d3096f08be
update privateDNSZone validator to allow system (#11382) 2024-07-09 13:02:54 -07:00
Nancy a318d87845
bump aks eks gke extensions to 1.0.0 (#11367) 2024-07-05 08:47:02 -07:00
Nancy cc25f8523e
AKS: fix node labels and errors when saving the cluster fails immediately (#11278)
* fix aks nodepool nodelabel

* remove cleanPoolsForSave before save hook

* remove unused beforeSaveHook
2024-06-25 11:51:20 -07:00
Nancy ae9d1cb3c2
Gke provisioning (#11025)
* gke provisioning without validation or tests

* move version from config tab to location tab, rename config networking and location config

* add form validation

* sort en-us

mock gcp data

networking tests

config tests

fix upgrade np version  checkbox

fix account access on edit

typescript errors

authscopes util tests

* add private nodes warning banner and fix accountaccess on create

* lint

* update yarn lock to include ipaddr.js

* fix e2e test

* testing credential bug

* fix selectcredential not allowing new credential to be created

* automatically use project id when a new gcp credential is created; block saving cluster until project id is authenticated

* logging banner

* fix networking when subnet ha sno secondary ip ranges

* add svc account fetch and some node pool tests

* fix auth scopes styling and view config mode

* review feedback and ts errors

* no auto-authenticate

* fix lint

* update networking input placement

* add loading component to crugke, crueks, cruaks; shuffle gke node pool component inputs

* fix lint and loading import

* fix extra zone checkboxes on edit and add unit test

* fix gke node pool version checkbox when adding pools

* fix lint

* fix extrazoneoptions display in view config mode

* clean up extraZoneOptions
2024-06-21 16:43:23 -07:00
Nancy a069ca28b7
AKS - fix editing imported clusters (#11120)
* sync upstream hosted provider cluster spec with rancher cluster spec on edit and fix aks authorizedIpRanges watcher

* rm eks upstream sync

* fix syncUpstreamConfig utility
2024-06-13 09:10:20 -07:00
Nancy a666ee98fa
fix container monitoring checkbox and add unit tests (#11083) 2024-05-23 08:07:23 -07:00
Nancy 51245fa832
AKS - various fixes to edit mode (#11059)
* do not select latest k8s version on edit

* add orchestrator version input to nodepools

* fix aks taints parsing

* todo

* pool mode should be editable

* remove diffUpstreamSpec from aks utils as it lives in shell utils now

* move taint stuff to util

* needs tests

* test node pool orchestrator version updates

* add taints validation and tests

* clean up taints

* fix taints form validation implementation

* fix merge conflicts in cruaks tests

* fix aks taints formatting

* fix removing taints

* add check for undefined node pool orchestrator version
2024-05-22 13:31:30 -07:00
Nancy aa5045a4be
AKS - show subnets in virtual network dropdown (#11079)
* show subnets in virtual network dropdown

* clean up virtualNetworkOptions prop
2024-05-22 08:17:48 -07:00
Nancy edba62eeb4
Fix AKS cluster name and node pool count validation (#11037)
* fix aks cluster name validator and add test case

* update aks pool availability zone validator to work on field level

* add validation for pool min, max, and count

* rework node pool validation to scale better with more validators

* validate node count regardless of autoscaling

* remove aks node pool form validation test

* add min and max attributes to node pool count inputs
2024-05-17 11:14:45 -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
Giuseppe Leo 793f7c6023
Initial migration of Vue3 for compatible fixes (#10858)
* Correct file naming and small TS issues

Correct TS related issues

* Manual replacement of :is on standard HTML tags

* Add missing required in the code dependencies

* Correct SCSS import

* Correct test file naming

* Correct typo in markup

* Use alias for types import
2024-04-23 20:16:46 +02:00
Nancy 4fe717d274
remove incorrect aks privatednszone validation (#10744) 2024-04-04 10:47:14 -07:00
Nancy 7d419eb324
Fix AKS node pool and node resource group validation (#10712)
* fix aks resource group validator

* add node pool name validation

* add test for node pool name valdation

* fix aks cluster name validation

* fix aks cluster name unit test
2024-03-27 13:47:11 -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
Nancy 15fc60005a
Add possibility to set private DNS zone on AKS clusters (#10340)
* aks private dns zone

* fix private dns zone regex
2024-01-29 09:15:13 -08: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