add k8s context env
This commit is contained in:
parent
3f40845111
commit
39db40cd5e
1 changed files with 5 additions and 6 deletions
|
@ -57,7 +57,7 @@ fun Prov.installKubectl(): ProvResult = def {
|
||||||
mkdir -p "${CUSTOM_KUBE_CONTEXTS}"
|
mkdir -p "${CUSTOM_KUBE_CONTEXTS}"
|
||||||
|
|
||||||
OIFS="$IFS"
|
OIFS="$IFS"
|
||||||
IFS=${'$'}'\n'
|
IFS=$'\n'
|
||||||
for contextFile in `find "${CUSTOM_KUBE_CONTEXTS}" -type f -name "*.yml"`
|
for contextFile in `find "${CUSTOM_KUBE_CONTEXTS}" -type f -name "*.yml"`
|
||||||
do
|
do
|
||||||
export KUBECONFIG="$contextFile:$KUBECONFIG"
|
export KUBECONFIG="$contextFile:$KUBECONFIG"
|
||||||
|
@ -65,7 +65,6 @@ fun Prov.installKubectl(): ProvResult = def {
|
||||||
IFS="$OIFS"
|
IFS="$OIFS"
|
||||||
|
|
||||||
""".trimIndent()
|
""".trimIndent()
|
||||||
createFile(kubeConfigFile, kubeConfig, "640")
|
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue