Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def getRunningPod(CLUSTER, namespace, label) {
- println "Cluster ${CLUSTER}: namespace ${namespace} with label: ${label}"
- openshift.withCluster( CLUSTER ) {
- openshift.withProject( namespace ){
- def rc = openshift.selector("pod" , [application: label] )
- return rc.object()['metadata']['name']
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement