Commit Graph

9975 Commits

Author SHA1 Message Date
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
Westly Wright 7119e0074a
Merge pull request #3658 from codyrancher/cis-system
Provide empty configMap when it can't be retrieved
2019-12-23 09:44:40 -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
Westly Wright ddfa30fbdb
Merge pull request #3654 from codyrancher/vsphere-init
Improve Vsphere UX around cloudinit/cloudconfig
2019-12-20 13:46:05 -07:00
Cody Jackson 9e03d4a41b Improve Vsphere UX around cloudinit/cloudconfig
There was confusion and misuse around cloudinit and cloudconfig.
This change switches things up so cloudinit is only used for the
legacy creation type and cloudconfig is used for all other creation
types.

Changes the textarea that was used for cloudconfig to
input-yaml to make it clear to users that they can enter yaml.

Switches the vmware cloud credential vcenter input to an input-url
so that we automatically strip the scheme from the input.

rancher/rancher#24314
2019-12-20 10:48:49 -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 13eb50172b Removing naked strings that I found 2019-12-20 10:48:48 -07:00
Westly Wright f79d6d9ba3
Merge pull request #3650 from codyrancher/cis-node-link
Conditionally show node links in CIS Scans
2019-12-20 09:32:43 -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 ecb8139b94
Merge pull request #3655 from westlywright/bug.pipeline.setup.error
Pipeline Setup Error
2019-12-20 09:10:22 -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
Westly Wright f9302a929f
Merge pull request #3649 from codyrancher/cis-report
Update the downloaded report
2019-12-20 09:09:23 -07:00
Westly Wright 5446a52ef6
Merge pull request #3648 from westlywright/feature.eks.ebs.volume
expose aks ebsEncryption param
2019-12-20 09:08:32 -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 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 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 c6fd1b4859
Merge pull request #3652 from westlywright/bug.dapperfile
Remove unneeded npm install yarn since its installed by apt
2019-12-19 14:57:44 -07:00
Westly Wright 2d17825845
Remove unneeded npm install yarn since its installed by apt 2019-12-19 14:49:52 -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 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 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
Westly Wright abc39cda27
Merge pull request #3642 from codyrancher/colors
Make special case for the 'running' state color
2019-12-18 09:34:46 -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 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
Westly Wright d35f1504ac
Merge pull request #3640 from vincent99/master
Memeber[s]
2019-12-17 09:08:20 -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 e51915661f
Merge pull request #3637 from codyrancher/cis-less-validate
Remove config map validation from run scan
2019-12-16 17:21:48 -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
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 2105eb20a9
Merge pull request #3635 from westlywright/bug.json.parse
Logging Parse JSON Bug
2019-12-16 11:57:37 -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