Commit Graph

2424 Commits

Author SHA1 Message Date
Westly Wright 00ddd2fd88
add missing min num + replace check to input-integer 2019-12-19 16:46:42 -07:00
Westly Wright 1cb6d5b7ba
prevent unhandled error when no number sent with input
If a input without a number value was passed into the parser
e.g. 'Mi', the destructure would blowup.
2019-12-19 16:46:07 -07:00
Westly Wright 2bd95832cb
expose aks ebsEncryption param
rancher/rancher#22633
2019-12-19 15:00:18 -07:00
Westly Wright b774a2215d
Merge pull request #3647 from westlywright/bug.cluster.k8.v.downgrade
Prevent Kubernetes Version Downgrade on Edit
2019-12-18 11:01:20 -07:00
Westly Wright 768a84de61
Merge pull request #3644 from codyrancher/skipList
Give the skipList a default value if malformed
2019-12-18 09:37:10 -07:00
Westly Wright 5facec9b09
Merge pull request #3643 from codyrancher/load-async
Make the security-scan-config load for each route
2019-12-18 09:36:10 -07:00
Cody Jackson ca7c5a0cf1 Give the skipList a default value if malformed
I don't want to validate the configMap in the skipList
because a malformed configMap is the equivelant of
an empty skipList for the purposes of running a scan
and displaying what is currently being skipped.

rancher/rancher#24627
2019-12-17 17:14:11 -07:00
Cody Jackson a93febe01f Make special case for the 'running' state colorI originally changed the color in transitioning which changed thecolor elsewhere like the workload progress bars. We decided tomake the color of running an exceptional case in CIS scans since themeaning of running differs here.rancher/rancher#24440rancher/rancher#24639 2019-12-17 16:46:43 -07:00
Cody Jackson b3fd5dff55 Make the security-scan-config load for each route
The security-scan-config wasn't being reloaded when
navigating between clusters because the config map
was getting cached. This forces it to be reloaded.

rancher/rancher#24623
2019-12-17 16:35:05 -07:00
Westly Wright 9c2a73a261
Prevent downgrade k8s version on edit cluster
rancher/rancher#24071
2019-12-17 16:11:14 -07:00
Westly Wright e00f55e495
Merge pull request #3638 from westlywright/feature.cluster.mtu
Expose MTU Param
2019-12-17 09:14:52 -07:00
Vincent Fiduccia 927bebe620
Memeber[s] 2019-12-16 18:04:12 -07:00
Westly Wright e52c7064e0
Expose mtu on CNI network provider for RKE based clusters
rancher/rancher#24460
2019-12-16 17:14:35 -07:00
Westly Wright b5b646a43d
Merge pull request #3633 from loganhz/local-sc
Support creating storage class for local persistent volumes
2019-12-16 09:59:09 -07:00
Westly Wright ad723dc6a4
Merge pull request #3631 from loganhz/ingress
Fix ingress issue
2019-12-16 09:56:22 -07:00
Westly Wright f0d6854ed9
Merge pull request #3630 from loganhz/fstype
Add fsType to Storage Class Amazon EBS Disk
2019-12-16 09:55:07 -07:00
Westly Wright a93d3fd70d
Merge pull request #3628 from codyrancher/awsCloudProvider
[forwardport] Ensure awsCloudProvider presense for custom clusterawsCloudProvider w…
2019-12-16 09:53:47 -07:00
loganhz 8b892ce009 Support creating storage class for local persistent volumes
https://github.com/rancher/rancher/issues/24082
2019-12-16 17:36:04 +08:00
loganhz bff992035b Fix ingress issue
https://github.com/rancher/rancher/issues/23461
2019-12-16 15:55:48 +08:00
loganhz 6f7911cbae Add fsType to Storage Class Amazon EBS Disk
https://github.com/rancher/rancher/issues/19933
2019-12-16 15:07:38 +08:00
Cody Jackson 84d50d3aad lint:fix 2019-12-14 22:39:01 -07:00
Cody Jackson 1e7ed9488c Adding support to CIS for versioned skipping
This enables us to have separate skip lists for different versions of
CIS scans.
2019-12-14 22:08:41 -07:00
Cody Jackson 49a6a2f555 Fix running cis scan and change the color of running state
The new API required that I pass null instead of an empty array
as the skiplist if nothing is supposed to be skipped when
running a scan.

Updated the color of the running state to info instead of success
as requested.
2019-12-14 22:08:41 -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
Vincent Fiduccia 443c389fde
Merge pull request #3626 from codyrancher/cis-validate
Provide more feedback when a security config is malformed
2019-12-12 12:06:37 -07:00
Sebastiaan van Steenis d2b19066f3 Add Sao Paulo/Canada Central to EKS regions 2019-12-12 09:46:31 -08:00
Cody Jackson 91bd0498d7 Provide more feedback when a security config is malformed
We provide an error notification when the security config is malformed and
the user attempts to run a scan. We also prevent the scan from running.

We also added a default sort by 'id' on the scan detail table.

rancher/rancher#24495
rancher/rancher#24496
2019-12-11 16:42:07 -07: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 e839881110
Add pluralization to user count on delete custom global role modal
rancher/rancher#24375
2019-12-04 11:54:25 -07:00
Westly Wright d61fb855dc
Merge pull request #3602 from westlywright/grb-groups-updates
Global Role Bugs
2019-12-03 14:52:21 -07:00
Westly Wright 56305e3f18
alert global role remover how many users have role
rancher/rancher#24301
2019-12-03 11:46:30 -07:00
Cody Jackson 5126642250 Implement the list and detail views for CIS scan
This adds and implements the /c/<clusterid>/cis/scan
and /c/<clusterid>/cis/scan/detail/<scanid> routes.

rancher/rancher#20425
2019-12-02 14:45:56 -07:00
Westly Wright a7a81456b4
Feature: associate global role w/external group
rancher/rancher#23452

expose link-to new-group route

Translations change and move static property (convention)

Refactor form-global-roles

Refactor such that user and group are optional parameters. Adds
groupPrincipalId. Destructure smarter so that users are not required for the
mapper function to work. Move bindings to own init. Refactor make to recognize
groups. Translations changes.

Add cru-group-account component

This component does not actually create a group but a global-role-binding with a
groupPrincipalId instead of a userId. Perhaps cru-global-role-binding would work
but in the future this component can and probably will be adapted to create
local groups as well, so the name would fit. At that point the component could
also be refactored to work for the add user page because at that point pretty
much doing the same thing but that is not with-in the scope of this change.

Currently the componet is expected to be used with an auth provider that
supports groups which is why it does not also create the group. This should be
taken into consideration if we ever update this to work with local groups.

Translations changes.

formatting

wip

Add tab nav template only component

rename users index route -> users & add groups route

get groups from grb list and build groupPrincipal list

Add role binding to the fetched group principal

Add account-group-row component and define table row views

global role binding with group edit page

Fix transitionTo in cancel and doneSaving -> cru-group-account

translations

Add initialPrincipal param to input-identity to allow use on edit

reduce duplicate principal calls and display on groups list page

fix role links types from account-group-row

add group delete functionality

translations and bulk action fix

sort global role names in modal and row

delete GRB modal translations

move users route to security-> users, break out groups route security

remove unneeded component

Live update fixes

translation fix

fix broken link to old accounts route

remove unneeded props, angle bracket components, general cleanup

lint fixes

Change add group button

Add warning on add group for non-local auth only and translations

Remove warning from delete group modal and change translations

re-org form-global-roles display

