Commit Graph

419 Commits

Author SHA1 Message Date
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