Commit Graph

713 Commits

Author SHA1 Message Date
Vincent Fiduccia 10633c7820
Merge pull request #4711 from vincent99/master
Send cluster resourceLocation
2021-07-14 11:56:32 -07:00
Vincent Fiduccia d002210431
Merge pull request #4704 from Charliekenney23/fix-lke-k8sversion-input
default to latest LKE version
2021-07-14 11:32:18 -07:00
Vincent Fiduccia d924a9d286
Send cluster resourceLocation (rancher/rancher#33540) 2021-07-14 10:10:52 -07:00
Cody Jackson 467b893001 Now just choose region/zone based on location type instead of preferring region over zone
Region is set by default so it was getting chosen over zone even when zone was set.

https://github.com/rancher/rancher/issues/33527#issuecomment-878476927
2021-07-12 13:46:00 -07:00
Charles Kenney 472df9e11d
default to latest LKE version 2021-07-08 19:04:12 -04:00
codyrancher ea36d73a76
Merge pull request #4700 from codyrancher/gke-versions-region
Making use of region instead of zone while querying meta/gkeVersion when available
2021-07-07 20:50:26 -07:00
Cody Jackson c9d4eebac0 Making gkev1 use the region parameter instead of the zone parameter when availavble
rancher/rancher#33527
2021-07-07 20:31:57 -07:00
Colleen Murphy 45172a4574 Fix EKS cluster ID string case 2021-07-03 11:10:58 -07:00
Westly Wright 195253ba26
allow users to enable aks monitoring on edit
rancher/rancher#33239
2021-07-01 15:29:48 -07:00
Westly Wright ba03b7f0c6
Add cluster id to aws request handler and populate on edit eksv2 (#4687) 2021-06-30 14:56:35 -07:00
Westly Wright a8d3438b26
reimplement ui validation for gke v2 network policy
rancher/rancher#32998
2021-06-24 11:42:28 -07:00
Westly Wright 556bdce127
Add warning when importing a cluster without RBAC enabled
rancher/rancher#33307
2021-06-22 16:13:28 -07:00
Westly Wright 5dc0e43b25
Update Ember 3.24
This puts back the fixes from the revert with the exception of ember-concurrency
Something in the internals of this is breaking when we iframe into the vue dashboard.
Reverting this particular change fixes it. Since this was not a required change but a nicety I've decided to revert until I have more time to investigate.
2021-06-21 10:48:45 -07:00
Westly Wright 29103e4f2f
Revert "Ember LTS and Dependency Upgrades" 2021-06-18 12:46:15 -07:00
Westly Wright 0e13142a39
Merge pull request #4673 from westlywright/bug.aks.edit.monitoring
AKS v2 Monitoring Change
2021-06-18 08:37:12 -07:00
Westly Wright 90742bf501
Merge pull request #4672 from westlywright/upgrade.3.24.lts
Ember LTS and Dependency Upgrades
2021-06-18 08:36:54 -07:00
jrosinsk 4a4d2c3378 Add support for KMS key encryption during cluster creation 2021-06-17 17:03:32 -07:00
Westly Wright 1019d5081a
Make monitoring & monitoring related fields uneditable
moved monitoring options to the cluster options section

rancher/rancher#33239
rancher/rancher#33240
2021-06-17 16:24:09 -07:00
Westly Wright 1feb2118a7
v3.20.2...v3.21.2
v3.21.2...v3.24.0

update node 10 -> 12 lts

audit updates

hide link-to-external when switching scopes

this action causes the route info to be unavailable to the current route lookup before we transition out of the alert lib
2021-06-17 15:53:11 -07:00
Westly Wright e2853f03a5
aksv2 expose monitoring
rancher/rancher#33142
2021-06-11 11:10:50 -07:00
Westly Wright 7b53e254b9
add post save check to edit import cluster
we still randomly would hit a case where the cluster was active post save, checking if we're post save will ensure the cluster shows the command all the time.

rancher/rancher#33136
2021-06-10 15:32:47 -07:00
Westly Wright 16c57480a7
Merge pull request #4660 from westlywright/enhc.aks.optional.tenantid
Support Azure Cloud Cred with or without tenant id
2021-06-09 16:28:27 -07:00
Westly Wright 923412caa1
Support Azure Cloud Cred with or without tenant id
rancher/rancher#33097
2021-06-09 16:07:50 -07:00
Westly Wright 02828a4fd3
fix aks np autoscaling bugs when enabled -> disabled
rancher/rancher#33049
2021-06-09 11:31:00 -07:00
Westly Wright e55bc484ac
allow empty values aks v2 tags
rancher/rancher#33017
2021-06-08 13:54:17 -07:00
Westly Wright ee58a2a318
Expose PNI for EKS v2
rancher/rancher#33028
2021-06-08 11:59:25 -07:00
Westly Wright 3ce905835a
Expose PNI for ASK v2 and AKS v2 Import
rancher/rancher#33027
2021-06-08 11:41:52 -07:00
Westly Wright fc99c0cc97
Expose PNI for GKE clusters
rancher/rancher#33026
2021-06-08 11:03:50 -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 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
Cody Jackson e4192880e6 Fixing how the frontend handles the bracket annotation when building cluster answers
The front end wasn't sending answers to the backend when a user set the the
privateRegistries field when using an RKE template which allowed the field to
be overriden. This was happening because we weren't handling the bracket
notation properly.

rancher/rancher#27166
2021-05-19 16:54:22 -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 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 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 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 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 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
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 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 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 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 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 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 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 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 721eadf430
display correct subnets & security group values on eks edit
rancher/rancher#32004
2021-04-14 10:56:51 -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 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 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 c96c4e1828 Switching over to having the envVars just be keyValues
After some discussions we decided to simplify things since all that's actually needed are keyValues.

I made the changes within the existing component instead of switching to keyValue to reduce risk at this stage of the release.

rancher/rancher#31545
2021-03-01 17:56:26 -07:00
Cody Jackson fa989bd394 Disabling all reference types on rke create for agentenvvar and marking variable name field as required
Since the reference types can't exist until the cluster is created I added an option to disable all reference types and use it during RKE create

Even though the backend doesn't indicate the variable name is required we're marking it as such because it casues cluster to fail. No validation will be done at this time.

rancher/rancher#31528
2021-03-01 12:45:08 -07:00
Cody Jackson 5adfae361f Adding agent env vars to import cluster
rancher/rancher#31505
2021-02-26 10:12:43 -07:00
Cody Jackson a6156fa4ed Fixing several issues with agentEnvVars
- Fixed issues with determining the provider when editing clusters that are still provisioning.
- Fixed empty values causing problems
- Fixed an issue where the default value wasn't getting set properly for configmaps and secrets when selecting the type and nothing else

https://github.com/rancher/rancher/issues/31023#issuecomment-784717552
2021-02-26 02:45:38 -07:00
Westly Wright 17c508d6b0
Merge pull request #4467 from codyrancher/agent-env-vars
Adding the agent env vars to rke drivers.
2021-02-23 13:14:43 -07:00