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/11 08:25:01 UTC

camel git commit: Fixed example after k8s client upgrade

Repository: camel
Updated Branches:
  refs/heads/master de7e4bfef -> 50567cfd6


Fixed example after k8s client upgrade


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

Branch: refs/heads/master
Commit: 50567cfd6c73fb2ddf411d8c683f6d27aaa48cd7
Parents: de7e4bf
Author: Claus Ibsen <da...@apache.org>
Authored: Wed Oct 11 10:24:54 2017 +0200
Committer: Claus Ibsen <da...@apache.org>
Committed: Wed Oct 11 10:24:54 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/50567cfd/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 b427fee..a7737ca 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()), ZonedDateTime.now()))))
+                            formatDuration(Duration.between(ZonedDateTime.parse(pod.getStatus().getStartTime().getTime()), ZonedDateTime.now()))))
                         .forEach(System.out::println);
                 });
         }