Commit Graph

517 Commits

Author SHA1 Message Date
Westly Wright bc90e0b936
Sync from clean source
rancher/rancher#29170
2020-09-26 09:26:42 -07:00
Westly Wright 1128d2be61
add extra version upgrade logic for eks v2
Cluster version can only deviate from node group versions by 1, so if any node group version is more than 1 behind the cluster can not upgrade until the node groups upgrade
New node groups should version set to that of the cluster not the other node groups

rancher/rancher#28968
rancher/rancher#29166
2020-09-25 16:06:19 -07:00
Westly Wright 5c9bd91cb4
Rework node group upgrade ux
This makes the node group upgrade ux closer to the ux of AWS console.
Removes the node group version select, replaces with a radio.
Adds logic to set the new nodegroup version on edit to the version of other nodegroups
Adds logic to prevent node group version upgrade when cluster version is being upgraded.

rancher/rancher#28965
rancher/rancher#28966
rancher/rancher#28968
2020-09-24 12:06:03 -07:00
Cody Jackson 4a8e45e1ce Fixing tags
- The entire tag collection needs to be sent if it changed
- I noticed that when editing a tag key each letter was added so I resolved that as well

rancher/rancher#28949
2020-09-18 12:49:44 -07:00
Denise d0597645ba
Merge pull request #4161 from westlywright/feature.eksv2.syncing
EKS V2 Clusters Syncing & Save
2020-09-13 21:01:06 -07:00
Denise Schannon 78d99c73ac AKS only works with lowercase "calico" 2020-09-11 20:34:30 -07:00
Westly Wright 79c00cf7d7
Rework for new requirements that node groups need the entire object. 2020-09-11 16:13:41 -07:00
Westly Wright 42a8ce7cad
EKS cluster new can no longer have null values 2020-09-11 13:46:37 -07:00
Westly Wright 2e3d110ea6
Update cluster save to handle eks v2 sync
also makes eks v2 node group names uneditable

rancher/rancher#28541
2020-09-11 09:20:01 -07:00
Westly Wright 0d75d59d31
Generalize error handling for kms keys
rancher/rancher#28734
2020-09-04 09:46:29 -07:00
Westly Wright eb2d758317
Merge pull request #3953 from jrosinsk/populate-with-dynamic-values
Populate OKE cluster creation values dynamically
2020-08-31 10:32:51 -07:00
Westly Wright 1d8f3f3ef9
eks v2 set nodeGroup version number on create
rancher/rancher#28604
2020-08-28 13:54:37 -07:00
jrosinsk e90e552ecd Populating with dynamic values 2020-08-28 11:50:52 -07:00
Cody Jackson 20f62cda59 Fixing GKE cluster edit
A guard was implemented incorrectly, it wasn't appropriately handling
the case where oauthScopes were empty.

rancher/rancher#28555
2020-08-25 16:19:03 -07:00
jesse.millan d5be675ccb
Update static regions, versions, etc. in OCI and OKE drivers. 2020-08-20 15:43:43 -07:00
Westly Wright 4925f54ef7
Expose node group versions on eks v2 node groups
adds both tooltip warning on cluster row and alert warning on cluster dashboard

version can only be updated on edit when cluster version is different from node group version
all other times we set the node group version to the clusters version

rancher/rancher#28335
2020-08-14 16:38:02 -07:00
Westly Wright 1e28833ac5
Add helper text to public/private access
rancher/rancher#28369
2020-08-14 10:46:42 -07:00
Westly Wright 01d591b36f
Add labels for network access to eks v2
rancher/rancher#28361
2020-08-14 10:21:00 -07:00
Westly Wright 9b028ff162
eks v2 new mode show sgs from config
rancher/rancher#28192
2020-08-10 11:55:30 -07:00
Westly Wright 2db7e67d47
watch cloud creds array for changes
rancher/rancher#28174
2020-07-30 15:15:52 -07:00
Westly Wright 010f8a9e74
Always use eksStatus for security groups
rancher/rancher#28148
2020-07-30 10:05:05 -07:00
Westly Wright 4886ac772d
Add check for 2 or more subnets eks v2 2020-07-30 09:04:44 -07:00
Westly Wright b5ff741468
fix eks v2 security groups not showing on edit 2020-07-29 14:43:04 -07:00
Westly Wright a89310e801
lint 2020-07-29 14:24:30 -07:00
Westly Wright c81f0ac7b5
update eks v2 node group defaults
rancher/rancher#28127
2020-07-29 14:21:39 -07:00
Westly Wright 9cbece82e5
update eks v2 subnets path
rancher/rancher#28148
2020-07-29 14:15:48 -07:00
Westly Wright 9037dba2bf
Ensure publicAccessEndpoint is initialized correctly
also fixes a import issue with cloud creds for amazon eks

rancher/rancher#28117
2020-07-29 10:52:21 -07:00
Cody Jackson 0e1e84daea Switching from min value to default value for upgradeStrategy timeout
Turns out that the min value that the backend accepts won't allow
upgrades to complete. This switches the value to the default value to
mitigate that issue.

