Commit Graph

144 Commits

Author SHA1 Message Date
Westly Wright 3a6bbe3ad3
fix node group version update check for eks clusters 2020-09-25 16:05:28 -07:00
Westly Wright 1f029206a7
sanitize eks configs when upstreamspec is empty
rancher/rancher#29163
2020-09-25 14:33:04 -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
Westly Wright fdc3fb6d9d
dont loop over empty arrays for upstream config sync
rancher/rancher#28994
2020-09-24 09:29:29 -07:00
Westly Wright 56f48e0ec0
Drop empty upstream spec error check on cluster save
rancher/rancher#28933
2020-09-23 17:23:26 -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
Cody Jackson c69a3a258d Changing the implementation of isObject.
https://github.com/rancher/rancher/issues/28541
2020-09-15 19:27:10 -07:00
Cody Jackson 1d566d5713 Correct the value of ec2SshKey to be an empty string instead of null
For some reason the local variable eksConfig is undefined when
not running locally but the value is present on 'this'. I'm attempting
to just use the eksConfig attached to 'this.

https://github.com/rancher/rancher/issues/28541#event-3770683823
2020-09-15 17:32:29 -07:00
Cody Jackson 4e247794fd Fix translation method call
rancher/rancher#28903
2020-09-14 12:54:45 -07:00
Vincent Fiduccia f9b313b0a9
Cluster save completely broken except for EKS 2020-09-14 11:06:46 -07:00
Westly Wright 1824efeb5a
lint 2020-09-11 16:55:15 -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 a924518c51
comments re: eks syncing function 2020-09-11 09:20:02 -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 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 44ceaedaef
Update cluster model param provider
backend added there own provider param so this just renames the provider to clusterProvider

rancher/rancher#28355
2020-08-14 09:55:27 -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
loganhz a859b0547d Use external UI for Aliyun ACK cluster 2020-05-27 22:49:26 +08:00
jesse.millan 84410805f2
Add Oracle Container Engine (OKE) as a builtin cluster driver. 2020-04-22 12:17:49 -07:00
loganhz d7376e21cb Display hosted k8s cluster region in cluster dashboard 2020-03-31 00:14:33 +08:00
Cody Jackson d3c0f5dfe2 Adding yet another condition to the CIS Add Schedule button
This now checks to see if there's and RKE template.
If there is an RKE template and the scheduleScanned is disabled
the button will be disabled unless there's an override available for
the scheduledClusterScan.enabled field.

rancher/rancher#26150
2020-03-21 02:17:28 -07:00
Cody Jackson 30c0a9afa0 Make CIS schedule and alert buttons disabled more in line with run scan button
rancher/rancher#25997
2020-03-17 11:28:25 -07:00
Cody Jackson 9485a3c4b4 Improve the UX of our Snapshots page
- Added a Snapshot Now button to the top of the table
- Added a Restore Snapshot option to the actions of each row which will
  select the current row when opening the modal

rancher/rancher#25511
2020-03-15 03:22:32 -07:00
Westly Wright 68b4b6406d
Enusre configName recomputes by watching driver and state
rancher/rancher#25930
2020-03-10 09:43:02 -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 9dddea78c9 Adding support for N/A state and creating a better profile 2020-03-06 12:15:27 -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
Westly Wright a9ba72a73a
Only show rotate action in tooltips and banners if exists on model
rancher/rancher#25563
2020-02-28 15:44:26 -07:00
Westly Wright d00663111f
missing labels for k3sconfig 2020-02-26 15:55:08 -07:00
Westly Wright c4cc97c64a
Expose node info on K3S Cluster Upgrade 2020-02-25 15:31:54 -07:00
Cody Jackson 93b505199c Refactor how cis scans are disabled.
This refactoring removed code duplication and
provides a more cohesive experience across all
of the pages that you can run a scan.

