Commit Graph

280 Commits

Author SHA1 Message Date
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
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
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 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 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 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
Cody Jackson 78caba637a Provide notification for CIS Scan is RKE only
On the CIS Scans page we now show a notification which informs the user
that CIS scans are only available on RKE clusters. The notification is all that is
shown on the page since the user cannot actually run a scan or view any
scans.

rancher/rancher#24433
2019-12-09 12:23:04 -07:00
Cody Jackson 65fb6148ef Create default config map if it's not present.
If the security-config map wasn't present the detail view wouldn't work
properly. To resolve this we now create a new config map if it's not
present.

rancher/rancher#24432
2019-12-06 10:30:46 -07:00
Cody Jackson 84618ae41e Resolve lint issues. 2019-12-05 14:50:19 -07:00
Cody Jackson 9838e9da91 Add failed to parse security-scan-cfg growl
This will ensure the user is notified when there's a json
parsing error of their security-scan-cfg config map.

The notification will happen during page load and if
they attempt to skip/unskip.

rancher/rancher#24417
2019-12-05 14:50:19 -07:00
Cody Jackson 49b0ea90db Change CIS Detail download and delete button color
Switched the color to primary because they looked disabled when
they were the default color.

rancher/rancher#24417
2019-12-05 14:50:19 -07: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
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 07c77cc41d
rework query params for edit cluster and template revisions 2019-11-05 16:26:02 -07:00
n313893254 9d4635d9a4 Fix js error: currentType is undefined
https://github.com/rancher/rancher/issues/23437
2019-10-15 11:30:40 +08:00
Westly Wright 15dc7ce56f
Fix routing issues post ember upgrade
It seems the previous way that the cluster id and project id was fetched from
various addons (alerts and istio) does not work in ember 3.12. After some
investigation it wasn't the corret way to grab those parameters anyway. I've
changed the routes to use the scope service which has the current cluster and
project (if in one) rather than fetch the query params off a parent route
outside the engine.
2019-10-03 15:36:38 -07:00
Vincent Fiduccia 5dac97299a
Only show disabled global catalogs on global level, gray out 2019-09-19 10:13:21 -07:00
Vincent Fiduccia 9621b09fb0
Don't overwrite cluster config with answers on edit (rancher/rancher#22085) 2019-09-11 01:55:41 -07:00
Vincent Fiduccia d42539de3e
Match provisioning banner to cluster state color 2019-08-29 14:02:33 -07:00
loganhz f7cca11201 Show transitioning message for snapshots
https://github.com/rancher/rancher/issues/20685
2019-08-14 17:33:19 +08:00
loganhz 1b9063be40 Show driver name in edit cluster page
https://github.com/rancher/rancher/issues/21562
2019-08-14 11:57:33 +08:00
Westly Wright a663eb6506
clean up 2019-08-07 09:29:43 -07:00
Westly Wright 80fc4b6efb
Fix issue when edit cluster and no access to cluster template
rancher/rancher#21473
2019-08-07 09:29:43 -07:00
Westly Wright e6a80707b4
fix bug in template enforcement and standard user template selct
rancher/rancher#21747
2019-07-31 09:41:59 -07:00
Westly Wright 3951b7c2a5
fix edit cluster not changing templates
rancher/rancher#21726
2019-07-23 16:52:16 -07:00
Westly Wright c2350593f2
Fix some bugs in enforcementChanged and showing cluster template
rancher/rancher#21717
2019-07-23 15:56:09 -07:00
Westly Wright a2df0b4162
fix undefined error 2019-07-23 10:56:08 -07:00
loganhz 2707eb9eb5 Fix default container limit issue
https://github.com/rancher/rancher/issues/21664
2019-07-22 07:02:47 +08:00
Westly Wright 31153b8e3e
Fix edit cluster with template bugs
rancher/rancher#21441
2019-07-19 15:41:56 -07:00
Westly Wright 4e9b36ae45
edit cluster launched with cluster template 2019-07-17 10:26:58 -07:00
n313893254 af2c9c1e5b Fix can not search a project without namespaces
https://github.com/rancher/rancher/issues/21415
2019-07-12 11:49:47 +08:00
Westly Wright 2a66489f83
New cluster launch page
Refactor and decouple launch cluster

