PoC to read the config from a file

This commit is contained in:
Ovidio Mallo 2016-12-09 14:39:52 +01:00
parent e2a1062431
commit 5572d4751e

View file

@ -1,3 +1,5 @@
import org.yaml.snakeyaml.Yaml
def getOcCmd() {
return "oc --token=`cat /var/run/secrets/kubernetes.io/serviceaccount/token` --server=https://openshift.default.svc.cluster.local --certificate-authority=/run/secrets/kubernetes.io/serviceaccount/ca.crt"
}