This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new 621ab39 Fixed example after k8s client upgrade
621ab39 is described below
commit 621ab3943fce905f2a98032e3abe9d911837ede5
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Oct 24 09:56:22 2017 +0200
Fixed example after k8s client upgrade
---
.../main/java/org/apache/camel/example/cdi/kubernetes/Application.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
});
}
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].