Commit Graph

1061 Commits

Author SHA1 Message Date
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 2ff5d28998
remove model key from computed property on model
since this is a prop on the model there is no model to watch so changes to the
watched properties never triggered an update.

rancher/rancher#24748
2020-01-23 11:45:05 -07:00
Cody Jackson 42a0c4692c Add nodes to skipped test in the csv download
We want to display the nodes the test would run on even if it was skipped.

rancher/rancher#24725
2020-01-17 10:26:49 -07:00
Westly Wright 15018997ed
add error check on default check for RKE templates 2020-01-13 13:47:54 -07:00
loganhz 662a1ed260 Fix scale issue 2020-01-11 08:43:42 +08:00
shanewxy 0e5b2905f9 Enable add labels and annotations while adding secret
https://github.com/rancher/rancher/issues/21513
2019-12-25 17:50:23 +08:00
shanewxy 480986ef54 Enable add labels and annotations while adding Config Maps 2019-12-25 17:39:29 +08:00
loganhz 91e33de002 Fix CSI plugin issue
https://github.com/rancher/rancher/issues/24665
2019-12-21 12:43:59 +08:00
Westly Wright 69429238a3
Merge pull request #3651 from westlywright/bug.binary.configmap.keys
Expose ConfigMap binaryData keys on config map pages
2019-12-20 09:10:06 -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 fc63cb1f3a
add config data to configmap that combines both data and binary data
This is only on display.

rancher/rancher#24238
2019-12-19 14:58:23 -07:00
Westly Wright 4a09b150a5
Merge pull request #3645 from ly5156/issue-24659
[UI] Fix the custom address surrounded by '*%' in registry credentials page
2019-12-18 09:40:25 -07:00
LiuYan 9b27c38f07 fix(registry-row): fix registry address col display content with '*%' if it's custom registry 2019-12-18 12:05:35 +08: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
loganhz 78320f78de Fix psp labels issues
https://github.com/rancher/rancher/issues/24621
2019-12-17 11:07:16 +08: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 067307dc56 Fix app progress bar issue
https://github.com/rancher/rancher/issues/24500
2019-12-10 14:28:46 +08:00
Cody Jackson 1698346518 Fix CIS detail table id sorting
This allows the id column to sort as if the ids are versions instead of
plain strings. This allows 1.1.2 to come before 1.1.10 when sorting.

rancher/rancher#24417
2019-12-05 14:50:19 -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 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 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 8c9789f82f
check answers required fields for mc app
rancher/rancher#24057
2019-11-12 16:25:14 -07:00
loganhz 802b733417 Fix the issue that cannot delete role sometimes
https://github.com/rancher/rancher/issues/23823
2019-11-01 20:32:44 +08:00
Westly Wright 281a922cb4
Add save as rke template action to clusters
rancher/rancher#23752
2019-10-29 13:51:31 -07:00
Westly Wright e8626832c0
Merge pull request #3510 from codyrancher/node-template-ux
[forwardport] Provide better node template UX
2019-10-29 10:17:05 -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
loganhz 1d8d9aee3b Fix comments 2019-10-25 10:10:27 +08:00
loganhz 2e50a798a0 Support Istio Gateway 2019-10-25 10:10:05 +08:00
Westly Wright ef002be770
Merge pull request #3432 from westlywright/feature.feature.flags
Feature Flags UI
2019-10-23 11:49:03 -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 5242a1fb7f
First run on Feature Flags ui
rancher/rancher#23184

Translation changes

Failing tests

cleanup
2019-10-17 10:15:04 -07:00
Westly Wright 1616b54aa4
remove other missing apis 2019-10-07 12:05:22 -07:00
Cody Jackson 6718c4886e Addressing a number of ember deprecations
- Moved from Ember.$() to importing jquery.
- Moved from fn().on() to on(fn())
- Moved from fn().observes() to observer(fn())

This got /g/clusters from 27 warnings to 5 warnings for me.
2019-10-03 10:53:36 -07:00
Westly Wright 7004f1e500
Merge pull request #3407 from codyrancher/cloud-credential
[2.3.2] Add # Node Templates column to cloud credentials
2019-10-02 14:01:04 -07:00
Westly Wright 0ef600f737
Merge pull request #3405 from westlywright/issue.21099
[2.3.2] Dynamically change version label on node dashboard
2019-10-02 14:00:17 -07:00
Cody Jackson 16fc847790 Fix linter warnings 2019-10-02 13:49:17 -07:00
Cody Jackson 6e1c472af6 Add # Node Templates column to cloud credentials
We want to provide a quick way to delete unused cloud credentials.
To do this we're going to show the user the number of node templates
that each cloud credential is associated with.

rancher/rancher#23064
2019-10-02 13:48:51 -07:00
Westly Wright 5f572f3674
Upgrade Ember to 3.12
Remove ember object and use regular object instead

Found durning upgrade to 3.12, I'm not sure why we'd even need to declare an
ember object for this return anyway.

Get the current cluster's id from scope servervice

Found durning upgrade to 3.12, not sure how this ever worked as I looked on live
and it was failing but the system didn't explode on 3.8. In 3.12
transistion.params is undefined and the whole system explodes. We were never
passing the queryparams so they wouldn't have come through. I changed this so we
fetched the current cluster id from the scope service and everything seems to
work correctly.

Ensure that accordion items only try to expand once during the init

Found durning upgrade to 3.12, expanded was being double rendered.

lint fix

test fixes

lint
2019-10-02 13:33:15 -07:00
Westly Wright 1c30a15ee1
general cleanup 2019-10-01 09:00:56 -07:00
Westly Wright 5fce14597a
Dynamically change version label on node dashboard for dock/contd
Checks the os info to see if its docker or container d and display the
appropriate label in each case.

rancher/rancher#21099
2019-10-01 09:00:56 -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 cc7d1bb477 Add Alibaba App Hub in catalog list 2019-09-24 11:19:07 +08:00
Cody Jackson 72a60c44ea Improve and fix supported storage filtering
Editing was failing when an existing unsupported storage type had
already been used and the ferature flag unsupported-storage-drivers
was false. Adding a volume as part of a workload was also broken
when attempting to use an unsupported storage type.

To remedy this I decided to refactor the code and make the filtering
happen explicitly only for the dropdowns.

I also decided to make feature checking reusable and either to use
by adding a service to check if a flag is enabled.

rancher/rancher#22895
rancher/rancher#22998
2019-09-20 17:13:47 -07:00