Commit Graph

2367 Commits

Author SHA1 Message Date
Cody Jackson 7de530a829 Add support for using input-yaml in modals
When adding input-yaml to a modal it required the user to click on
the input before the value would be loaded and the editor resized.
I found a github issue which suggested making use of the isVisible
property to force a refresh so I added the use of it to force refreshing
to happen.

I also made it so the header didn't add a margin if the header wasn't
present.
2019-12-20 10:48:48 -07:00
Westly Wright ecb8139b94
Merge pull request #3655 from westlywright/bug.pipeline.setup.error
Pipeline Setup Error
2019-12-20 09:10:22 -07:00
Westly Wright f9302a929f
Merge pull request #3649 from codyrancher/cis-report
Update the downloaded report
2019-12-20 09:09:23 -07:00
Cody Jackson 3fb931ee46 Update the downloaded report
The downloaded report now has:
- A column for passed_nodes
- A column for failed_nodes
- A column for all nodes the test ran against
- The benchmark version in the header

rancher/rancher#24671
2019-12-19 16:52:33 -07:00
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