This will also now check and ensure the following
- there aren't running ClusterScans
- this isn't a windows cluster
- systemProject is available
- the cluster is active
- the action link is available

When the above isn't the case Run CIS Scan will not be present in
the cluster action drop downs and the Run CIS Scan but
 will be disabled on the CIS Scans and CIS Scan Detail
pages.

rancher/rancher#24759
rancher/rancher#25298
2020-02-07 12:08:28 -07:00
Cody Jackson df153f3888 Fixing Run CIS Scan on the cluster list page
Run CIS Scan was broken on the cluster list page because
currentCluster was being used instead of just using the current cluster.

I also removed the redirect and just use a growl notification to
indicate the scan is running.

rancher/rancher#25241
rancher/rancher#25159
2020-02-04 11:10:36 -07:00
Cody Jackson e6b4232390 Improve UX of CIS
Improving the UX of CIS based on the feedback that was received during
the review.

- Sort scans by date so newest will be on top.
- Details should be sorted by state in Fail, Skipped, Pass order
- Add a Run CIS Scan action to the cluster menu.
2020-02-03 10:44:01 -07:00
Westly Wright 281a922cb4
Add save as rke template action to clusters
rancher/rancher#23752
2019-10-29 13:51:31 -07:00
Cody Jackson 3bc195603b Use more appropriate keys to watch on @computed
The cluster upgrade notification wasn't properly updating when
the user enabled and disabled a revision. It required that the
page was refreshed before display the fresh data.

This resolves this issue by watching more appropriate keys
int he relevant computed properties. The most relevant
being the revision.@each.enabled on the latestRevision property.

rancher/rancher#23126
2019-09-30 14:44:56 -07:00
Cody Jackson acc6145586 Improve robustness of showing template/revision
- We will only conditionally render template/revision section on the
monitoring page if the cluster is using a template. This was
crashing the page before.
- We will now make sure there's a string when invoking replace
when generating the template and revision display names.
- We will now respect the enable flag of template revisions
when determining if an upgrade is available.

rancher/rancher#23126
2019-09-27 12:20:29 -07:00
Cody Jackson 71a7fb8d2d Include Template/Revision in cluster table
We want to make it easier for someone that is managing multiple
clusters to see what template and template revision a cluster
is using. We also want to make it easy for a user to notice
that a cluster isn't using the latest revision.

To achieve this we added the template and revision to a column
in the clusters table to display both. We also indicate add
a warning badge beside a revision when the revision isn't
the latest.

rancher/rancher#22047
2019-09-26 09:20:45 -07:00
loganhz b699be2c0b Fix undefined issues 2019-09-07 10:00:02 +08:00
Vincent Fiduccia ce07edfd98
Edit clusters using node templates you can't see (rancher/rancher#22080) 2019-08-30 14:15:24 -07:00
loganhz 6e5875ef9b Show warning for node has disk pressure 2019-08-30 19:08:59 +08:00
n313893254 4b451a2f0f Fix TKE alert and get max and min disk size from TKE 2019-08-23 16:56:11 +08:00
Westly Wright 35c250097a
revert fix i should not have put in for editing custom cluster
rancher/rancher#22080
2019-08-09 11:15:08 -07:00
Westly Wright 80fc4b6efb
Fix issue when edit cluster and no access to cluster template
rancher/rancher#21473
2019-08-07 09:29:43 -07:00
loganhz b65eee8c49 Show inactive nodes and unhealthy components in cluster list
https://github.com/rancher/rancher/issues/21933
2019-08-03 07:21:28 +08:00
loganhz 73336b817f Use windowsPreferedCluster for windows cluster 2019-08-02 06:20:26 +08:00
Westly Wright 72816be833
set rke cached config correctly when cluster launch error
rancher/rancher#21723
2019-07-23 17:15:09 -07:00
Westly Wright 31153b8e3e
Fix edit cluster with template bugs
rancher/rancher#21441
2019-07-19 15:41:56 -07:00