- {{event.reason | sentenceCase}}
+ {{event.reason | humanizeReason}}
{{event.type}}
-
+
|
-
+
diff --git a/app/views/directives/pods-table.html b/app/views/directives/pods-table.html
index 982fb14869..205aa7c058 100644
--- a/app/views/directives/pods-table.html
+++ b/app/views/directives/pods-table.html
@@ -32,7 +32,7 @@
|
- {{pod | podStatus | sentenceCase}}
+ {{pod | podStatus | humanizePodStatus}}
|
{{pod | numContainersReady}}/{{pod.spec.containers.length}} |
diff --git a/app/views/modals/debug-terminal.html b/app/views/modals/debug-terminal.html
index 439f212062..aaebd01083 100644
--- a/app/views/modals/debug-terminal.html
+++ b/app/views/modals/debug-terminal.html
@@ -4,7 +4,7 @@
Debug Container {{container.name}}
{{debugPod.metadata.name}} —
- {{debugPod | podStatus | sentenceCase}}
+ {{debugPod | podStatus | humanizePodStatus}}
diff --git a/app/views/monitoring.html b/app/views/monitoring.html
index 1b2eb380a5..f8b447ad5c 100644
--- a/app/views/monitoring.html
+++ b/app/views/monitoring.html
@@ -90,7 +90,7 @@
Pods
- {{pod | podStatus | sentenceCase}}
+ {{pod | podStatus | humanizeReason}}
–
{{pod | numContainersReady}}/{{pod.spec.containers.length}} ready
diff --git a/dist/scripts/scripts.js b/dist/scripts/scripts.js
index d9191b7e79..bd87591b09 100644
--- a/dist/scripts/scripts.js
+++ b/dist/scripts/scripts.js
@@ -15350,6 +15350,12 @@ r = _.get(t(n, a), "message");
}
return r;
};
+} ]).filter("humanizeReason", function() {
+return function(e) {
+return _.startCase(e).replace("Back Off", "Back-off").replace("O Auth", "OAuth");
+};
+}).filter("humanizePodStatus", [ "humanizeReasonFilter", function(e) {
+return e;
} ]), angular.module("openshiftConsole").filter("canIDoAny", [ "APIService", "canIFilter", function(e, t) {
var n = {
buildConfigs: [ {
diff --git a/dist/scripts/templates.js b/dist/scripts/templates.js
index 0557daeee4..82ebcb7bc6 100644
--- a/dist/scripts/templates.js
+++ b/dist/scripts/templates.js
@@ -1247,7 +1247,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"Status:\n" +
"\n" +
"\n" +
- "{{pod | podStatus | sentenceCase}}, ran for {{(pod | podStartTime) | duration : (pod | podCompletionTime)}}\n" +
+ "{{pod | podStatus | humanizePodStatus}}, ran for {{(pod | podStartTime) | duration : (pod | podCompletionTime)}}\n" +
"(expires {{pod.metadata.deletionTimestamp | date : 'medium'}})\n" +
"\n" +
"Message:\n" +
@@ -6881,7 +6881,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"\n" +
"
\n" +
"
\n" +
- "{{event.reason | sentenceCase}}\n" +
+ "{{event.reason | humanizeReason}}\n" +
"
\n" +
"
\n" +
"
\n" +
@@ -6991,11 +6991,11 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"{{event.type}}\n" +
"\n" +
"\n" +
- " \n" +
+ " \n" +
" | \n" +
"
\n" +
" \n" +
- " \n" +
+ " \n" +
"\n" +
" \n" +
"\n" +
@@ -8819,7 +8819,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
" | \n" +
" \n" +
"\n" +
- "{{pod | podStatus | sentenceCase}}\n" +
+ "{{pod | podStatus | humanizePodStatus}}\n" +
" \n" +
" | \n" +
"
{{pod | numContainersReady}}/{{pod.spec.containers.length}} | \n" +
@@ -10770,7 +10770,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"
\n" +
"{{debugPod.metadata.name}} —\n" +
"\n" +
- "{{debugPod | podStatus | sentenceCase}}\n" +
+ "{{debugPod | podStatus | humanizePodStatus}}\n" +
"\n" +
"
\n" +
"
\n" +
@@ -11019,7 +11019,7 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
"
\n" +
"
\n" +
"\n" +
- "{{pod | podStatus | sentenceCase}}\n" +
+ "{{pod | podStatus | humanizeReason}}\n" +
"\n" +
"– {{pod | numContainersReady}}/{{pod.spec.containers.length}} ready\n" +
"\n" +