Commit Graph

2808 Commits

Author SHA1 Message Date
Westly Wright a53c885cbd
only count rancher launch template if matching version
rancher/rancher#31279
2021-02-12 14:45:41 -07:00
Westly Wright 6b3cc56ab6
swap schedule once for later to ensure that the area is inited
rancher/rancher#31197
2021-02-12 14:45: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 a57342b542
Ensure correct launch template name is selected
rancher/rancher#31205
2021-02-10 11:08:17 -07:00
Westly Wright 235784a91e
ensure textarea-autogrow grows when component is loaded
rancher/rancher#31197
2021-02-09 11:55:22 -07:00
Westly Wright eb7c7ab06d
node group doesn't have sshKey it has ec2SshKey
rancher/rancher#31191
2021-02-09 11:32:21 -07:00
Westly Wright a2dc6b4aef
create computed for launchTemplate.version
since the property has to be an int and the select component doesn't work with anything but strings

rancher/rancher#31190
2021-02-09 09:36:01 -07:00
Westly Wright 227f73c290
Template version was not correct scalar type
prevented the correct choice from being selected on init.

rancher/rancher#31146
2021-02-08 11:29:15 -07:00
Westly Wright 111147249e
node template engineInstallUrl should have been none
rancher/rancher#30895
2021-02-05 13:43:36 -07:00
Westly Wright 90207a737a
Merge pull request #4424 from westlywright/feature.ui.index.setting
expose ui-offline-preferred and dashboard-index
2021-02-04 16:40:41 -07:00
Westly Wright c20b479d9a
expose ui-offline-preferred and dashboard-index
ui-offline-preferred affects the ui-index so there is no reason to not expose it as well
2021-02-04 16:29:14 -07:00
Westly Wright 42283f1d62
Merge pull request #4422 from westlywright/feature.nt.docker.none
Docker Install URL Options
2021-02-04 15:22:38 -07:00
Westly Wright aff49e2e21
add 'None' option to docker install url for node templates
rancher/rancher#30895
2021-02-04 15:15:16 -07:00
Westly Wright 60b23cf4f6
custom cluster command set etcd/cp false if windows
windows nodes can only be workers, if a user switches to windows and has cp or etcd set we need to set it to false

rancher/rancher#30903
2021-02-04 14:19:50 -07:00
Westly Wright fc1b8c1e92
show admin warning for non-eks imports
rancher/rancher#30904
2021-02-04 13:33:33 -07:00
Westly Wright 5caabc7f38
Don't overwrite node group details to defaults when cycling lts
these details are not loaded from EKS

rancher/rancher#31078
2021-02-01 15:59:06 -07:00
Westly Wright f0ab4fa7f5
handle spot instance type coming in from eks launch template
rancher/rancher#31077
2021-02-01 15:42:14 -07:00
Westly Wright f4bb720d10
rke template s3 cert styles
rancher/rancher#27165
2021-02-01 15:13:16 -07:00
Westly Wright 104ace4ed3
fix show eks cluster warning when displaying import command modal
rancher/rancher#30904
2021-02-01 15:13:16 -07:00
Westly Wright 5eeb3fa03a
lint 2021-02-01 11:07:16 -07:00
Westly Wright 3cc8f63176
fix create/edit mode lt select of node group row
rancher/rancher#31063
2021-02-01 10:46:09 -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 495a596eb1
when requesting spot instances you can not include instance type
rancher/rancher#31049
2021-01-29 09:19:34 -07:00
Westly Wright 83af50577f
fix undefined check on eks v2
rancher/rancher#31048
2021-01-29 08:41:12 -07:00
Westly Wright 02e6230e5f
incorrect editing state for user data
rancher/rancher#30613
2021-01-28 11:26:00 -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 95a952da0f
Add AMI help block to eks v2
rancher/rancher#31032
2021-01-28 10:40:40 -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
Westly Wright 9e232e3a1d
Merge pull request #4391 from phillc/master
Gray out scheduler status for linode lke
2021-01-22 09:34:03 -07:00
Westly Wright 0a21492be7
ensure xterm fit is only called after term is in dom
reorder the calls a little
use the component method for fit instead of accessing directly in the initial load
wrap fits in next to ensure the modal is rendered before fiting

