Skip to content

Commit dd215cf

Browse files
committed
Render version of Perfdash on UI
1 parent 99464a8 commit dd215cf

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

perfdash/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
all: push
22

33
# See deployment.yaml for the version currently running-- bump this ahead before rebuilding!
4+
# Additionally please ensure to update the same in www/VERSION
45
TAG?=2.56
56

67
REPO?=gcr.io/k8s-staging-perf-tests

perfdash/www/VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2.56

perfdash/www/index.html

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,15 @@ <h1 class="md-display-2">Performance Dashboard</h1>
5454
</canvas>
5555
<p style="text-align: center">Runs over time</p>
5656
</div>
57-
<p style="font-size: x-small; font-style: italic">
58-
Click a data point to see build logs. CTRL+click anywhere to trim outliers.
57+
<p style="font-size: x-small; font-style: italic; display: flex; justify-content: space-between;">
58+
<span>Click a data point to see build logs. CTRL+click anywhere to trim outliers.</span>
59+
<span>Version: <span id="version"></span></span>
5960
</p>
61+
<script>
62+
fetch('VERSION')
63+
.then(resp => resp.text())
64+
.then(version => document.getElementById('version').innerText = version)
65+
</script>
6066
<!-- Angular Material Dependencies -->
6167
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular.min.js"></script>
6268
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.15/angular-animate.min.js"></script>

0 commit comments

Comments
 (0)