Skip to content

Instantly share code, notes, and snippets.

@shark8me
Created September 15, 2020 11:36
Show Gist options
  • Select an option

  • Save shark8me/11b5aedfc7273b9804cb4f1b1e1c85a4 to your computer and use it in GitHub Desktop.

Select an option

Save shark8me/11b5aedfc7273b9804cb4f1b1e1c85a4 to your computer and use it in GitHub Desktop.
Get the Kubernetes job result
(->
;;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