Commit Graph

712 Commits

Author SHA1 Message Date
jesse.millan e5b23b1a21
Ensure latest version of k8s first and picked by default. 2021-02-19 11:55:32 -08:00
jesse.millan 9e98d480d4
Add support for custom boot volume size and setting oCPUs for flexible node shapes (OKE cluster driver). 2021-02-19 11:53:10 -08:00
Westly Wright c1badf2456
lint 2021-02-17 09:32:34 -07:00
Westly Wright 5403a4990a
Add dns options to excluded keys to camel list
rancher/rancher#31230
2021-02-16 16:07:41 -07:00
Westly Wright 509e41d448
rework the spot instance types ux
updated the spot instance to make spot instance types required along with adding a default row
during the process I also found that the nodegroups data was being reset on a failure so added some wrappers around the observer for this.

rancher/rancher#31213
rancher/rancher#31288
2021-02-12 14:45:41 -07:00
Westly Wright f4bb720d10
rke template s3 cert styles
rancher/rancher#27165
2021-02-01 15:13:16 -07:00
Westly Wright 5eeb3fa03a
lint 2021-02-01 11:07:16 -07:00
Westly Wright 7c2327e191
reset nodegroup schema when moving id/version changes
rancher/rancher#31064
2021-02-01 10:31:49 -07:00
Westly Wright 83af50577f
fix undefined check on eks v2
rancher/rancher#31048
2021-01-29 08:41:12 -07:00
Westly Wright fd074f63c0
fix editing view for eks v2 cluster that are pending
rancher/rancher#31013
2021-01-28 11:17:57 -07:00
Westly Wright 2bcdac6698
remove empty set causing broken managed node groups
rancher/rancher#31008
2021-01-28 10:29:16 -07:00
Westly Wright e56fb69396
EKS Launch Templates
rancher/rancher#30613

Initial seperation of the node instance info and group info EKS v2

Template versions

inputs enabled for eks launch templates

build files

Resource instance tags

resource template cleanup

lint fix

dont disable gpu or spot during create

launch template pr feedback

