Skip to content

Commit f839c85

Browse files
author
OpenShift Bot
authored
Merge pull request #864 from spadgett/failed-deployment-view-events-link
Merged by openshift-bot
2 parents 9b21516 + d1586a6 commit f839c85

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

app/scripts/directives/serviceGroupNotifications.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -101,11 +101,12 @@ angular.module('openshiftConsole')
101101
message: 'Deployment ' + displayName + ' failed.',
102102
reason: annotation(mostRecentRC, 'openshift.io/deployment.status-reason'),
103103
links: [{
104-
href: rcLink,
105-
label: 'View Deployment'
106-
}, {
107104
href: logLink,
108105
label: 'View Log'
106+
}, {
107+
// Show all events since the event might not be on the replication controller itself.
108+
href: 'project/' + mostRecentRC.metadata.namespace + '/browse/events',
109+
label: 'View Events'
109110
}]
110111
};
111112
break;

dist/scripts/scripts.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -11774,11 +11774,11 @@ type:"error",
1177411774
message:"Deployment " + k + " failed.",
1177511775
reason:i(c, "openshift.io/deployment.status-reason"),
1177611776
links:[ {
11777-
href:m,
11778-
label:"View Deployment"
11779-
}, {
1178011777
href:f,
1178111778
label:"View Log"
11779+
}, {
11780+
href:"project/" + c.metadata.namespace + "/browse/events",
11781+
label:"View Events"
1178211782
} ]
1178311783
};
1178411784
}

0 commit comments

Comments
 (0)