UNCLASSIFIED

Commit a8c7bab5 authored by michaelmcleroy's avatar michaelmcleroy
Browse files

fix(terraform): fix rename of default profile

parent d5432822
......@@ -17,7 +17,7 @@ resource "null_resource" "kubeconfig" {
export KUBECONFIGBAK=$KUBECONFIG
export KUBECONFIG=~/.kube/new:~/.kube/config
# Replace default with cluster name
sed -ri "s/: default$/: ${var.name}/g"
sed -ri "s/: default$/: ${var.name}/g" ~/.kube/new
# Update user only with more info
sed -ri "s/(user|- name): ${var.name}$/\1: clusterUser_${var.name}/g" ~/.kube/new
# Do not redirect to ~/.kube/config or you may truncate the results
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment