Commit Graph

2348 Commits

Author SHA1 Message Date
Westly Wright d704f2c944
expose pni for generic import clusters
rancher/rancher#33024
2021-06-08 11:03:08 -07:00
Westly Wright 0c0f12ce6f
Merge pull request #4651 from westlywright/bug.gkev2.ipalias.autosub
GKE V2 Disable correct fields when not useing Ip Aliases
2021-06-08 11:01:32 -07:00
Westly Wright 3166ed72b0
Merge pull request #4650 from westlywright/bug.gke.network.config
GKE V2 - networkPolicyConfig
2021-06-08 11:01:20 -07:00
Westly Wright 624cfc51b3
GKE V2 Disable correct fields when not useing Ip Aliases
rancher/rancher#32597
2021-06-07 15:16:46 -07:00
Westly Wright 1063580113
make networkPolicyConfig un-editable
rancher/rancher#32998
2021-06-07 11:05:37 -07:00
Westly Wright 38aa629ef7
Expose httpApplicationRouting AKS v2
rancher/rancher#32991
2021-06-07 10:13:53 -07:00
Westly Wright f303fc1a27
group regions by availablity for aks v2
display warning if selecting a region that is not ha
2021-06-04 15:43:22 -07:00
Westly Wright 3f29cb540a
move node availablity zones to aks node pool row
rancher/rancher#33021
2021-06-04 14:50:46 -07:00
Westly Wright b12e9ac8f9
az checkboxes should be disabled when location without is selected
rancher/rancher#33019
2021-06-04 11:13:27 -07:00
Westly Wright 3faf14ee84
fix setTags logic for AKS v2
rancher/rancher#33017
2021-06-04 10:58:36 -07:00
Westly Wright c5917281be
Validate DNS prefix on create only
rancher/rancher#32999
2021-06-04 10:22:22 -07:00
Westly Wright ff81aa8268
Remove tenant id from import, its on the cloud cc 2021-06-04 10:14:39 -07:00
Westly Wright 86fad1989c
lint fixes 2021-06-01 14:53:15 -07:00
Westly Wright 4439879fac
fix is new node pool check 2021-06-01 14:41:30 -07:00
Westly Wright a875466186
Azure AKS v2
WIP - Initial creation of AKS v2 cluster

add cloud cred component to aks

location and availablity zone changes aks v2

remove tenant id and fix bug is missing driver for new aks

Cloud creds proxy calls and wip auth networks

update input cidr to move error to tool tip

this accounts for help text below the input

aks v2 networking and use input-cidr

convert tooltip around input cidr to info icon tooltip

fixups

Initial aks node pools

system node pools remove and radio buttons logic

hide primary/user logic for now

markup and node availablity zones

sync aks config

import aks

state logic for authorizedIpRanges and Private Cluster AKS v2

kubenet and azure cni networking setup

advanced networking

default version aks v2

aks edit modes

windows profiles changes

new proxy calls for region, vm size, and clusters aks v2

fix ups

import mode edit and failed cluster edit

add disabled options to searchable select

network policy fixups

node pool versions

save fixes

match import link order with v2 create order on select page

aks v2 set resourceGroup from proxy call not input

testing fixes

editing state steps for aks v2

translations and defaults

version bugs
2021-06-01 12:06:23 -07:00
Westly Wright d7aceb01b9
gkev2 only allow location change for zonal clusters on edit
rancher/rancher#32345
2021-05-27 16:29:17 -07:00
jesse.millan e689d9a0dc
Add helper to detect when any flexible shape is selected. 2021-05-26 11:39:21 -07:00
Westly Wright 27618e8e67
change defaults for clusterIpv4Cidr & maintenanceWindow GKEv2
rancher/rancher#32770
2021-05-25 15:01:46 -07:00
Westly Wright dd09197281
Expose zones for a regional cluster
adds new label in each node pool under node count to show the total nodes in each zone

rancher/rancher#32345
2021-05-24 10:19:44 -07:00
jesse.millan 9d0c6063bc
Add support for private control-plane and speicying pod and service CIDRs. 2021-05-07 17:23:13 -07:00
Westly Wright 2fa821de9a
lint 2021-05-03 20:59:01 -07:00
Westly Wright af8ad33f55
check windows prefered before save for yaml view
rancher/rancher#32522
2021-05-03 20:51:57 -07:00
Westly Wright 477cb57cc4
simplify edit as yaml shown logic
only show it when we're at step 1

rancher/rancher#32521
2021-05-03 20:51:57 -07:00
Westly Wright 727b160b13
update gke proxy calls to send cluster id if editing 2021-05-03 16:58:25 -07:00
Westly Wright f1487f12b0
User can edit GKE cluster labels
rancher/rancher#32433
2021-05-03 11:52:10 -07:00
Westly Wright 5bb0ebe73d
Merge pull request #4605 from westlywright/bug.eks.gke.partial.updates
V2 Clusters Changed Deltas
2021-04-30 14:25:32 -07:00
Westly Wright 35bcdbc436
fix undefined intermediate value
caught this while editing an imported cluster before the full sync
2021-04-30 14:12:52 -07:00
Westly Wright 26683cc127
Merge pull request #4603 from westlywright/bug.imported.release.channels
GKE V2 Updates
2021-04-30 11:13:20 -07:00
Westly Wright ff34d90fb8
Expose cluster labels on gke v2 create
rancher/rancher#32433
2021-04-30 10:46:06 -07:00
Westly Wright 2a7a8c69a5
Release channels can be changed on the gke side during edit
so we need to fire the gkeClusters call and logic for finding the channel on every gke cluster edit

rancher/rancher#32360
2021-04-30 10:46:06 -07:00
Westly Wright 2a866b5fb0
Merge pull request #4600 from westlywright/bug.imported.release.channels
Rework GKE versions missing initial version logic
2021-04-30 09:25:20 -07:00
Westly Wright 854a91ab7e
Rework GKE versions missing initial version logic
put the version in the versions list and sort before we parse the list to a map of labels/values.

rancher/rancher#32360
2021-04-30 09:14:37 -07:00
Westly Wright 760fc92be3
Merge pull request #4599 from westlywright/bug.rke.form.members
Form Members Reset Bug
2021-04-29 15:23:29 -07:00
Westly Wright 0b24e2ff2b
reset formmembers member array on destroy not done
if a cluster errors out and user tries to save again they'll see an error that they need at least one owner role. moving to destory ensures we're leaving the route.

    rancher/rancher#32447
2021-04-29 14:25:22 -07:00
Westly Wright 0667e1e6dd
fix initial labels gke node pool
rancher/rancher#32435
2021-04-29 13:42:41 -07:00
Westly Wright 0682ef0326
fix gke node pools labels ary -> map
rancher/rancher#32435
2021-04-29 09:51:00 -07:00
Westly Wright bab2d5dc31
Lookup imported gke cluster object on edit to find release channels
If the imported cluster is on a release channel we can then limit the versions available to the user for upgrade scenarios to those that exist in the release channel.

rancher/rancher#32360
2021-04-28 17:07:53 -07:00
Westly Wright 5167f68f0f
Change default on imported gke to be zonal and match fresh create page
rancher/rancher#32439
2021-04-28 15:44:03 -07:00
Westly Wright 23f72b792d
expose cluster description
rancher/rancher#32430
2021-04-28 15:44:03 -07:00
Westly Wright a4f927f66d
Merge pull request #4576 from westlywright/bug.gke.edit.error.cluster
GKE V2 Add logic to handle error never provisioned editing case
2021-04-28 15:43:17 -07:00
Westly Wright 821bf6460a
Add warning to custom command that rancher needs nodes w all roles
rancher/rancher#32404
2021-04-28 11:55:41 -07:00
Westly Wright f60ddd5e91
remove on init wrapper around autoscale observer
was not needed any longer and it caused edited nps to reset the values on init.

rancher/rancher#32359
2021-04-27 10:42:27 -07:00
Westly Wright a4c4b134c6
fix minor version label
rancher/rancher#32339
2021-04-27 10:42:27 -07:00
Westly Wright 6c96d99f92
GKE V2 Update secondary range labels
rancher/rancher#32346
2021-04-26 16:28:08 -07:00
Westly Wright 4c34f09723
fix editable state for error edit gke 2021-04-26 16:05:39 -07:00
Westly Wright 8674084aa9
Add logic to handle error never provisioned editing case
If a user launches a new GKE cluster but chooses something alignment of options that fails before the cluster ever starts provisioning
we now allow them to edit the cluster and all its fields.

rancher/rancher#32207
2021-04-26 15:04:52 -07:00
Westly Wright 37130b5c86
remove fieldrequired from subnetworkname
rancher/rancher#32351
2021-04-26 14:14:12 -07:00
Westly Wright 3b4398cd11
Move cluster and service ranges back out of conditional
they should only be disabled when a range name exists or a shared subnet is selected
2021-04-26 14:14:11 -07:00
Westly Wright ea89a726d7
rework showManagementWarning to computed property only imported 2021-04-26 12:00:56 -07:00
Westly Wright 0770ea31a0
Add warning for imported clusters and np managment var
rancher/rancher#32282
2021-04-26 11:40:03 -07:00
Westly Wright bb1bbe2ef4
Update GKE version dropdowns to match EKS on edit 2021-04-26 10:31:21 -07:00
Westly Wright 6d6c676e45
Use searchable select for locations 2021-04-23 11:12:45 -07:00
Westly Wright ac0cea1f07
Fix typo in displaying the import/reg command for GKE v2 private cluster
rancher/rancher#32303
2021-04-23 11:12:45 -07:00
Cody Jackson b2a25067e2 Now we always show the command for custom import clusters
We would spuriously skip the command step because we skipped post save and occasionally the cluster would have its state set to active which is an indication to skip the command.

rancher/rancher#32242
2021-04-22 16:15:30 -07:00
Westly Wright c0a273e7be
Move ipAllocationPolicy cluster and service cidr blocks to conditional
only want to show them when auto creating a subnetwork, otherwise the values are ignored
2021-04-22 10:28:32 -07:00
Westly Wright a8952b2e20
adds links to GKE cluster docs
rancher/rancher#32030
2021-04-21 16:02:11 -07:00
Westly Wright 80c47468fe
remove reverted params in input cidr 2021-04-21 15:41:08 -07:00
Westly Wright 66da4b523b
revert min/max range changing for cidr input
out of scope of the ui requirements
2021-04-21 15:32:26 -07:00
Westly Wright dc523dcad9
Update master auth networks enable logic
if private endpoint is enabled master auth networks must be enabled too

rancher/rancher#32251
2021-04-21 15:32:26 -07:00
Westly Wright 4fc2d9e52c
Update docs base logic for 2.5+
Addeded docsBase to translations that were missing it as well.

rancher/rancher#31860
2021-04-20 14:07:14 -07:00
Westly Wright a9832c02ce
Merge pull request #4555 from westlywright/bug.install.script
Display default docker engine script version
2021-04-19 16:19:34 -07:00
Westly Wright 0141eba838
Merge pull request #4553 from westlywright/bugs.gke
GKE V2 IP Allocation CIDR Validation
2021-04-19 16:18:28 -07:00
Westly Wright 9bd5e8073b
Try to parse version out of engineInstallUrl for better ux
rancher/rancher#31216
2021-04-19 16:11:46 -07:00
Westly Wright c962c348b8
add min max check to clusterIpv4CidrBlock 2021-04-19 15:35:34 -07:00
Westly Wright eaa5e76775
Add validation logic surrounding ipAllocationPolicy min/max cidr ranges
rancher/rancher#32207
2021-04-19 15:27:50 -07:00
Westly Wright 5b81ce3728
reset networkpolicy if flannel provider is chosen
rancher/rancher#32106
2021-04-19 09:44:45 -07:00
Westly Wright 9517b5f698
Only show registration command if imported cluster or private cluster
rancher/rancher#32150
2021-04-16 16:54:11 -07:00
Westly Wright 4c30fcb9b5
Remove unneeded case to set createSubnet true
rancher/rancher#32082
2021-04-16 16:54:11 -07:00
Westly Wright 8e95ca821b
more node pool autoscale changes 2021-04-16 16:54:11 -07:00
Westly Wright 72bf5f58c1
Show warning if on edit either logging or monitoring is changed gkev2
rancher/rancher#32148
2021-04-16 16:52:39 -07:00
Westly Wright 25645a90b8
Fix is new node pool check to avoid locking up name field on nodepool
rancher/rancher#32172
2021-04-16 16:52:38 -07:00
Westly Wright 20b2b518e9
change defaults on gke v2 np autoscale config to 1, 3
rancher/rancher#32169
2021-04-16 16:52:38 -07:00
Westly Wright 670f8adcc5
fix duplicate object reference for node pools
the default nodePool object was not being cloned properly when creating a new record so the second np object was just referencing the first one.
renamed model to nodePool because I find it less confusing.

rancher/rancher#32167
2021-04-16 16:52:38 -07:00
Westly Wright fef0c84e04
Update RKE network provider dropdown for new pni updates
rancher/rancher#32106
2021-04-16 09:46:13 -07:00
Westly Wright 94af9d5700
Add observer to set nodepool version when master version changes on new
rancher/rancher#32143
2021-04-14 16:30:13 -07:00
Westly Wright 46589bc644
Fix bug with node upgrage checkbox not showing up when should
Versioned the parseCloudeProviderVersion choices for a more robust and native implmentation.
Discards coerce versions and just passes the raw versions around because semver can handle this.
Adds include prerelease input as well.
2021-04-14 16:30:13 -07:00
Westly Wright e14c28a148
fix a null taints error
also removes so old code that mapped taints from one format to antoher
2021-04-14 16:30:13 -07:00
Westly Wright 99783fda56
Merge pull request #4540 from westlywright/bugs.gke
GKE Bugs
2021-04-14 12:06:29 -07:00
Westly Wright f1209d5e83
set gke network to default if it exists
rancher/rancher#32136
2021-04-14 12:00:17 -07:00
Westly Wright 11aea27668
Refactor GKE v2 version choices to remove unneeded watcher
which caused the version choices to recompute and add anything less that then selected version to the can't downgrade list before the cluster was saved