rancher/rancher#27333
2020-07-27 17:28:50 -07:00
Westly Wright fdcf7c839f
small bug fixes for eks v2 kms keys 2020-07-24 16:56:52 -07:00
Westly Wright 2af9fba016
Merge pull request #4093 from codyrancher/timeout-min-value
[forwardport] Ensure that the upgradeStrategy.nodeDrainInput.timeout doesn't exceed the min value
2020-07-24 16:21:51 -07:00
Cody Jackson d5336bc20c Ensure that the upgradeStrategy.nodeDrainInput.timeout doesn't exceed the min value
rancher/rancher#27333
2020-07-24 16:01:21 -07:00
Westly Wright af16527ff9
Exposes edit for RKE2 imported clusters 2020-07-23 10:24:31 -07:00
Westly Wright 3d13864e53
Amazon EKS V2
error handler

wip - dev for aws cloud creds

wip - refactor aws login

wip - kms key

wip - encrypt secrets

wip - private access & vpcs

wip - translations and formatting

wip - more cleanup

remove unneeded code

wip - node groups

add ability to disable value label

fix double import, fix double negative disable add button and expose
addbuttonenabled

clean up public access and node groups

cleanup variable names and default config

eks regions

wip - eks v2 select

differentiate v1/2 amazon eks providers

clean up node groups, translations

unionize top errors

Consolidate aws util statics

WIP - Import/Cloud Creds

tweak cloud cred events for eks driver

WIP new import selector

drop unneeded variables eks import

kms keys cleanup

allow user to enter if the kms keys call fails

firefox styles

drop vpc selection and group subnets by vpcs

import cluster name input if allClusters fails to load from eks

make eks import a bit more dynamic

fix bug in driver eks for default subnet

more imported cleanup

eks v2 edit

eks v2 vendors

remove use cloud creds temp branchs

push current version to version choices if it doesnt exist

eks v2 rename cloudcred param

fix eks v2 versions

clean up for pr
2020-07-22 16:09:14 -07:00
Cody Jackson 23da8e8b17 Adding a selected cis profile to the profile options if it's not present
When upgrading rancher the old 1.4 cis profiles were removed which prevented
the currently selected profile for scheduled scans to be selected.

This adds a selected profile to the options if it's not present allowing the
profile to be selected by default. If a different profile is selected and saved
the option will no longer be present. This option will also not be present in
the manual run scan modal.

rancher/rancher#27867
rancher/rancher#27866
rancher/rancher#27374
2020-07-20 15:25:56 -07:00
Westly Wright 102da8cf0d
check for missing cluster template
rancher/rancher#26865
2020-06-24 14:22:22 -07:00
Westly Wright d1f5061ac1
lint 2020-06-24 14:22:22 -07:00
Westly Wright a986c84bc5
update excluded children keys
adds `extraArgs` cameled string to list since they can come back from the api
this way

rancher/rancher#26469
2020-06-23 09:56:34 -07:00
Jesse Millan acd682cf88
A tenancy should be a valid compartment since it is technically the root compartment. Resolves kontainer-engine-driver-oke/issues/13. 2020-06-11 11:14:37 -07:00
Westly Wright 9c729e701a
Merge pull request #3997 from codyrancher/drainage
Splitting up aggressive drain parameters
2020-05-28 10:31:33 -07:00
loganhz a859b0547d Use external UI for Aliyun ACK cluster 2020-05-27 22:49:26 +08:00
Cody Jackson 27c3ace324 Splitting up agressive drain parameters
We no longer have safe and aggressive nodes we now
have two properties 'force' and 'deleteLocalData'.

rancher/rancher#27111
2020-05-26 13:11:22 -07:00
GGGitBoy 882bbe12bc Add k8s version for TKE 2020-05-22 13:13:36 +08:00
Cody Jackson 4be1b9c1c8 Make the default scheduledClusterScan.enabled to be a boolean
Enabled was being set to 'false' instead of false but this was being
masked by the execution of initScheduledClusterScan. When the
KDM values werent present initScheduledClusterScan was doing
an early exit and no longer masking the poor 'false' default value.

This will further improve the earlier solution for rancher/rancher#26996.
2020-05-20 14:03:13 -07:00
Cody Jackson 5ab4d108b4 Improving how we handle a failure to get a scanConfig
It appears that sometimes the cisscanconfig schema isn't present (I haven't
been able to consistently reproduce) which causes the UI to prevent the user
from saving changes to their cluster. Though I think this could be fixed
by the backend I'd like to stop the bleeding and have the UI handle this
better.

So there's two things that are here to help out.
1. I added a default value to the initial empty object just in case it never gets set
elsewhere.
2. If an exception is thrown while creating the scanConfig
we now just prevent the schedule from being set since it wouldn't work
anyway.

Either of these should allow saving to proceed.

rancher/rancher#26996
2020-05-20 09:16:12 -07:00
Westly Wright 7683fe057a
fix incorrectly cased import
rancher/rancher#26908
2020-05-19 09:21:54 -07:00
Westly Wright a3f933ed27
Prevent EKS K8s version upgrades > 1 minor version
rancher/rancher#26908
2020-05-18 11:04:45 -07:00
jesse.millan 84410805f2
Add Oracle Container Engine (OKE) as a builtin cluster driver. 2020-04-22 12:17:49 -07:00
Westly Wright f98e8763ae
change done button to cancel when user can't edit cluster
rancher/rancher#26491
2020-04-15 11:26:27 -07:00
Westly Wright c704e706e3
template error 2020-04-13 10:32:30 -07:00
Westly Wright 8bf48fa308
Add case to handle cluster temp enf on and no clust temp
rancher/rancher#26491
2020-04-13 09:59:17 -07:00