rancher/rancher#30402
2021-01-20 10:21:46 -07:00
phillc 2151100867
Gray out scheduler status for linode lke 2021-01-15 09:00:29 -05:00
pajuga eb1abb00f0
Cloud credentials support and UI built in implementation for phoenixNAP node driver (#4380)
* Cloud credentials support for phoenixNAP driver.

* space added

* code formatting

* init function removed, name param removed from the arrays that populate
dropdowns

Co-authored-by: pavlej <pavlej@NSDT-PAVLEJ.ccbill-hq.local>
2021-01-13 12:57:13 -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 98d3c32c9d
Merge pull request #4376 from westlywright/bug.arb.json.check
Edit As Yaml Resources Key Name Bug
2020-12-18 17:38:12 -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 349e9f997e
drop eks 1.14 which was deprecated Dec 2020
rancher/rancher#30518
2020-12-17 13:37:33 -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 09b3702baf
Merge pull request #4364 from westlywright/bug.monitoring.v1.upgrade
Monitoring V1 Upgrade Bug
2020-12-15 15:10:27 -07:00
Westly Wright fda68dd848
add projectId to monitoring v1 upgrade calls
rancher/rancher#30455
2020-12-15 14:59:25 -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 7ab3e1e154
Add explicit exclusion of cattle cluster agent label
rancher/rancher#30445
2020-12-14 10:54:05 -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 6454ce96f7
Merge pull request #4343 from westlywright/bug.import.save.cancel
Missing Save/Cancel Buttons Imported Cluster
2020-12-07 08:45:54 -07:00
Westly Wright b638abab62
Handle HA Local cluster provider 'imported' as import
rancher/rancher#30354
2020-12-04 14:39:18 -07:00
Westly Wright f356f8df69
Expose rke ingress defaultBackend param
rancher/rancher#30272
2020-12-04 13:42:35 -07:00
Westly Wright e676ce806f
send cluster id instead of cluster name
rancher/rancher#29774
2020-12-04 10:23:53 -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 bf8f5071b5
Add conditions list to PVC detail page
rancher/rancher#30319
2020-12-03 11: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
Cody Jackson 9a4a58d1b8 Fixing azure k8s version dropdown from breaking when selecing uae-central
When selecting UAE central parseCloudProviderVersionChoices was returning 2 undefined elements which then broke the dropdown. It seemed that parseCloudProviderVersionChoices should only return valid choices so I filtered out falsey values.

rancher/dashboard#28341
2020-11-30 11:41:56 -07:00
Westly Wright cc83938284
Update PV and PVC pages to allow volume expansion
rancher/rancher#27746
2020-11-30 09:31:52 -07:00
Westly Wright c5d18a650c
Add clusterName qp to fetchTemplate call
in order to get a fresh version list of compat k8s version for this cluster
2020-11-25 11:30:21 -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 276d9e2fda
fix undefined in error message
rancher/rancher#29104
2020-11-23 11:31:55 -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 bdb8530f4d
fix new eksv2 nodegroup creating flag logic for new ng on edit
check to see if we have a ng in the upstream spec with the matching name, if not its new.

rancher/rancher#29431
2020-11-23 10:17:59 -07:00
Cody Jackson 2bcef688c0 Adding uaecentral and uaenorth to aks regions
rancher/rancher#28341
2020-11-19 12:05:05 -07:00
Westly Wright 23fb79245e
Merge pull request #4265 from westlywright/bug.exit.container.shell
Send exit to container exec on close of container-shell
2020-11-12 13:56:01 -07:00
Westly Wright 3a463377d7
Merge pull request #4263 from westlywright/feature.2.node.delete.warning
2 ETCD Node Delete Warning
2020-11-12 13:55:15 -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 73ecfcba8c
Send exit to container on close of container-shell
Rather than add a warning the user needs to exit I've added a send to the socket for `exit\r\n` to disconnect the process before the socket closes

rancher/rancher#16192
2020-10-30 12:21:17 -07:00
Westly Wright 823117606b
template format 2020-10-30 10:35:04 -07:00
Westly Wright 7a278f31fc
show warning when deleting node from 2 node etcd cluster
rancher/rancher#29665
2020-10-30 10:32:09 -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 5ab5beb2e5
change volatile computed property to native getter
volatile was deprecated, during the ember 3.12 -> 3.20 upgrade the headers computed property was incorrectly changed to a regular computed property when it should have actually been converted to a native getter as this property is not intended to be tracked.

rancher/rancher#29751
2020-10-28 09:20:47 -07:00
Westly Wright 77d6d3bee7
check for correct destroy prop 2020-10-22 16:53:16 -07:00
Westly Wright b8ae49352b
hide local cluster from header & global clusters list if hide local true
if the new setting hide-local-cluster exists and is true we will hide the local cluster in the UI. this doesnt prevent api access.
additionally if the setting is true and a user attempts to navigate directly to a cluster or project route we will redirect them to the authenticated index route which redirects to global admin.

rancher/rancher#29325
2020-10-22 16:04:31 -07:00
Westly Wright 0abb2bdb4e
fix broken azure cloud provider inputs 2020-10-22 13:16:50 -07:00
Westly Wright e227ba4e6e
Fix selecting cloud provider logic
rancher/rancher#29685
2020-10-22 11:42:37 -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
n313893254 5af4c4668a Synchronize logging form to file
https://github.com/rancher/rancher/issues/29562
2020-10-16 16:04:14 +08:00
Westly Wright 790231ff80
remove conflicting close action on page-header-project
when i ugpraded ember basic dropdown the mechanism we previously used to close the dropdown on click was removed and as a result I added the recommended method closing the dropdown.
the problem was that page-header-project and hover-drowndown worktogether to close the dropdown as well and the conflict was causing a full page refresh due to the close method.
ive dropped the conflicting action and instead moved the close logic to hover dropdown in the routeWillChange method since its knows its context in regards to the dropdown.
at this point the `a` in page header project will have been magically clicked and the component is done with publicDropDownApi so it can be set null.
2020-10-15 11:23:54 -07:00
Jacob Payne bb50346b97 added 1.18 and 1.14 eks versions 2020-10-13 17:46:04 -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 362f9ced32
fix incorrect comparison operator for no worker role check
rancher/rancher#28758
2020-09-26 13:13:10 -07:00
Westly Wright 0701ece406
fix external cloud provider options
drop empty awsCloudProvider config and empty config answers

rancher/rancher#26118
2020-09-26 12:01:36 -07:00
Westly Wright 742301f7b3
Default new node pools to worker role, set node pool w/o role to worker
rancher/rancher#28758
2020-09-26 11:14:33 -07:00
Westly Wright 35eb211d8d
update connecting styles for modal shell
rancher/rancher#28569
2020-09-26 09:47:52 -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