adds new routes for selecting cluster, selecting cluter template, and launching
cluster

Add first version of cluster template selection logic

WIP - First version of cluter-template resource pages & components

cluster template index

adds cru-cluster-template

save cluster template and cluster template revision

refactor rke cluster driver and add rke cluster driver to clust temp

add cluster template revision page

template revision changes

more questions

refactor cluster networking into component

cluster template questions components

first itteration of working add question

fixups for ct and ctr's

general fixes

quick revision select on new revision page

Move name, expose ctr name, move ctr source

Refactor ct/ctr table to use grouped form

share member added

single template no revisions rows

translations

translation changes

css toggle

css toggle on all elements

inline override

initial apply cluster template

initial show or lock when applying a cluster template

validation bug

first run at windows support overrides

abstract check override with component that yields

add check for override to most sections

bulk remove cluster template revision

more check override

handle errors better for ctrs

translations

bugs

add toggle to azure cloud provider

auth endpoint fix

computed override check and refactor

fixup question override inputs

remove cluster launch route

review fixups

cluster edit

fixup alias properties for overrides
2019-07-08 14:45:44 -07:00
Westly Wright e12d0b8602
filter active external kontainer engine drivers on edit
rancher/rancher#21108
2019-06-25 15:14:45 -07:00
loganhz f961f25394 Don't show auto injection toggle if istio disabled 2019-06-07 21:40:41 +08:00
Logan 74bbe0171e Registry and Istio (#3014)
* Add vendors for istio

* Add istio lib

* Add kiali UI vendor

* Expose components in shared lib

* Istio css

* Support kiali graph in Rancher UI

* Show traffic metrics from istio

* Enable istio in cluster level

* Toggle for istio sidecar auto injection

* Support add istio config

* Reuse catalog for istio config

* Support enable global registry in local cluster

* Rename traffic rule

* Not upgrade template version for istio

* Fix istio project level routing issue

* Fix comments

* Bug fix

* Add kiali copyright

* App name is not required in schema

* Use cytoscape dagre from npm

* Bug fix

* Hide traffic rule
2019-06-03 09:44:28 -07:00
Westly Wright 2c60c30baf
expose secretRef on cinder pvs and edit mode
Redirect edit pv source to the pv page

Update editable fields in cru-pv

fix incorrectly displayed volume source on edit

pass correct edit mode to all volume source components
2019-05-29 11:59:27 -07:00
Westly Wright b6bca4696d
Choose the correct provider and pass to cru-cluster for edit select 2019-05-21 12:10:52 -07:00
loganhz 9551e81cbc Fix findAll filter issue in alerting and logging
https://github.com/rancher/rancher/issues/19599
2019-04-26 16:28:24 +08:00
Westly Wright 90ad09aa79
ensure page-header-project dropdown is closed when route changes
also updated ember-basic dropdown

rancher/rancher#19300
2019-04-04 14:33:59 -07:00
Westly Wright 46e96c801a
Fix send action deprecations
send action deprecation warnings for form-key-value component

update all cancel actions

deprecations for ns quota component and action menu item

deprecations and formatting

sendAction deprecation form-node-selctor & formatting

sendAction deprecations for cru-persistent-volume & formatting

sendAction deprecations for form-scoped-roles & formatting

sendAction deprecations for telemetry-opt & formatting

sendAction deprecations for table-rows & formatting

sendAction deprecations for server-url & formatting

sendAction deprecations for cru-config-map & formatting

sendAction deprecations for workload-row & formatting

sendAction deprecations for cru-volume & formatting

sendAction deprecations for cru-persistent-volume-claim & formatting

fix issue with declaring dynmic keys on component.

sendAction deprecations for form-healthcheck & formatting

sendAction deprecations for node-selector-row & formatting

sendAction deprecations for new-edit-ingress & formatting

sendAction deprecations for form-node-affinity & formatting

sendAction deprecations for form-key-to-path & formatting

sendAction deprecations for new-catalog & formatting

sendAction deprecations for cru-storage-class & formatting

sendAction deprecations for project-resource-quota & formatting

sendAction deprecations for input-files & formatting

sendAction deprecations for node-row & formatting

sendAction deprecations for input-command & formatting

sendAction deprecations for form-ports

sendAction deprecations for new-edit & formatting

sendAction deprecations for form-image

sendAction deprecations for form-volume-row & formatting

sendAction deprecations for form-volumes & formatting

sendAction deprecations for form-scale & formatting

sendAction deprecations for container-logs & formatting

sendAction deprecations for cru-volume-claim-template

sendAction deprecations for pod-row & formatting

sendAction deprecations for source-custom-log-path & formatting

sendAction deprecations for step mixin & formatting

sendAction deprecations for pipeline-codemirror & formatting

sendAction deprecations for build-step & formatting

sendAction deprecations for build-stage & formatting

sendAction deprecations for pipeline-env-from & formatting

sendAction deprecations for log-view & formatting

sendAction deprecations for bitbucketserver-setting & formatting

sendAction deprecations for bitbucketcloud-setting & formatting

sendAction deprecations for form-recipient-item & formatting

sendAction deprecations for pipeline-selector-row & formatting

sendAction deprecations for policy-row & formatting

sendAction deprecations for other-role-row & formatting

sendAction deprecations for role-rule-row & formatting

sendAction deprecations for new-multi-cluster-app & formatting

sendAction deprecations for driver-digitalocean & formatting

sendAction deprecations for project-alert-row & formatting

sendAction deprecations for form-recipient-item & formatting

sendAction deprecations for cluster-alert-row & formatting

sendAction deprecations for alert-select & formatting

sendAction deprecations for storage-class-provisioner & formatting

sendAction deprecations for cluster-driver mixin

sendAction deprecations for node-driver mixin

sendAction deprecations for view-new-edit mixin

sendAction deprecations for host-registration & formatting

sendAction deprecations for form-labels-annotations & formatting

sendAction deprecations for huawei-user-labels & formatting

sendAction deprecations for form-user-labels & formatting

sendAction deprecations for principal-search & formatting

sendAction deprecations for form-namespace & formatting

sendAction deprecations for input-paste & formatting

sendAction deprecations for catalog-index & formatting

sendAction deprecations for searchable-select & formatting

sendAction deprecations for hover-dropdown & formatting

sendAction deprecations for container-shell & formatting

sendAction deprecations for input-yaml & formatting

sendAction deprecations for input-text-file & formatting

sendAction deprecations for sortable-thead & formatting

sendAction deprecations for form-ingress-rows & formatting

sendAction deprecations for input-password & formatting

sendAction deprecations for input-identity & formatting

sendAction deprecations for form-count & formatting

sendAction deprecations for form-members & formatting

sendAction deprecations for outside-click & formatting

sendAction deprecations for input-slider & formatting

sendAction deprecations for metrics-action & formatting

sendAction deprecations for banner-message & formatting

sendAction deprecations for driver-rke & formatting

sendAction deprecations for driver-import & formatting

sendAction deprecations for form-value-array & formatting

sendAction deprecations for cru-node-pools & formatting

sendAction deprecations for cru-cluster & formatting

sendAction deprecations for logging/new-edit & formatting

sendAction deprecations for login-x components & formatting
2019-03-29 10:58:08 -07:00
Westly Wright fe3f97e7b1
expand resource quotas on init when creating
rancher/rancher#18893
2019-03-14 11:51:34 -07:00
Westly Wright d5748b95a5
Explicitly exclude created from search fields
it only searches on iso-8601 date strings currently which we do not display

rancher/rancher#18889
2019-03-13 16:49:57 -07:00
loganhz 4977c344aa Fix the refresh issue when add ns
https://github.com/rancher/rancher/issues/18809
2019-03-12 08:28:28 +08:00
Westly Wright c81aa67ca4
Load correct external driver on edit of cluster
rancher/rancher#18406
2019-02-26 14:33:26 -07:00
Westly Wright 21765ae4f9
add state badge to etcd backups page
rancher/rancher#18257
2019-02-20 10:36:13 -07:00
loganhz 689e6be38f Support container default resource limit
https://github.com/rancher/rancher/issues/16753
2019-02-10 18:00:37 +08:00
Westly Wright 3d709f65a4
lint 2019-01-21 13:57:02 -07:00
Westly Wright 663c13ccc9
Add S3 Etcd Backup & Restore API to UI
refector legacy local etcd backup & restore api to use new api

rancher/rancher#16797

Add s3backup config to rke clusters advanced options

Add 'restore from backup' action on RKE clusters

add backups list page

add cluster switching handling for backups

WIP

cleaup for review
2019-01-21 13:48:46 -07:00
loganhz 00950d11d4 Support Aliyun/Tencent/Huawe hosted k8s
rancher/rancher#16809
2018-12-05 10:29:32 +08:00
loganhz b46b1cebb3 Live metrics for cluster/node/workload/pod/container
https://github.com/rancher/rancher/issues/15703
https://github.com/rancher/rancher/issues/15705
2018-12-04 18:50:34 +08:00
loganhz e5cb319729 Fix member sorting issue
https://github.com/rancher/rancher/issues/16130
2018-11-23 18:30:58 +08:00
loganhz f64505e40e Fix quota issue
https://github.com/rancher/rancher/issues/16570
https://github.com/rancher/rancher/issues/16368
https://github.com/rancher/rancher/issues/16363
2018-11-15 16:10:16 +08:00
Westly Wright 0eb6e0f9d1
Merge pull request #2365 from loganhz/role
Fix adding member issue
2018-10-30 15:06:25 -07:00
Westly Wright e4e082a64f
Add cluster capabilites ui
rancher/rancher#15105

Add ingress capability limitations to ui

Node port range for clusterCapabilities

Cluster Capabilities for nodePoolsCanScale

move ingress capabilities to service

lint

cleanup

move vars
2018-10-30 14:52:43 -07:00
loganhz d3ae679dbd Fix adding member issue
https://github.com/rancher/rancher/issues/16320
2018-10-30 07:17:34 +08:00
Westly Wright 4895c20ed7
Add Cluster and Project level catalogs
rancher/rancher#15104
rancher/rancher#15106
2018-10-17 14:03:49 -07:00
Westly Wright 4c2edcb771
Merge pull request #2299 from loganhz/selected
Fix paging label issue
2018-09-20 09:43:38 -07:00
loganhz 4db9b3c0b2 Fix paging label issue 2018-09-20 22:28:07 +08:00
loganhz 232735f68d Fix quota issue when switch project in add/edit ns page
rancher/rancher#15720
2018-09-20 21:29:00 +08:00
Westly Wright 87ec14b7e3
Show bg-error when new quota exceeds limits
rancher/rancher#15687
2018-09-18 15:56:34 -07:00
loganhz d6e342ef94 Fix edit project issue
https://github.com/rancher/rancher/issues/15647
2018-09-18 12:48:32 +08:00
Westly Wright f37760e07f
Add remaining resources for a project w/limits for new ns
rancher/rancher#15522
2018-09-17 16:53:54 -07:00
loganhz 5993e8b47b Improve storage class detail page 2018-09-10 13:16:21 +08:00
loganhz 483e34c6fc Improve pv list and pv detail page
https://github.com/rancher/rancher/issues/15450
2018-09-10 11:23:29 +08:00
loganhz 7634565418 Update resource quota
https://github.com/rancher/rancher/issues/15339
https://github.com/rancher/rancher/issues/15333
2018-09-05 08:17:00 +08:00
Westly Wright 7893ce4a5d
Display Project row only correctly (namespace-table)
rancher/rancher#15296
2018-08-31 11:35:26 -07:00
loganhz 06cc9d7630 Should only be allow to enter 1 of each item
https://github.com/rancher/rancher/issues/14859
2018-08-28 18:01:40 +08:00
loganhz e92e6a8731 Resource quota
https://github.com/rancher/rancher/issues/14620
2018-08-28 10:32:55 +08:00
loganhz f1df74fb16 Remove cluster level pipeline route in valid cluster routes list 2018-08-25 09:32:01 +08:00
Westly Wright fe823b788b
lint 2018-08-24 11:18:17 -07:00
Westly Wright 2f729f8825
remove all references to loading `resourceQuotaTemplate` 2018-08-24 11:11:49 -07:00
lvuch b61b6f40a5 cleanup dropdown, input group on form val 2018-08-22 13:33:42 -07:00
loganhz d275fde673 Fix table sort order issue
https://github.com/rancher/rancher/issues/14808
2018-08-02 14:20:58 +08:00
loganhz 8245c21cdc Project level resource quota
https://github.com/rancher/rancher/issues/13277
2018-07-25 16:03:44 +08:00
loganhz 6702fea7dc Fix style issue 2018-07-21 15:26:57 +08:00
Vincent Fiduccia 93f922b92d
eslint --fix 2018-07-20 11:47:19 -07:00
Vincent Fiduccia ed559782e5
Merge pull request #2072 from loganhz/cluster-dashboard
Exclude unschedulable nodes from cluster dashboard
2018-07-19 17:37:49 -07:00
loganhz 8f50e1e16e Exclude unschedulable nodes from cluster dashboard
https://github.com/rancher/rancher/issues/14459
2018-07-19 20:51:07 +08:00
Westly Wright dfcebc90ed
Global roles page changes 2018-07-18 12:52:35 -07:00
Vincent Fiduccia 4e0ae87a73
Add warning for members on local cluster (rancher/rancher#11099) 2018-07-16 16:07:04 -07:00
loganhz a693365a64 Show nodes in pods list
https://github.com/rancher/rancher/issues/14321
2018-07-02 13:39:32 +08:00
Vincent Fiduccia 54725f2022
eslint --fix 2018-06-29 17:20:46 -07:00
Vincent Fiduccia a041c39833
Merge pull request #1884 from loganhz/route
Preserve route
2018-06-27 17:01:07 -07:00
loganhz 47b0c12f91 Show created time in cluster dashboard 2018-06-17 09:19:25 +08:00
loganhz cabb636719 Preserve cluster level route
https://github.com/rancher/rancher/issues/8486
2018-06-03 20:29:46 +08:00
Westly Wright 0b161977fe
whitespace 2018-05-16 12:28:05 -07:00
Westly Wright 097f1d0bd2
role template tweaks 2018-05-16 12:09:30 -07:00
Westly Wright 35292f6919
Filter roles on enabled or not
rancher/rancher#13418
2018-05-16 11:27:33 -07:00
loganhz 0ea355cfda Update translations 2018-05-15 19:31:37 +08:00
Westly Wright ddfaf0ed0a
reorg shared components 2018-05-09 11:24:35 -07:00
Vincent Fiduccia 5a572b7689
Merge pull request #1883 from loganhz/fix2
Fixes
2018-05-07 17:48:32 -07:00
loganhz 09cc2221e5 Sort by Project when Grouped Project/Namespace
https://github.com/rancher/rancher/issues/13261
2018-05-05 14:28:48 +08:00
loganhz 3639c399fd Fix the issue that error flashes before ns is creates
https://github.com/rancher/rancher/issues/13210
2018-05-04 10:47:15 +08:00
Westly Wright f7b5409cf9
add ns from project hides project select
rancher/rancher#13215
2018-05-01 11:08:26 -07:00