Created
September 15, 2020 11:36
-
-
Save shark8me/11b5aedfc7273b9804cb4f1b1e1c85a4 to your computer and use it in GitHub Desktop.
Get the Kubernetes job result
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (-> | |
| ;;this is a utility API to get the name of the pods | |
| ;;used by the job named pi. | |
| (get-job-pods "pi") | |
| first | |
| (read-namespaced-pod-log "default")) | |
| ;;the result is the first 50 digits of pi. | |
| ;;"3.1415926535897932384626433832795028841971693993751\n" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment