Skip to content

Commit 9379f5d

Browse files
authored
Merge pull request #306 from danmacpherson/ci-update-operators
Updating CI dashboard for operator jobs
2 parents 88d8920 + cb469fe commit 9379f5d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

static/js/dashboard.v2.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,6 +329,8 @@ function renderSingleBadge (key, field, envLabel, envLink, branchLink, badge_url
329329
var badgeClass = "ci-label-environment-stable";
330330
} else if (badge_url.endsWith("prerelease-badge.json") ) {
331331
var badgeClass = "ci-label-environment-prerelease";
332+
} else if (badge_url.endsWith("operator-badge.json") ) {
333+
var badgeClass = "ci-label-environment-prerelease";
332334
} else if (badge_url.endsWith("nightly-badge.json") ) {
333335
var badgeClass = "ci-label-environment-prerelease";
334336
nightlyLabel = "(nightly build)"
@@ -465,7 +467,7 @@ function getBadges (xmlText, bucket_url, badge_set) {
465467
key = entries[i].childNodes[0].nodeValue
466468
if (badge_set == "GA" && key.endsWith("stable-badge.json") ) {
467469
badges.push(new Badge(bucket_url, key, getBadgeDate(entries[i])));
468-
} else if (badge_set == "early" && (key.endsWith("prerelease-badge.json") || key.endsWith("nightly-badge.json")) ) {
470+
} else if (badge_set == "early" && (key.endsWith("prerelease-badge.json") || key.endsWith("nightly-badge.json") || key.endsWith("operator-badge.json")) ) {
469471
badges.push(new Badge(bucket_url, key, getBadgeDate(entries[i])));
470472
} else if (badge_set == "all" && key.endsWith("-badge.json") ) {
471473
badges.push(new Badge(bucket_url, key, getBadgeDate(entries[i])));

0 commit comments

Comments
 (0)