Commit Graph

199 Commits

Author SHA1 Message Date
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 10ea146135
ensure eksconfig display name always matches cluster name
rancher/rancher#29353
2020-10-14 15:00:52 -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 9ea6d2e86f
fix node group check 2020-09-27 12:51:14 -07:00
Westly Wright b5d836ee06
use semver for compare
rancher/rancher#29180
2020-09-27 11:42:26 -07:00
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
Westly Wright 8ede0b7fdf
Fix backup config target with ui defined override question
rancher/rancher#21510
2019-07-19 09:23:48 -07:00
Westly Wright 2a66489f83
New cluster launch page
Refactor and decouple launch cluster

adds new routes for selecting cluster, selecting cluter template, and launching
cluster

Add first version of cluster template selection logic

WIP - First version of cluter-template resource pages & components

cluster template index

adds cru-cluster-template

save cluster template and cluster template revision

refactor rke cluster driver and add rke cluster driver to clust temp

add cluster template revision page

template revision changes

more questions

refactor cluster networking into component

cluster template questions components

first itteration of working add question

fixups for ct and ctr's

general fixes

quick revision select on new revision page

Move name, expose ctr name, move ctr source

Refactor ct/ctr table to use grouped form

share member added

single template no revisions rows

translations

translation changes

css toggle

css toggle on all elements

inline override

initial apply cluster template

initial show or lock when applying a cluster template

validation bug

first run at windows support overrides

abstract check override with component that yields

add check for override to most sections

bulk remove cluster template revision

more check override

handle errors better for ctrs

translations

bugs

add toggle to azure cloud provider

auth endpoint fix

computed override check and refactor

fixup question override inputs

remove cluster launch route

review fixups

cluster edit

fixup alias properties for overrides
2019-07-08 14:45:44 -07:00
Westly Wright c0dd017650
use moment built in from now dropdown flavor text 2019-07-01 15:26:29 -07:00
Westly Wright b223ee55a7
Refactor translations, fixes for <1day, expired certs, js err, color, 2019-06-28 17:36:40 -06:00
Westly Wright 530845a91a
Add ui warning about expiring certificates 2019-06-28 15:07:23 -06:00
Westly Wright b6bca4696d
Choose the correct provider and pass to cru-cluster for edit select 2019-05-21 12:10:52 -07:00
loganhz 8fb249ef87 Update the UX for target OS
https://github.com/rancher/rancher/issues/20119
2019-05-10 15:12:59 +08:00
Westly Wright 0f48bb3357
Merge pull request #2884 from loganhz/mon-master
[2.3]monitoring
2019-05-07 09:13:02 -07:00
loganhz f1b2e055c4 Show warning for host port with windows node 2019-05-03 16:40:32 +08:00
loganhz 6f2651e153 Windows 1809 support
https://github.com/rancher/rancher/issues/19173
2019-04-30 17:31:02 +08:00
loganhz f735ca2c2f Disable btn if users don't have monitoring perm
rancher/rancher#19074
2019-04-28 13:23:48 +08:00
loganhz d77abf82c7 Improve enable monitoring status 2019-04-24 22:26:17 +08:00
n313893254 93c5ffb5ac API changed
https://github.com/rancher/rancher/issues/19197
2019-04-05 17:30:21 +08:00
Westly Wright 8a3b3cf4b2
Fix missing provider indicator for s3 backups
rancher/rancher#18457
2019-02-27 17:05:39 -07:00
Westly Wright d4c8463dfa
update cluster model prodiver to watch provider key 2019-02-27 15:39:23 -07:00
Westly Wright c81aa67ca4
Load correct external driver on edit of cluster
rancher/rancher#18406
2019-02-26 14:33:26 -07:00
loganhz 6c33d41e90 Fix AKS monitoring issue
https://github.com/rancher/rancher/issues/18014
2019-02-14 23:56:48 +08:00
Westly Wright e5ae5982ce
Provide UX feedback after backup now action is fired on cluster
rancher/rancher#17504
2019-01-25 12:02:56 -07:00
Westly Wright 663c13ccc9
Add S3 Etcd Backup & Restore API to UI
refector legacy local etcd backup & restore api to use new api

rancher/rancher#16797

Add s3backup config to rke clusters advanced options

