You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by as...@apache.org on 2016/08/23 12:43:47 UTC

camel git commit: Add instructions to retrieve authentication tokens in Camel CDI Kubernetes example

Repository: camel
Updated Branches:
  refs/heads/master cdd5b735f -> ee41d8168


Add instructions to retrieve authentication tokens in Camel CDI Kubernetes example


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

Branch: refs/heads/master
Commit: ee41d8168d3511cd16a1f889ed426afbd5ca6b67
Parents: cdd5b73
Author: Antonin Stefanutti <an...@stefanutti.fr>
Authored: Tue Aug 23 14:43:35 2016 +0200
Committer: Antonin Stefanutti <an...@stefanutti.fr>
Committed: Tue Aug 23 14:43:35 2016 +0200

----------------------------------------------------------------------
 examples/camel-example-cdi-kubernetes/README.md | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ee41d816/examples/camel-example-cdi-kubernetes/README.md
----------------------------------------------------------------------
diff --git a/examples/camel-example-cdi-kubernetes/README.md b/examples/camel-example-cdi-kubernetes/README.md
index 09dce01..df84924 100644
--- a/examples/camel-example-cdi-kubernetes/README.md
+++ b/examples/camel-example-cdi-kubernetes/README.md
@@ -19,6 +19,16 @@ login token and namespace by parsing the users `~/.kube/config` file.
 However, you can edit the `application.properties` file to override the default
 and provide the Kubernetes master URL and OAuth token for your environment.
 
+To retrieve the tokens in your kubeconfig file, you can execute the following command:
+```sh
+$ kubectl config view -o jsonpath='{range .users[?(@.user.token != "")]}{.name}{":\t"}{.user.token}{"\n"}{end}'
+```
+
+Alternatively, if you're using OpenShift, you can retrieve the token for the current user with:
+```sh
+$ oc whoami -t
+```
+
 ### Build
 
 You can build this example using: