Commit Graph

3621 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
Cody Jackson 13eb50172b Removing naked strings that I found 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 b32ae4f491
prevent pipeline limits that aren't numbers from being saved
rancher/rancher#21608
2019-12-19 16:47:21 -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 09c785b9d7
Merge pull request #3641 from loganhz/psp
Fix psp labels issues
2019-12-17 09:15:52 -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
loganhz 78320f78de Fix psp labels issues
https://github.com/rancher/rancher/issues/24621
2019-12-17 11:07:16 +08: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 004a9286ee
Pass logging config down to logging targets for json parsing
rancher/rancher#24367
2019-12-16 11:22:26 -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 0bdfe8d031
Merge pull request #3613 from westlywright/feature.json.parse
Expose JSON Parsing in Logging Config
2019-12-10 11:59:24 -07:00
Westly Wright 02e5d286e0
Merge pull request #3619 from westlywright/edit.eks.subnet.vpc.bug
EKS VPC/Subnet Bugs
2019-12-10 09:45:22 -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 b112dcc914
remove null/undefined entries from baseRoles array
This occurs when a non-admin or user that doesn't have access to global roles
lands on the page.

rancher/rancher#24458
2019-12-09 13:50:14 -07:00
Westly Wright 80ebfb3a04
code cleanup and update to angle bracket components 2019-12-06 14:32:33 -07:00
Westly Wright 1e040aa320
Expose enableJSONParsing on logging configs (cluster&project)
rancher/rancher#24367
2019-12-06 14:18:35 -07:00
Westly Wright a2d5289e26
check for empty rules before pusing into rules array
rancher/rancher#24438
2019-12-05 14:43:44 -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 a256d4cddc
populate default roles for custom roles as well 2019-12-03 15:10:53 -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 fef26de7d4
Merge pull request #3599 from codyrancher/cis-scan
Implement the list and detail views for CIS scan
2019-12-03 14:52:04 -07:00
Westly Wright 78d23ab4d9
pass user-roles to save and add all target to resource validation
rancher/rancher#24362
2019-12-03 12:54:46 -07:00
Westly Wright 0d8d6ab28e
Refactor role permissions validator
the old permissions validating was somewhat dumb in its checking, only looking
for local names of roles. This updates the check to loop through all the roles
and fetch there rules upon which we check for the existance of certain rules and
targets.

This also includes fixes for some broken links which happened as apart of the
previous change to this area.

This also fixes a broken translation

rancher/rancher#24341
2019-12-03 11:46:34 -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
Westly Wright cbdd32f493
Add warning to global roles view when no default user role exists
rancher/rancher#24301
2019-12-03 11:46:16 -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 fcf05c3681
remove group link that doesn't work 2019-12-02 14:25:51 -07:00
Westly Wright fdac35182b
fix broken link to accounts 2019-12-02 14:17:29 -07:00
Westly Wright 24784ce409
Merge pull request #3595 from westlywright/feature.gr.auth.groups
[Feature] Associate External Group with Global Role Binding
2019-12-02 09:47:08 -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
loganhz 3c5d9029c3 Fix route error
https://github.com/rancher/rancher/issues/23370
2019-11-28 12:12:35 +08:00
Westly Wright 904985c540
udpate aks default k8s version
rancher/rancher#24239
2019-11-25 15:22:06 -07:00
Westly Wright d0a9c4179f
Fix recompute bug 2019-11-18 12:35:23 -07:00
Westly Wright 7f5debb985
Allow clone of global roles 2019-11-18 12:11:01 -07:00
Westly Wright 1ac41a98ce
Allow users to create global roles
rancher/rancher#23453
2019-11-18 10:45:14 -07:00
Westly Wright 1feaf4c1b5
Merge pull request #3584 from westlywright/mc.app.display.issues
Mc.app.display.issues
2019-11-15 09:44:13 -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 3d4b81e2d6
Merge pull request #3577 from hubert-he/master
fix ui error message never pop up
2019-11-14 09:51:38 -07:00
Cody Jackson b93e895d78 Change the messaging and default creationtype
The backend was setting the default to legacy so that the legacy
template would still work when users migrate to the latest
version of the driver. This was causing the default value to
be legacy when creating a new vsphere template. Forcing
the backend to change the default will likely lead to problems
with the migration so we're making the change on the front end.

Ultimately we use the existing set default logic if a vsphere template
is being created (as opposed to edited) instead of just when the
creation type doesn't exist or is invalid.

We also changed the text for the legacy value to be friendlier.

rancher/rancher#24060
2019-11-13 16:15:01 -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 62ef5bc39d
when upgrading mc app ensure we are using a fresh copy of mc app
rancher/rancher#24057
2019-11-13 13:08:03 -07:00
zhenhua he 106de7be6b Merge branch 'master' of github.com:hubert-he/ui 2019-11-13 14:47:17 +08:00
zhenhua he 3961b39020 error message never pop up when add user in global member page 2019-11-13 14:29:54 +08:00
Westly Wright 8c9789f82f
check answers required fields for mc app
rancher/rancher#24057
2019-11-12 16:25:14 -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 d7096f4e08
Merge pull request #3567 from codyrancher/datastore-cluster
Add datastore cluster as an option for vsphere
2019-11-11 11:47:17 -07:00
Cody Jackson 65fb8f49ab Add datastore cluster as an option for vsphere
rancher/rancher#24002
2019-11-11 11:18:24 -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 43ba4ac50b
Merge pull request #3544 from codyrancher/creation-type
[forwardport] Switch to new implementation of creationType
2019-11-06 09:40:00 -07:00
Westly Wright 07c77cc41d
rework query params for edit cluster and template revisions 2019-11-05 16:26:02 -07:00
Cody Jackson 1fd130667a Switch to new implementation of creationType
The backend has made a new implementation of creationType which allowed
me to remove the creationMethod concept and just use creationType.

This change allows us to properly populate the creation type form fields
when a user edits a vsphere nodetemplate.

rancher/rancher#23812
2019-11-04 13:33:01 -07:00
Westly Wright 443f5c6c6e
Merge pull request #3538 from westlywright/helm.wait.timeout
Expose wait and timeout on mc and regular apps
2019-11-04 11:57:03 -07:00
Cody Jackson 6c7052befd Enable unique custom attribute key selection
The keys for custom attributes needed to be unique. To enforce the
unique constraint I created the FormContextualKeyValue component.
This component behaves similarly to the FormContextualSelectArray
but handles key value pairs.

rancher/rancher#23782
2019-11-04 10:13:01 -07:00
Westly Wright da782cacc0
Expose wait and timeout on mc and regular apps
rancher/rancher#22373
2019-11-04 09:52:55 -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 1d13b4fb90
Merge pull request #3531 from loganhz/gauge-2.4
[Forwardport]Incorrect node memory usage gauge when cluster monitoring is enabled
2019-11-01 09:23:12 -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
Cody Jackson a39189f0f4 Repair vsphere node template editing
When editing a vsphere node template that used a RancherOS ISO
creation method it crashed the page due to an array not existing.

I also noticed that the tags, custom attributes and networks weren't
loading when editing so I resolved those issues too.

rancher/rancher#23796
2019-10-31 16:12:41 -07: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