Commit Graph

4944 Commits

Author SHA1 Message Date
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 9dc1769e1c Add support for lettered suffixes when sorting
When sorting CIS scan tests by number the lettered suffixes weren't
sorting properly. This adds support for sorting numbers such as
1.1.37b.

rancher/rancher#24715
2020-01-17 13:25:51 -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
Cody Jackson e8de1d7360 Adding the clear button to the detail page search input
rancher/rancher#24750
2020-01-17 09:56:15 -07:00
Westly Wright e553f7f227
Merge pull request #3703 from shanewxy/trim-secret
Fixed trimming blank lines in multiline values of secrets breaks RSA format
2020-01-14 09:17:42 -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
loganhz 4a929c195d Show pod message
https://github.com/rancher/rancher/issues/24884
2020-01-11 08:23:39 +08:00
loganhz 204bd7ab2b Fix CATTLE_UI_PL issue
https://github.com/rancher/rancher/issues/23681
2020-01-06 14:31:29 +08:00
loganhz dc94f6e67b Hide description filed for configmap
https://github.com/rancher/rancher/issues/23736
2020-01-06 14:26:17 +08:00
shanewxy 7c15f79154 Added condition for trimming multiline values
https://github.com/rancher/rancher/issues/24577
2020-01-06 11:24:48 +08:00
Westly Wright d632ced4fc
move finishSwitchToProject to after model like it is for clusters
if we place the finishSwitchToProject in the setupController then the loading of
the routes is not delayed and we can break initializers that are looking for the
project id.
2020-01-03 15:33:21 -07: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
Cody Jackson 2f58374c39 Ensure skipping works for multiple cis versions
We validating the security scan config appropriately when
a version was already present in the skip list. This now
ensures a version exists before verifying that it contains an array.

We were also replacing the existing skip object in the
security-scan-config which prevented us from storing
multiple versions at a time. We now extend the object
instead using the spread operator.

rancher/rancher#24733
rancher/rancher#24742
2019-12-23 10:14:07 -07:00
Westly Wright e88161745c
Merge pull request #3661 from loganhz/csi
Fix CSI plugin issue
2019-12-23 09:51:02 -07:00
Westly Wright 44da6fb6be
Merge pull request #3660 from loganhz/hpa
Support StatefulSet in HPA UI
2019-12-23 09:47:09 -07:00
Westly Wright 48a86f46bd
Merge pull request #3659 from loganhz/svc
Fix svc issue
2019-12-23 09:45:35 -07:00
loganhz 91e33de002 Fix CSI plugin issue
https://github.com/rancher/rancher/issues/24665
2019-12-21 12:43:59 +08:00
loganhz 62cb0baa68 HPA support StatefulSet 2019-12-21 09:19:45 +08:00
loganhz 59b09ef762 Fix svc issue 2019-12-21 09:08:50 +08:00
Cody Jackson 51c1d34dfa Provide empty configMap when it can't be retrieved
When the user doesn't have access to the systemProject we just
return an empty configMap so the page can proceed without error.

We also disable the runScan button if the systemProject isn't available.

rancher/rancher#24644
2019-12-20 16:10:12 -07:00
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 867239fa1b Conditionally show node links in CIS Scans
If nodes have been deleted previous reports with missing nodes were
breaking. To resolve that we now only show links to nodes that we can
find.

rancher/rancher#24676
2019-12-20 09:14:16 -07:00
Westly Wright ded77b7208
Merge pull request #3657 from shanewxy/workload-description
Disabled the option to add description in workload
2019-12-20 09:10:47 -07: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
shanewxy e2521fd101 Disabled the option to add desciption in workload
https://github.com/rancher/rancher/issues/21357
2019-12-20 17:48:51 +08: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 eadafbc780
refactor config-map-row to check for binary data keys on configmap 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
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
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
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
loganhz 78320f78de Fix psp labels issues
https://github.com/rancher/rancher/issues/24621
2019-12-17 11:07:16 +08:00
Cody Jackson c8e3649c68 Remove config map validation from run scan
Because the scan will ignore an invalid config map I'm removing
the validation from run scan so the UI can run the scan without issue.

rancher/rancher#24496
2019-12-16 14:08:07 -07:00
Westly Wright fcaaa0f53c
Merge pull request #3634 from loganhz/default-ns-missing
Navigating to config maps mapped
2019-12-16 10:00:02 -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
loganhz 19145abf57 Navigating to config maps mapped
https://github.com/rancher/rancher/issues/24188
2019-12-16 18:55:05 +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 043442fe5c Import yaml in storage classes and Persistent Volumes page
https://github.com/rancher/rancher/issues/24611
2019-12-16 16:44:30 +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 fbb24bbffa Adding support for the nodes field in the CIS report
When a test is a Mixed state we now look at the nodes field
to determine which nodes passed and failed.
2019-12-14 22:08:41 -07: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 8ad5659c2f
Refactor validation on cloned registry items
rancher/rancher#24231
2019-12-10 13:00:43 -07:00
loganhz 067307dc56 Fix app progress bar issue
https://github.com/rancher/rancher/issues/24500
2019-12-10 14:28:46 +08:00
Westly Wright caaa65a9d4
Merge pull request #3612 from codyrancher/cis-rke
Provide notification for CIS Scan is RKE only
2019-12-09 13:14:08 -07:00