breaks the display out into base|user-custom|additional roles
adds back in details & descriptions
fixes role ids in translations file
2019-12-02 09:40:26 -07:00
Westly Wright 904985c540
udpate aks default k8s version
rancher/rancher#24239
2019-11-25 15:22:06 -07:00
Westly Wright 5062e53a45
Fix borked jQuery targeting in input-password 2019-11-14 11:05:56 -07:00
Westly Wright 6656c6601d
Setup observed property on init rather than default to object @ boot
`templateChanged` which loads the content of what we need for a MC app was
updated to watch a new property, `editable: { selectedTemplateUrl } `. The new
property was declared on the component as a object. Observers watching a static
object and that have never been fetched do not recompute. If we set the property
on init to the object it would have been declared with then additional sets on
the watched property cause the observer to recompute.

rancher/rancher#24057
2019-11-14 10:55:44 -07:00
Westly Wright 87cd611652
Merge pull request #3513 from westlywright/fp.cr8.template.from.cluster
[Forwardport] Convert Existing Cluster to RKE Cluster Template
2019-11-13 15:25:36 -07:00
Westly Wright aa2188d8ac
pass answers to validation method for catalog apps
rancher/rancher#24084
2019-11-13 15:06:57 -07:00
Westly Wright 01df2b7f61
Fix node/pod counts that were not updating correctly
rancher/rancher#23866
rancher/rancher#24034
2019-11-11 14:24:19 -07:00
Westly Wright 3223869788
make cloud provider uneditable
rancher/rancher#24008
2019-11-08 16:17:20 -07:00
Westly Wright a905dc2c0c
network plugin not editable
rancher/rancher#23999
2019-11-08 11:01:22 -07:00
Westly Wright a6d2020265
Merge pull request #3556 from westlywright/eks.vpc.init.state
Refactor the logic backing GKE network/subnetwork selections
2019-11-08 10:53:27 -07:00
Cody Jackson 76adaf8658 Notify user of value missing from options
When using an older vsphere node template in the latest version it was
possible that a user entered value would not be a valid option. When
the value isn't a valid option the dropdown has nothing selected. To
improve the UX we now notify the user that the current value is no
longer valid and sask them to select a new value.

rancher/rancher#23920
2019-11-07 16:51:15 -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 62bee3bdf0
Merge pull request #3553 from WuJun2016/my-master
[forwardport] Too many annotations are read-only
2019-11-07 09:14:33 -07:00
Westly Wright 62e116b00d
Merge pull request #3552 from westlywright/eks.vpc.init.state
Select Correct EKS VPS & Subnet on Edit
2019-11-07 09:14:16 -07:00
wj fda89eb4aa Too many annotations are read-only
https://github.com/rancher/rancher/issues/23849
2019-11-07 13:27:03 +08: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 0bf3ed5553
Fix translations bug in searchable-select
when I removed maybe-t helper I forgot to check grouped content in the
searchable select which was still looking for a translations. Moved the
translation lookup to the component when we generate the groupedContent so we
dont run into this issue again

rancher/rancher#23946
2019-11-06 11:07:09 -07:00
Westly Wright 6ecdfbaa9b
Merge pull request #3534 from westlywright/fp.sort.issues
[Forwardport] Fix sorting on cloud credentials page
2019-11-01 09:24:37 -07:00
Westly Wright 5bc4737743
Fix sorting on cloud credentials page
While I was cleaning this up I found that groupByRef in cc this case did nothing
so I removed it. This exposed a bug in the sortable-table code where groupByRef
was coming back null but when we tried to get it, using embers getter, it would
fail because we passed a null value instead of an empty string.

Additionally I found that when using presorts we were continuously pushing into
the sort array on the component, which never gets reset, so I decided to clone
the array. We rarely use preSorts so it was never caught.

Additionally we never add/remove the descending key to our presorts so I've
added that. Without these when we pass the sort to embers sort we'd never
correctly sort any presorts based the descending flag.

rancher/rancher#23828
2019-11-01 09:14:20 -07:00
n313893254 796baf2f54 Incorrect node memory usage gauge when cluster monitoring is enabled
https://github.com/rancher/rancher/issues/23786
2019-11-01 20:18:31 +08:00
Westly Wright 9a1c05e8eb
Merge pull request #3524 from westlywright/fp.service.discovery
[forwardport] revert change to form-value-array
2019-10-31 14:37:55 -07:00
Westly Wright b21371df89
Merge pull request #3520 from codyrancher/apps
Prevent App editing from modifying state on cancel
2019-10-31 14:37:04 -07:00
Westly Wright adcfbf96bb
Merge pull request #3527 from codyrancher/one-option-fp
[forwardport] Fix FormContextualSelectArray to accept 1 option
2019-10-31 14:34:27 -07:00
Cody Jackson 8c5e2f021f Fix FormContextualSelectArray to accept 1 option
When there was only one option we the add button was disabled and
we couldn't add the one option.

This change fixes it so that we can still select the single option if
desired.

rancher/rancher#23780
2019-10-31 13:55:33 -07:00
Westly Wright 40f95e8e9c
revert change to form-value-array
rancher/rancher#23791
2019-10-31 11:11:49 -07:00
Cody Jackson 53681e397e Prevent App editing from modifying state on cancel
When editing both single and multi-cluster apps if you modified the
Template Version or the Target Projects and then cancelled it the
underlying store was still modified which then reflected those changes
on other pages like the single and multi-Cluster Apps pages.

To change this I cloned and nested the fields into a nested object named
'editable' and updated the primarySource on willSave for the relevant
targets subfield.

rancher/rancher#21228
2019-10-31 10:03:36 -07:00
Westly Wright 04c44e3f9e
Merge pull request #3519 from westlywright/fp.translation.fix
Fix Intermittent Translation Not Loading Issues
2019-10-31 09:38:15 -07:00
Westly Wright 77e1df7060
remove translation as we had localizedPrompt set true 2019-10-30 12:14:43 -07:00
Westly Wright 231c9b6f1f
remove maybe-t helpers because t has default (fallback) built in 2019-10-30 12:14:43 -07:00
Westly Wright b31279b8ca
start loading the intl lang sooner to ensure loaded b4 first render
because we did not delay the readiness of the application when loading
translations when a user hit `update-setting` route we'd render the page before
the language had finished loading. Moving the language to the before model and
in the finally of the detect phase ensures we have our language loaded before we
remove the loading state and render the main content.

rancher/rancher#23776
2019-10-30 12:14:28 -07:00
Westly Wright d98edaa785
Merge pull request #3511 from codyrancher/aks-message
Use correct AKS messaging for create cluster
2019-10-30 11:09:36 -07:00
Westly Wright 8058d3de4d
refactor form-versions logic to reduce complexity and bugs
I think the file it self may look more verbose as I've broken several of the
confusing portions into pure(ish) functions. I think this reduces the complexity
of the logic and makes it easier to read. Hopefully this will reduce the bugs
that keep cropping up.
2019-10-29 14:07:49 -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 7a956b1fa5 Use correct AKS messaging for create cluster
When creating an AKS cluster an alert with an EKS message. This
simply switches the message to use the AKS message.

rancher/rancher#23601
2019-10-29 11:56:46 -07:00
Cody Jackson cb3bb885f1 Provide better node template UX
We want to provide the owner as additional information when showing
node templates on the node templates page. We also want to make it so
that when selecting a node template the users templates will be grouped
and sorted to the top by default.

rancher/rancher#23325
2019-10-29 09:42:14 -07:00
Westly Wright 113372e524
during jquery dep warnings fix we started grabbing the wrong element
which caused some undefined errors to start sprouting up

rancher/rancher23682
2019-10-25 14:22:36 -07:00
Westly Wright 4d1b629382
Merge pull request #3503 from westlywright/fp.k8s.version.bug
[Forwardport] Select correct k8s version when changing templates
2019-10-25 09:37:47 -07:00
Westly Wright b5173c2e46
Select correct k8s version when changing templates
rancher/rancher#23682
2019-10-25 09:27:07 -07:00
loganhz c74660df31 Fix graph issue
https://github.com/rancher/rancher/issues/23654
2019-10-25 11:41:15 +08:00
Westly Wright c32e1f2d05
Merge pull request #3492 from codyrancher/fp-master-3474
[forwardport] Ensure istio member type is correct on add
2019-10-23 12:01:25 -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
Westly Wright d7d63dce4f
Merge pull request #3489 from codyrancher/array-deprecation
Deprecate array constructor usage
2019-10-23 12:00:31 -07:00
Westly Wright 0a5a355e33
Merge pull request #3486 from lvuch/lh-1015
node pools help text
2019-10-23 11:59:38 -07:00
Westly Wright 7d74adedf6
Merge pull request #3483 from codyrancher/fp-master-3475
[forwardport] Improve vsphere driver UX
2019-10-23 11:58:00 -07:00
Cody Jackson f72836ef40 Ensure istio member type is correct on add
When adding a github group to be an instio member we wanted the
appropriate Member Type to be displayed. We wanted 'Organization'
instead of 'group'.

We noticed that addAuthorizedPrincipal was being invoked with a newly
created member object instead of just passing the principal. Since
everything we could inspect code wise expected a principal instead
of a member I went ahead and just passed the principal.

rancher/rancher#23264
2019-10-22 14:46:34 -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 a5f7d63070 Deprecate array constructor usage
Invoking the constructor instead of just a method causes an error.
This resolves that error.
2019-10-22 13:36:07 -07:00
lvuch 1fa64d0c97 help text on node pools edit 22782 2019-10-21 15:33:57 -07:00
Cody Jackson 4b2c79ea3d Improve vsphere driver UX
-We now prepopulate fields as select component instead of just
free-form text fields.
-We added support for cloning from different sources.
-We also added support for custom attributes and tags.

To implement the above features we also added support for promise
based content for new-select and search-select and created a new
component contextual-select-array which provides a method for
filtering content based on previous selections.

rancher/rancher#21580
2019-10-21 13:19:14 -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 6316204696
Merge pull request #3466 from westlywright/forwardport.23478
disp k8s ver correctly when editing cluster or clone rev
2019-10-17 10:54:41 -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 ccd9d740ac
Ensure template computed prop is watching intl locale
rancher/rancher#23322
2019-10-17 10:43:38 -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 738dc981b7
Merge pull request #3440 from westlywright/forward.tolerations
[Forwardport] Display Atypical Tolerations Correctly
2019-10-10 11:04:55 -07:00
Westly Wright 57bbcaf705
Merge pull request #3438 from loganhz/catalog-max-master
[forwardport] Hide catalog items if there is no templates
2019-10-10 11:04:43 -07:00
Westly Wright cb5bf2364c
Merge pull request #3435 from westlywright/amazon.instances
[Forwardport] Add missing c5.* instance types to amazon utils
2019-10-10 11:04:35 -07:00
Westly Wright 0c7a824c28
MAINTAINENCE - Use ember getters & setters 2019-10-10 09:53:22 -07:00
Westly Wright 997313b6fc
Clean up toleration template logic to display the correct info
there are certain params that are not required by the k8s toleration api, Key
and Operator, which if excluded mean different things. See
https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ for
examples of how these two keys are used.

rancher/rancher#18605
2019-10-10 09:53:11 -07:00
loganhz d2b1382477 Hide catalog items if there is no templates 2019-10-10 11:46:27 +08:00
loganhz b7d55ba58d Fix catalog app icon issue
https://github.com/rancher/rancher/issues/23291
2019-10-10 10:56:47 +08:00
Westly Wright 849b1f6380
Add missing c5.* instance types to amazon utils
rancher/rancher#22907
2019-10-09 14:35:08 -07:00
n313893254 440916a29b Fix jquery errors 2019-10-09 16:38:11 +08:00
Westly Wright 0f85e74fec
more jquery errors 2019-10-07 16:49:01 -07:00
Westly Wright 1616b54aa4
remove other missing apis 2019-10-07 12:05:22 -07:00