You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2017/10/12 18:03:39 UTC

[4/6] camel git commit: Revert "Fixed example after k8s client upgrade"

Revert "Fixed example after k8s client upgrade"

This reverts commit 50567cfd6c73fb2ddf411d8c683f6d27aaa48cd7.


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/67146f78
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/67146f78
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/67146f78

Branch: refs/heads/master
Commit: 67146f7870f7822a44247868e2d93a696c5ec0d7
Parents: 6e4e721
Author: Claus Ibsen <da...@apache.org>
Authored: Thu Oct 12 19:50:10 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Thu Oct 12 19:50:10 2017 +0200

----------------------------------------------------------------------
 .../java/org/apache/camel/example/cdi/kubernetes/Application.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/67146f78/examples/camel-example-cdi-kubernetes/src/main/java/org/apache/camel/example/cdi/kubernetes/Application.java
----------------------------------------------------------------------
diff --git a/examples/camel-example-cdi-kubernetes/src/main/java/org/apache/camel/example/cdi/kubernetes/Application.java b/examples/camel-example-cdi-kubernetes/src/main/java/org/apache/camel/example/cdi/kubernetes/Application.java
index a7737ca..b427fee 100644
--- a/examples/camel-example-cdi-kubernetes/src/main/java/org/apache/camel/example/cdi/kubernetes/Application.java
+++ b/examples/camel-example-cdi-kubernetes/src/main/java/org/apache/camel/example/cdi/kubernetes/Application.java
@@ -68,7 +68,7 @@ public class Application {
                             pod.getStatus().getPhase(),
                             pod.getStatus().getContainerStatuses().stream()
                                 .mapToInt(ContainerStatus::getRestartCount).sum(),
-                            formatDuration(Duration.between(ZonedDateTime.parse(pod.getStatus().getStartTime().getTime()), ZonedDateTime.now()))))
+                            formatDuration(Duration.between(ZonedDateTime.parse(pod.getStatus().getStartTime()), ZonedDateTime.now()))))
                         .forEach(System.out::println);
                 });
         }