Add example user data and removal on save logic
2021-01-26 15:52:24 -07:00
Phillip Campbell 960da87b24
Bring Linode UI in tree (#4386)
* Add LKE string constants

Supersedes https://github.com/rancher/ui/pull/4298

* New cluster driver boilerplate

* Pull assets from from https://github.com/linode/ui-cluster-driver-lke

* Convert from skeleton format

* Add LKE to build_in_ui

- refactored to have the two locations match

* Replace " with '

* Translations for labels

* Language was moved to translations file

* Linter errors

* replace multiple sets with setProperties

* Move bare strings to translations

* Swap this.setProperties for ember/object's version

* Remove custom language change reactions

* remove dollar sign in favor of format-number

* Convert node pool list to a sortable table

Co-authored-by: Tamal Saha <tamal@appscode.com>
2021-01-13 11:03:02 -07:00
Westly Wright 831957bcce
Adds in one off check for secretsEncryption.customConfig
custom config has a type of `map[json]` and when we process this for the edit yaml view we can goof some of the keys in the arbitrary JSON.
specifically the `Resources` key gets dasherized and lower cased which borks  the cluster on save.

rancher/rancher#30555
2020-12-18 16:32:32 -07:00
Westly Wright f54b4f65e9
lint 2020-12-17 11:48:26 -07:00
Westly Wright c2d84f3ad9
update rotate encryption key logs for new requirements
exposes the kubeApi Secrets config enabled property which allows users to rotate keys
disable rotate action when prop is not set, we are rotating or, the cluster is transitioning

rancher/rancher#30077
2020-12-17 11:42:33 -07:00
Westly Wright 128c07e7d7
Use double bang comparitor and add provisioning to pending state eksv2
rancher/rancher#30403
2020-12-15 14:10:18 -07:00
Westly Wright ab3ccb1b49
Merge pull request #4324 from jlamillan/jlamillan/oke_auth_regions
Add static region list for (bootstrap) authentication to a subscribed…
2020-12-14 11:08:46 -07:00
Westly Wright 205f71cc8e
Update eks cluster to redirect when going from pending to active
when the cluster is private access only. similar to regular import
2020-12-09 15:02:13 -07:00
Westly Wright 69d6f04001
Revert nested comment indenting, disable comments on edit
rancher/rancher#28532
2020-12-08 10:32:25 -07:00
Westly Wright 2e7df1e169
Embed comments at the correct nesting level to prevent issues ml string
rancher/rancher#28532
2020-12-08 10:20:51 -07:00
Westly Wright f356f8df69
Expose rke ingress defaultBackend param
rancher/rancher#30272
2020-12-04 13:42:35 -07:00
Westly Wright 449fb55c81
Update import command to remove gke ref's and add banner info for eks
rancher/rancher#30337
2020-12-03 16:46:47 -07:00
Westly Wright 78ff7f8a96
EKS import cluster command only on priv true pub false
rancher/rancher#30332
2020-12-03 11:00:43 -07:00
Westly Wright 4979065793
Fix issue with non-private clusters not redirecting after save 2020-12-03 10:48:18 -07:00
Westly Wright dc8de5c435
prevent users from changing vpc/sub net choice after selected
previously we prevented users from changing the choice of standard or custom vpc which also loads the security groups, this adds the same logic back in for eks v2

rancher/rancher#30301
2020-12-02 17:05:22 -07:00
jesse.millan c2239d5c14
Add static region list for (bootstrap) authentication to a subscribed region. 2020-12-02 15:30:25 -08:00
Westly Wright 9a38d546f7
Expose Import Command for EKS v2 Clusters with Private Access
rancher/rancher#28356
2020-12-02 12:09:33 -07:00
Westly Wright 55a6f13d32
Merge pull request #4301 from westlywright/bug.windows.worker.reg
Custom Clusters Windows Command
2020-11-25 09:06:53 -07:00
Westly Wright cd22ffa9c0
Ensure windows command works in edit and modal for custom clusters
rancher/rancher#30111
2020-11-24 15:20:39 -07:00
Westly Wright 1e649553f1
clear errors and loadFailedAllClusters when refetching clusters
rancher/rancher#30065
2020-11-23 12:03:10 -07:00
Westly Wright 46fe6ccefd
EKS v2 Sg's are not required as a default is created
rancher/rancher#30083
2020-11-23 10:48:52 -07:00
Westly Wright 44e66cf8e7
Merge pull request #4261 from westlywright/feature.register.host.command
Expose cluster registration token
2020-11-12 13:54:43 -07:00
Westly Wright 5018793ce4
set lb sku after config is set so select & config have correct value
rancher/rancher#29908
2020-11-06 15:59:34 -07:00
Westly Wright b4279bcb8b
update load balancer sku to be computed to deal with empty values
for this field anything other than 'standard' is the same as 'basic'
update the ui default to basic, the UI should always send a value not empty string but for clusters created outside the ui we will display basic if not standard

rancher/rancher#29908
2020-11-06 10:14:39 -07:00
Westly Wright e530580341
aks create set default loadBalancerSku
default on the backend was change from `standard` to `""` to alievate issues with upgrading clusters that didn't have a lb sku before

rancher/rancher#29908
2020-11-05 09:30:33 -07:00
Westly Wright 4ac036aa90
rollback disabling publicAcess on eks, leave tooltip warning
rancher/rancher#29921
2020-11-04 11:53:50 -07:00
Westly Wright 89c3e308c6
Disabled EKS public access checkbox
rancher/rancher#29921
2020-11-03 15:47:14 -07:00
Westly Wright 2054ba1df6
wrap lb sku in input-or-display 2020-11-03 15:09:59 -07:00
Westly Wright a6561bd1d0
Expose loadBalancerSku on Azure AKS cluster driver
rancher/rancher#29908
2020-11-03 14:49:19 -07:00
Westly Wright f48b5c6b05
lint errors 2020-10-29 15:39:01 -07:00
Westly Wright c84090835d
Expose cluster reg token 4 cluster w/o nodes
For imported or custom clusters that never had a host register there was
never a way to get back to the registration command. This exposes a new
modal and button ont he cluster dashboard the allows the user to fetch
this command if the cluster doesn't have any nodes.

rancher/rancher#28548

Add import-command component the import command on imported clusters

this is the first step to exposing the command as an action in the modal for show command

Create CustomCommand component for modal show command

add custom input to show command modal

translations
2020-10-29 15:31:41 -07:00
Westly Wright 692fe8514e
Add catch for nullable drain status and ember upgrade errors 2020-10-22 09:34:20 -07:00
Westly Wright 8906dd18cd
gke project id not set before fetching cluster resources
this issue cropped up after a large dependency upgrade and I believe it has to do with some underlying ember changes. Basically we'd hit a race condition where we'd click next before the observer has had a chance to update the project id.
Found an additional issue where the observer on zone change would cause all the fetchs to fire again after the cluster has saved because we merge the results, I added checks to see if we'd saved as saving was already set false but we hadn't started destroying yet.

rancher/rancher#29646
2020-10-22 08:55:12 -07:00
Westly Wright d3d78e87c8
Upgrade Ember & Dependencies for LTS support >3.12
There are changes required for the ember upgrade but additional changes
for individual libs are also present. Commit has been squashed, see
individual commits if needed.

There are a bunch of HBS changes as well. These are to deal with a
couple new rules and there impact is low. The button one has bitten us a
few time so this seemed great to add IMO.

update ember 3.12.4

ember 3.13

fixes for new eslint rules

ember 3.13->3.14

ember3.14->3.16

ember3.16->3.20

3.20 lint rules

yarn upgrade

update ember-optional-feature

update deps that can go to patch versions

upgrade major versions that are possible

update ansi_up

only reset term var if we're not destroying

prevents new ember 'same computation' error

update async

upgrade dot-object

new-catalog - add set to deal with new warning
marked-down - drop call into next to ensure its called at the correct time

upgrade ember-assign

update ember-cli-clipboard

remove unused & deprecated ember-cli-release

remove unused drag-drop lib

use set on tracked prop

update ember-flatpickr && cli-test-loader

upgrade ember-href-to

update filesaver

update liquid-fire and ipaddr

upgrade jsondiffpatch

upgrade marked

upgrade semver

update xterm

Update ember-basic-dropdown

the library has changed quite a bit and no longer provides an addon for the content-item where we handling the click event to close the dropdown,
thus click events must be added manually to the items being clicked to close the dropdown.

udpate dompurify

fix page header project styles

Bump ember api store, remove npm-run-all

Autofix button types from hbs linting

this change looks large but only adds `type` button to any buttons that dont have a type, which should help to reduce weird side effects

more hbs lint changes for no-negate-condition

turned off a couple rules that could be too much to test right now
2020-10-07 16:52:22 -07:00
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
loganhz fa42674a8f Support EKS cn-northwest-1 and cn-north-1
https://github.com/rancher/rancher/issues/25613
2020-03-31 00:15:23 +08:00
Westly Wright 50ad47f34b
Remove sort versions for EKS since we control versions array
rancher/rancher#26296
2020-03-26 15:48:09 -07:00
Westly Wright f1770c2046
Merge pull request #3880 from westlywright/eks.null.subnets
EKS Empty Subnets
2020-03-26 12:34:14 -07:00
Westly Wright 5654907ae6
Merge pull request #3878 from westlywright/eks.changes
Drop EKS k8s 1.12 from versions list
2020-03-26 12:33:29 -07:00
Westly Wright b16e7a9565
set subnets to empty array if it's null until backend fix
rancher/rancher#26231
rancher/rancher#24652
2020-03-26 12:21:35 -07:00
Westly Wright 7c703e2240
Drop EKS k8s 1.12 from versions list
rancher/rancher#26281
2020-03-26 11:06:07 -07:00
Cody Jackson db586813fc Removed another case of 'true'
rancher/rancher#26245
2020-03-26 09:47:13 -07:00
Westly Wright 96e1431804
Merge pull request #3874 from westlywright/hosted.k8s.versions
Remove min k8s version check for hosted cloud provider clusters
2020-03-26 09:06:39 -07:00
Westly Wright 0b0afdcbbd
eks versions not always reversed 2020-03-25 16:55:50 -07:00
Westly Wright c17fc952e2
Remove minimum k8s version range check for Cloud Provider clusters
Adds a new service which parses version from the various cloud provider version
list. I moved this to a new service rather than use form-versions because
form-versions is already fairly complicated with how it has to deal with RKE
Templates and unknown patch versions. It was simpler, cleaner, and faster to
move the CP cluster version parsing to a service and use new select because the
versions coming down do not include unknown patch versions. Addtionally going
this route allows us to not have to test all clusters for regressions, only CP ones.

rancher/rancher#26255
2020-03-25 15:59:22 -07:00
Cody Jackson b7c75acb4f Correcting disable field for scheduledClusterScan in RKE
I converted the enabled value back to a boolean instead of it being a string
but I forgot to switch the three disabled fields to expect a boolean.

@rancher/rancher#26245
2020-03-25 14:25:26 -07:00
Westly Wright 7774a33193
set inital version correctly 2020-03-25 12:55:50 -07:00
Cody Jackson b231b34a23 Making the CIS scan enabled radio buttons function on edit
When editing a cluster the value of scheduledClusterScan.enabled comes
back as a string rather than a boolean. I just ensure the value will be a
boolean to make sure the value is displayed on the radio buttons as
expected.

rancher/rancher#26245
2020-03-25 09:32:26 -07:00
Westly Wright 931d38a44f
EKS Cluster change editable fields
rancher/rancher#26231
2020-03-24 12:31:42 -07:00
Westly Wright 46c20545de
sync of eks versions list 2020-03-24 12:31:42 -07:00
Westly Wright 8f73e90b07
prevent reloading subnets when cluster is transitioning
rancher/rancher#26208
2020-03-24 09:34:55 -07:00
Cody Jackson a5ee8d6385 Refactor scheduleScan and upgradeStrategy
The refactor was necessary to get the two to work with all aspects of
rke templates.

rancher/rancher#26149
rancher/rancher#26188
rancher/rancher#26187
2020-03-22 23:53:25 -07:00
Cody Jackson 674c242bb0 Add override support for the upgradeStrategy fields in RKE Template
rancher/rancher#26142
2020-03-20 14:06:11 -07:00
Cody Jackson 025c54df60 Ensure upgrade strategy defaults are used on an upgraded rancher
The default rancherKubernetesEngineConfig is only created for new
clusters. This now creates a default upgradeStraegy object when one
doesn't exist in rancherKubernetesEngineConfig.

rancher/rancher#25951
2020-03-16 12:50:48 -07:00
lvuch 044db7b4b0 25984 2020-03-12 14:14:16 -07:00
Westly Wright 02c256a709
remove node info on cluster edit 2020-03-12 11:52:26 -07:00
Westly Wright 651f1f3089
prevent useres from sending negative concurrency values
rancher/rancher#25982
2020-03-12 11:24:51 -07:00
Cody Jackson d7cebe4ced Use KDM to drive benchmark options and profile default
This will now allow KDM to drive what the benchmark options are and what
the default option is for profile selection given a kubernetes version.

The 'cisConfig' type is what we look up for this information.

rancher/rancher#25888
2020-03-11 16:43:54 -07:00
Westly Wright 173d89ef20
Tweak nodeForInfo getters/setters
without the value in place when the user visited this page with only one node
when we auto select the dropdown wouldn't have an initialized value.

rancher/rancher#25966
2020-03-11 16:04:55 -07:00
Cody Jackson 16f4295442 Make several small tweaks to the CIS UI
- Make table sorting work with scheduled scans
- Make the cis table fit on laptop screen
- Add an appropriate placeholder for the scheduled scans cron field

rancher/rancher#25937
rancher/rancher#25939
2020-03-11 14:50:04 -07:00
Cody Jackson ebd73129a1 Add profile column to CIS Scans page and modify cron default
rancher/rancher#25890
rancher/rancher#25933
2020-03-10 11:39:23 -07:00
Cody Jackson 850d7a5e65 Ensure drain default is recognized and maxUnavailableWorker is enabled
rancher/rancher#25732
rancher/rancher#25875
2020-03-09 12:13:41 -07:00
Westly Wright 3b4ca885d9
Drop direct value edit on args selector k3s-import
rancher/rancher#25860
2020-03-09 11:38:09 -07:00
Cody Jackson 46112ef9de Disable CIS scheduling for windows clusters
CIS scheduling isn't supported on windows clusters.

rancher/rancher#25864
2020-03-09 10:28:58 -07:00
Westly Wright 9f5430ed9d
Ensure nodelocal shows up in cluster create yaml view for rke
rancher/rancher#25811
2020-03-06 16:47:36 -07:00
Cody Jackson 79c283fd5e Resolve RKE Template issue caused by CIS
The profile helper methods were attached to the cluster model.
Unfortunately, the cluster isn't available when creating a new rke
template.

To resolve this I moved all of the cis helpers out of the cluster model
and utils and moved them into a cisHelpers service so they could be
used without access to the cluster itself.
2020-03-06 15:36:29 -07:00
Cody Jackson f58807bff1 Wired up the scheduling for cis 2020-03-06 12:16:06 -07:00
Cody Jackson 355d592051 Large refectoring of CIS to improve UX
- Added Set Alert button
  - This will set the appropriate options for cis
- Added Set Schedule button
  - This will scroll the settings into view
- Added a modal so profiles can be picked
2020-03-06 12:15:27 -07:00
Cody Jackson 940e0cd668 Add CIS scheduling to rke configuration
We wanted to make CIS scheduling configuration a part of
a cluster's RKE config.

rancher/rancher#25347
2020-03-06 12:15:27 -07:00
Westly Wright 1f42be105c
Update k3sConfig shape based on new api design
rancher/rancher#25720
2020-03-04 10:21:51 -07:00
Westly Wright 9d4fc7a3d8
Merge pull request #3784 from codyrancher/extra_args
Change the way extra_args are excluded
2020-03-04 09:32:56 -07:00
Cody Jackson d4d03a4239 Change the way extra_args are excluded
The original intent of ecluding extra_args was actually
to exclude the children of extra_args from being
removed when empty according to https://github.com/rancher/rancher/issues/24794#issuecomment-570043854.

This will now properly handle that intent while also
removing empty extra_args properties.

rancher/rancher#25612
2020-03-03 14:06:11 -07:00
Cody Jackson 392a078fc7 Use the drain property instead of inferring
Was previously using the presence of nodeDrainInput to determine
the value of drain. Drain is now a part of the backend so I'm using
that value instead of inferring.

rancher/rancher#25732
2020-03-03 10:15:08 -07:00
Cody Jackson 0e2d3ddabd Prevent default from overwriting the existing value of max_unavailable_controlplane
rancher/rancher#25670
2020-03-02 17:05:35 -07:00
Cody Jackson 53699582dc Ensure rke upgrade strategy defaults are used
Now load the rke upgrade strategy defaults and use them
appropriately after they've been loaded.

rancher/rancher#25501
2020-03-02 14:17:08 -07:00
Cody Jackson aee8a79328 Rename maxUnavailable to maxUnavailableWorker
The backend renamed maxUnavailable so we're doing the same.

rancher/rancher#25670
2020-03-02 13:46:17 -07:00
Westly Wright ee34955bee
set config field for k3s imported cluster and add k3sConfig if ! 2020-02-27 11:12:21 -07:00
Westly Wright 02b195534b
fix save action and change version to text input for MVP 2020-02-26 09:37:40 -07:00
Westly Wright c4cc97c64a
Expose node info on K3S Cluster Upgrade 2020-02-25 15:31:54 -07:00
Westly Wright 4eb82ace5b
Expose k3sConfig on k3s imported cluster edit
rancher/rancher#25401
2020-02-25 12:59:08 -07:00
Westly Wright 56b53d9eff
Merge pull request #3745 from westlywright/cluster.name
Ensure Name in Cluster Create Yaml is Used
2020-02-06 09:17:55 -07:00
Westly Wright a3f1bc996b
Fix bugs that prevent cluster cr8 when editing yaml
Adds an empty name to the cluster model creation so it isn't missing if the user
opens yaml editor and knows they should input it
Removes incorrect next usage
Adds logic to handle overriding the name in name-desc when updateYaml is called
Updates form-name-description model observer to watch the two props it actually
cares about
Fixes bug in removeEmpty util which would remove excludedKeys during filter phase

rancher/rancher#24971
2020-02-05 15:03:13 -07:00
Cody Jackson 143bbe8738 Add zero downtime upgrade options to rke driver
This required refactoring the drain modal into a reusable component
since these fields were going to be used in more than one place.

rancher/rancher#24110
2020-02-05 12:58:54 -07:00
Westly Wright 19434d8b2e
Azure aks get the latest satisfying version from versions 2020-01-24 16:54:20 -07:00
Westly Wright 78bd0811d5
Remove default k8s version value from AKS cluster
we should let the version picker choose the latest version

rancher/rancher#25100
2020-01-24 14:10:51 -07:00
Westly Wright 0519376220
drop cluster validation into next block
This ensures that all changes to the cofig via yaml are applied before
validating the cluster params.

rancher/rancher#24971
2020-01-22 14:59:55 -07:00
Westly Wright 5d589a5bb9
Merge pull request #3705 from shanewxy/yaml-create
Fixed edit as yaml in cluster options stuck on "saving"
2020-01-14 09:18:39 -07:00
Westly Wright 0579c01111
expose kube version upgrade warning on apply cluster template.
rancher/rancher#24829
2020-01-13 13:30:07 -07:00
shanewxy dac4aabf43 Fixed edit as yaml in cluster options hang saving 2020-01-06 14:35:12 +08:00
Cody Jackson a2c2fde89f Making awsCloudProvider a special case
I originally tried to fix rancher/rancher#24704 without completely
special casing. Unfortunately that lead to other issues:
rancher/rancher#24745
rancher/rancher#24794
rancher/rancher#24814

I decided to revert all of the related changes and to just special
case this one instance. Ultimately I think the removeEmpty is the
culprit but it requires backend changes in order to properly fix
and those changes are not happening right now.
2020-01-02 13:46:15 -07:00
Cody Jackson 9c30e3ac15 The great reversion of awsCloudProvider changes 2020-01-02 10:21:08 -07:00
Westly Wright 181c21a2a4
Refactor node options advanced section for custom cluster
remove unnecessary labels
refactor markup for advanced section of node options
fix indentation
changed wording on some labels

rancher/rancher#24640
2019-12-31 15:56:51 -07:00
Westly Wright a1657e0c2a
Merge pull request #3684 from westlywright/cloud.config.bug
Edit As Yaml Cloud Config Bug
2019-12-31 08:46:59 -07:00
Westly Wright 51dea873b8
add extra conditional for cloud config edit as yaml
rancher/rancher#24745
2019-12-30 16:18:40 -07:00
Westly Wright 9837f9b67b
remove display of 'edit yaml' button on step > 1 for custom cluster
rancher/rancher#24749
2019-12-30 10:50:35 -07:00
Westly Wright 1d934e0cac On create cpConfig is empty so we need to check that
rancher/rancher#24749
2019-12-27 10:45:52 -08:00
Cody Jackson fd4f567d09 Remove cloud_provider if it's not intended
We were erroneously adding cloud_provider.awsCloudProvider on
digital ocean etc due to rancher/rancher#24515.

This change assumes that the presence of
onfig.rancher_kubernetes_engine_config.cloud_provider.name
implies that the cloud_provider should be present. If that
nested field isn't present we remove cloud_provider.

rancher/rancher#24745
2019-12-23 15:51:02 -07:00
Westly Wright 2bd95832cb
expose aks ebsEncryption param
rancher/rancher#22633
2019-12-19 15:00:18 -07:00
Cody Jackson 2bbe8035b0 Ensure awsCloudProvider presense for custom clusterawsCloudProvider was being removed from custom clusters when editingthe YAML. This change ensures that the field is still present. It alsorequired modifying the removeEmpty method as it was removing fields thatwere in the excludedKeys argument.rancher/rancher#24515 2019-12-12 16:21:52 -07:00
Sebastiaan van Steenis d2b19066f3 Add Sao Paulo/Canada Central to EKS regions 2019-12-12 09:46:31 -08:00
Westly Wright 77dd844660
Ensure that correct subnet/vpc's selected on Edit
Subnets and VPC weren't being initialized correctly when editing an EKS
cluster. Also fixes some formatting issues.

rancher/rancher#23879
rancher/rancher#24481
2019-12-09 16:07:36 -07:00
Westly Wright 904985c540
udpate aks default k8s version
rancher/rancher#24239
2019-11-25 15:22:06 -07:00
Westly Wright 3399b66bc3
refactor the logic backing GKE network/subnetwork selections
While working on a ticket to provide the ability to de-select subnetworks when
using the create subnetwork option I discovered the options were all messed up
and allowed you to misconfigure yourself into a hole.

I've moved ipalias and related networks settings out of advanced becuase
depending on what you select for your subnetwork the ability to choose ipalias
and the other settings changes.

This change allows you deselect a node subnet so you can create a subnetwork
automatically.

rancher/rancher#21079
2019-11-07 14:06:12 -07:00
Westly Wright 1ea956ee07
update vpc & subnet observers to watch steps to init correctly
rancher/rancher#23879
2019-11-06 12:18:37 -07:00
Westly Wright 77e1df7060
remove translation as we had localizedPrompt set true 2019-10-30 12:14:43 -07:00
Westly Wright 66c05c2397
Merge pull request #3491 from codyrancher/fp-master-3490
[forwardport] Fix EKS cluster creation transition
2019-10-23 12:00:50 -07:00
Cody Jackson 7902a0fd62 Fix EKS cluster creation transition
After pressing the 'create' button of the EKS driver the user was being
transitioned back to step 3 (Vpc & Subnet) rather than waiting on the
final page until the save is complete and returning to the cluster page.

An observer was being triggered by the save process which subsequently
set the step back to 3. To resolve this we will only enter the branch if
there are initialized values that need to be set back to default.

rancher/rancher#23493
2019-10-22 14:16:01 -07:00
Cody Jackson 0fe6c33eb5 Improve kube version inspection on cluster edit
While editing a cluster properly support .x kube version comparisons when
filtering out cluster template revisions.

Coercing a .x version converts it to a .0 which made the revision look like
it was a kube downgrade. By making use of .satisfies when the revision
kube version ends with a '.x' we're now better able to check if the
kube version is a downgrade and filter appropriately.

rancher/rancher#23489
2019-10-21 12:21:09 -07:00
Westly Wright 1b192be926
Merge pull request #3358 from codyrancher/security-options
[WIP] Display security options when editing GKE cluster
2019-10-21 09:42:07 -07:00
Westly Wright d711b8b8bb
disp k8s ver correctly when editing cluster or clone rev
the check-override-allowed component did not know how to deal with the k8s
version question because of its tri state and how we deal with the patch version
that is an override but not really an override. I added a check to verify the
mode is view and we have the param then display param so we don't initialize the
form-version component which has logic to inject the current version into its
versions dropdown but only if we're new, editing, or cloning.

rancher/rancher#23478
rancher/rancher#23465
2019-10-17 10:48:37 -07:00
Westly Wright b24711b4e7
Merge pull request #3450 from codyrancher/aks
Add network plugin and supporting param
2019-10-17 09:55:06 -07:00
Cody Jackson ef63c2a9c6 Ensure the current Kubernetes version can display
The current kubernetes version wasn't being shown if it was no
longer a part of the supported versions when in view mode. Instead
the latest version was being displayed even if that wasn't what was
deployed. To resolve this we include the current version as one of
the choices if it's not present.

rancher/rancher#23465
2019-10-15 17:56:14 -07:00
Cody Jackson c7d26ecbce Add network plugin and supporting param
This adds the Network Plugin param as well as the PodCidr param.

rancher/rancher#22616
2019-10-15 16:06:13 -07:00
Westly Wright 94301e5fd4
Merge pull request #3411 from codyrancher/deprecation
Addressing a number of ember deprecations
2019-10-04 13:55:01 -07:00
Westly Wright bc00ac6a72
Change windows docker version for custom clusters
rancher/rancher#23219
2019-10-03 16:46:38 -07:00
Cody Jackson 6718c4886e Addressing a number of ember deprecations
- Moved from Ember.$() to importing jquery.
- Moved from fn().on() to on(fn())
- Moved from fn().observes() to observer(fn())

This got /g/clusters from 27 warnings to 5 warnings for me.
2019-10-03 10:53:36 -07:00
Westly Wright 521ed6ca09
wireup ovveride row value to form value when cloning rke template
When cloning a RKE template revision with overrides the values of the override
in the form were not reflected in the overrides section at the bottom of the
page because the alias on the question was never created.

rancher/rancher#23056
2019-09-25 13:11:51 -07:00
Westly Wright 59f7c37aca
Hide 'Custom Cluster Overrides' section when launching cluster
`Custom Cluster Overrides` was originally designed when we allowed users to
create custom overrides for items not in the UI but since that was removed the
template consumer will only ever see overrides for sections we have built in
and when launching we never display the overrides for ones with UI components.

rancher/rancher#23069
2019-09-25 10:17:42 -07:00
loganhz 5be694180d Update aks text 2019-09-25 10:28:08 +08:00
Westly Wright 63aef3fa30
change other occurrences of model.cluster.clusterTemplateRevisionId 2019-09-23 14:45:28 -07:00
Westly Wright 290a1f51f6
Attach correct value to be modified to cluster template id select
When consuming a cluster template selection of the template id from the drop
down didn't change the cluster template revision becuase the UI component was
using the readOnly value. Attached the selection to the correct value so the
action floats up (DDAU).

rancher/rancher#22977
2019-09-23 14:19:01 -07:00
Cody Jackson 3370aa9ca0 Making the cluster template revisionId saveable.
When editing a cluster that was created with cluster template
the cluster template revision couldn't be saved.

The revisionId was stored as a component member variable instead
of as a part of the model. It needed to be stored as part of the
model in order for the NewOrEdit to see the changes and save
them. I went ahead and referenced the model directly everywhere
in the component and removed the component member variable.

rancher/rancher#22920
2019-09-19 11:47:48 -07:00
Cody Jackson df754f6f8f Display security options when editing GKE cluster
We want the user to be able to see the security options that were
selected even if they can't be edited when editing the cluster.

We had to extract and infer the selected options given the oauthScopes.
It would be better if our API could more closely reflect our fields.

rancher/rancher#19070
2019-09-16 16:13:45 -07:00
Vincent Fiduccia 9621b09fb0
Don't overwrite cluster config with answers on edit (rancher/rancher#22085) 2019-09-11 01:55:41 -07:00
Vincent Fiduccia 31d51cbb37
Merge pull request #3337 from gliptak/patch-1
Add Amazon EKS 1.14
2019-09-06 12:34:43 -07:00
Gábor Lipták bb28a7aa7f
Add Amazon EKS 1.14 2019-09-06 07:45:10 -04:00
Gábor Lipták 2536b39d47
Add Bahrain/me-south-1 to EKS regions
Signed-off-by: Gábor Lipták <gliptak@gmail.com>
2019-09-04 14:20:11 -04:00
Gábor Lipták 75822c58ff
Default to m5.large for EKS 2019-09-03 14:47:55 -04:00
Vincent Fiduccia 01b07bdd9a
Fix azure required fields, rke templates option location 2019-08-30 17:49:20 -07:00
Vincent Fiduccia e5be3775ba
Merge pull request #3318 from lvuch/lh-22529
cluster template to rke template
2019-08-30 12:22:29 -07:00
lvuch 59d3ffb8d4 cluster template to rke template 2019-08-29 21:31:20 -07:00
rmweir 6c7e40477a Add ap-east-1 to eks region dropdown 2019-08-29 18:04:36 -07:00
Vincent Fiduccia 17737e4ac8
Merge pull request #3311 from n313893254/22500
[AKS] Fix network mode display wrong when editing
2019-08-29 09:46:25 -07:00
Vincent Fiduccia e779e3e662
Spelling 2019-08-29 09:45:55 -07:00
Vincent Fiduccia c94b947ed2
Spelling 2019-08-29 09:45:28 -07:00
Vincent Fiduccia eeb6fd8a34
Merge pull request #3303 from loganhz/win
[2.3.0]Disable Windows in k8s 1.14
2019-08-29 09:16:54 -07:00
n313893254 daf848e82c [AKS] Fix network mode display wrong when edit
https://github.com/rancher/rancher/issues/22500
2019-08-29 15:42:58 +08:00
Vincent Fiduccia 44a34702b0
Merge pull request #3289 from n313893254/22137
[TKE] Add diskConfigSet and fix subnetId
2019-08-27 13:12:33 -07:00
loganhz 86096ee6bc Windows 2019-08-27 18:21:40 +08:00
n313893254 05758d273b Template Lint 2019-08-23 16:58:25 +08:00