diff --git a/pkg/dashboard/templates/dashboard.gohtml b/pkg/dashboard/templates/dashboard.gohtml index 2d2635b3..f60cb7c1 100644 --- a/pkg/dashboard/templates/dashboard.gohtml +++ b/pkg/dashboard/templates/dashboard.gohtml @@ -8,7 +8,7 @@ - + @@ -27,8 +27,8 @@
- - by + + Open Source Project By
@@ -38,13 +38,13 @@
-

Overall Score:

+

Overall Score

-

Scores By Namespace:

+

Scores By Namespace

@@ -96,7 +96,7 @@
- - - -
-

- - -

-
- -
-
-
-

Overall Score:

-
- -
-
-
-

Scores By Namespace:

- -
-
- -
-

Namespace: kube-system

- - - - - - - - - - -
-
DaemonSet: datadog-agent
-
-
-
-
-
-
-
-
-
-
Deployment: tiller-deployment
-
    -
  • Image Tag Specified
  • -
  • Resource Limits
  • -
  • Resource Requests
  • -
  • Run As Non Root User
  • -
  • Liveness Probe
  • -
  • Readiness Probe
  • -
-
-
-
-
-
-
-
-
-
-
-
- - - - - \ No newline at end of file diff --git a/public/js/charts.js b/public/js/charts.js index b616174b..a11e7076 100644 --- a/public/js/charts.js +++ b/public/js/charts.js @@ -1,6 +1,6 @@ if (!Object.values) { - Object.values = function(obj) { - return Object.keys(obj).map(function(key) { + Object.values = function (obj) { + return Object.keys(obj).map(function (key) { return obj[key]; }) } @@ -14,17 +14,17 @@ $(function () { datasets: [{ label: 'Passing', data: Object.values(fairwindsAuditData.NamespacedResults) - .map(function(r) { return r.Summary.Successes}), + .map(function (r) { return r.Summary.Successes }), backgroundColor: '#8BD2DC', - },{ + }, { label: 'Warning', data: Object.values(fairwindsAuditData.NamespacedResults) - .map(function(r) { return r.Summary.Warnings}), + .map(function (r) { return r.Summary.Warnings }), backgroundColor: '#f26c21', - },{ + }, { label: 'Failing', data: Object.values(fairwindsAuditData.NamespacedResults) - .map(function(r) { return r.Summary.Errors}), + .map(function (r) { return r.Summary.Errors }), backgroundColor: '#a11f4c', }] }, @@ -47,9 +47,9 @@ $(function () { }); var score = fairwindsAuditData.ClusterSummary.Successes / ( - fairwindsAuditData.ClusterSummary.Successes + - fairwindsAuditData.ClusterSummary.Warnings + - fairwindsAuditData.ClusterSummary.Errors); + fairwindsAuditData.ClusterSummary.Successes + + fairwindsAuditData.ClusterSummary.Warnings + + fairwindsAuditData.ClusterSummary.Errors); score = Math.round(score * 100); var clusterChart = new Chart("clusterScoreChart", { @@ -62,7 +62,7 @@ $(function () { fairwindsAuditData.ClusterSummary.Warnings, fairwindsAuditData.ClusterSummary.Errors, ], - backgroundColor: ['#8BD2DC','#f26c21','#a11f4c'], + backgroundColor: ['#8BD2DC', '#f26c21', '#a11f4c'], }] }, options: { @@ -73,10 +73,10 @@ $(function () { }, elements: { center: { - text: score + '%', + text: score, color: '#333', //Default black - fontStyle: 'Helvetica', //Default Arial - sidePadding: 30 //Default 20 (as a percentage) + fontStyle: 'Muli', //Default Arial + sidePadding: 40, //Default 20 (as a percentage) } } }