Add 'restore from backup' action on RKE clusters

add backups list page

add cluster switching handling for backups

WIP

cleaup for review
2019-01-21 13:48:46 -07:00
Vincent Fiduccia 691ffc38e5
Switch to @rancher/ember-api-store 2019-01-10 16:44:35 -07:00
loganhz 0cb62e8180 Fix cluster auto update issue
https://github.com/rancher/rancher/issues/17333
https://github.com/rancher/rancher/issues/17335
https://github.com/rancher/rancher/issues/17334
2019-01-08 18:00:52 +08:00
Westly Wright 015b70fbf4
load service default keys from schema 2019-01-07 12:11:16 -07:00
Westly Wright 8e7582584f
Added missing params to send to rke cluster cert rotation api
rancher/rancher#16795
2019-01-04 12:27:12 -07:00
Westly Wright d9f21095ad
Add cert rotation action to clusters available actions
rancher/rancher#16795
2019-01-02 17:16:26 -07:00
loganhz 00950d11d4 Support Aliyun/Tencent/Huawe hosted k8s
rancher/rancher#16809
2018-12-05 10:29:32 +08:00
loganhz b46b1cebb3 Live metrics for cluster/node/workload/pod/container
https://github.com/rancher/rancher/issues/15703
https://github.com/rancher/rancher/issues/15705
2018-12-04 18:50:34 +08:00
Westly Wright a7dae85c2f
EKS cluster with session token now clears ak on edit
rancher/rancher#16576
2018-11-15 11:58:11 -07:00
Westly Wright 2dad09f97a
Amazon EKS session token bugs
rancher/rancher#16418
rancher/rancher#16420
rancher/rancher#16421
rancher/rancher#16423
rancher/rancher#16425
2018-11-05 12:39:04 -07:00
Westly Wright ab192c9ffe
Amazon EKS session token bugs
rancher/rancher#16420
rancher/rancher#16421
rancher/rancher#16423
rancher/rancher#16425
2018-11-05 10:38:24 -07:00
Westly Wright c04e5061ef
Add optional session token to eks config
rancher/rancher#16087
rancher/rancher#16091

add delete placeholder

Add delete logic for eks clusters and optional key

clean up can bulk remove logic for cluster

 bug fix

update translations
2018-10-18 17:02:42 -07:00
Vincent Fiduccia 93f922b92d
eslint --fix 2018-07-20 11:47:19 -07:00
Vincent Fiduccia 54725f2022
eslint --fix 2018-06-29 17:20:46 -07:00
loganhz 2f9cc109f6 Reload token
https://github.com/rancher/rancher/issues/13708
2018-06-17 09:19:25 +08:00
loganhz f2b9a572c4 Show warning on ingress page for GKE cluster 2018-05-08 23:15:50 +08:00
Vincent Fiduccia 27cb17e50b
xip.io ingress 2018-04-27 21:35:32 -07:00
Vincent Fiduccia 9f85c9abdd
Put version in language query string 2018-04-25 15:44:10 -07:00
Vincent Fiduccia 18a7fe8d65
Move edit, yaml, remove, gotoapi into central actions 2018-04-16 02:35:28 -07:00
Vincent Fiduccia ef4cf85d5b
Amazon EKS 2018-04-09 17:23:24 -07:00
Vincent Fiduccia 866a829477
Watch for cluster readiness 2018-03-30 17:37:43 -07:00
loganhz c294ccea1c Fix cluster list issue
https://github.com/rancher/rancher/issues/12038
2018-03-27 11:29:11 +08:00
loganhz 4e5fb1d61f Fix edit cluster issue
https://github.com/rancher/rancher/issues/11671
2018-03-23 16:22:48 +08:00
loganhz 6304f8de9b Fix cluster issue
https://github.com/rancher/rancher/issues/12161
2018-03-21 14:17:59 +08:00
Vincent Fiduccia ac7ffba5a0
Bugs 2018-03-01 13:07:33 -07:00
loganhz fc583a914c Fix cluster list translation issue
https://github.com/rancher/rancher/issues/11752
2018-03-01 16:49:14 +08:00
Vincent Fiduccia 6a2ab94c9a
Bugs 2018-02-27 00:33:46 -07:00