rancher/rancher#32135
2021-04-14 11:44:30 -07:00
Westly Wright f50bce60c7
fix undefined check for InstanceTypes in eks node group row
also removed some unneeded else statements that were doing nothing

rancher/rancher#32057
2021-04-14 10:56:51 -07:00
Westly Wright 721eadf430
display correct subnets & security group values on eks edit
rancher/rancher#32004
2021-04-14 10:56:51 -07:00
Westly Wright 2145a8e743
fix missing node version on a new node pool for gke 2021-04-13 16:00:17 -07:00
Westly Wright 2541240ed9
node version update 2021-04-13 13:51:20 -07:00
Westly Wright 58a8260d55
fix edit sync upstream config
rancher/rancher#32060
rancher/rancher#32068
2021-04-13 11:12:46 -07:00
Westly Wright d6736d7e42
update secondary range dropdowns when subnet updates
this updates the old gke UI (for upgrades going forward) and the new v2 prvisioner UI.

rancher/rancher#27696
2021-04-12 16:47:17 -07:00
Westly Wright 575cf0c897
remove logic that auto-sets secondary range names on gke cluster
rancher/rancher#32046
2021-04-12 16:47:17 -07:00
Westly Wright cb6d89391b
ensure masterIpv4CidrBlock is required when creting priv gke cluster
rancher/rancher#32032
2021-04-12 16:47:17 -07:00
Westly Wright afcfb8fee4
location type observer should only observe locationType
to prevent reseting the region or zone when changing those params and allow users to switch locations

rancher/rancher#32044
2021-04-12 16:47:16 -07:00
Westly Wright cc723f7d5d
fix import command for gke v2 private cluster 2021-04-09 16:30:09 -07:00
Westly Wright 2b33123ade
translation help block 2021-04-09 15:21:03 -07:00
Westly Wright 657737657c
GKE V2 Provisioner
rancher/rancher#31221

initial creation of gke driver

create shared google service for v1/v2 driver

wip

all fetch methods for google to shared service

cluster/kubernetes options

ippolicy conditionals

private nodes observer so can force ipaliases true

subnetwork logic

cru-private-cluster for gke

initial values

gke node pools

default configs and service cleanup

node group changes

subnet work

hide private nodes config if not enabled

useIpAliases work

 master authorized network component

loggings

no initial master version

gke node pool fixups

input-cidr component and validation

wip - new np logic

node pool updates

fix ups from launching

edit mode changes

more edit updates

more fix ups

node pool edits

import gke

reset auto-scale

implment cloud credentials in gke v2

Cloud cred changes for gke nice to haves

imp fetch clusters

Implement Shared Subnets

cleanup

Import private cluster work and other fixes

private cluster changes

More import/register changes

Null values and node pool version changes

gke private networks warning

fixups
2021-04-09 15:03:26 -07:00
Westly Wright 075a6f49f9
Added extra logic for excluding docker cluster from edit/upgrade
k3s clusters that do not have a config should not allow editing of items on the config.
A null k3s config indicates a docker installed cluster so I've added extra logic
to check if the config exists and if it does not we don't show the manage import cluster info component.

I also added logic to the final save method in cru cluster to only show the registration step if the cluster is pending
and not a null k3s config.

rancher/rancher#30977
2021-04-07 08:50:17 -07:00
Westly Wright 31e65617c2
ensure spot instance types and instance type are set correctly eksv2
rancher/rancher#31908
2021-04-05 11:13:22 -07:00
Westly Wright 9fdea17b1a
Google GCP cloud credentials
rancher/rancher#31346
2021-03-16 15:49:25 -07:00
Westly Wright 9b6ce16bcc
Fix edit custom cluster step 2 btn state and two way bindings 2021-03-15 16:04:14 -07:00
Westly Wright 6e4dde97f5
change post save logic for custom clusters to be able to have postsave 2021-03-15 15:42:28 -07:00
Westly Wright 444937a4aa
Refactor logic for showing CustomCommand and ImportCommand 4 env var
Since the env vars have to be saved on a cluster there is no easy way of dynamically updating the cluster command without trying to split the string and do all kinds of nasty things.
I refactored the logic for when we show the command for both Custom and Import clusters until after the cluster has been saved. This ensures the user is required to save the cluster before fetching the command on an edit action

rancher/rancher#31529
2021-03-15 14:48:14 -07:00
Cody Jackson bd43d8d63a Updating the verbiage of the vsphere out-of-tree messaging 2021-03-03 11:39:31 -07:00
Westly Wright 059aa1a08f
Merge pull request #4481 from codyrancher/envvar-k3s
Switching over to having the envVars just be keyValues
2021-03-01 18:12:53 -07:00