UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Jason Krause
template
Commits
a8c7bab5
Commit
a8c7bab5
authored
Jul 12, 2021
by
michaelmcleroy
Browse files
fix(terraform): fix rename of default profile
parent
d5432822
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
terraform/modules/s3/main.tf
terraform/modules/s3/main.tf
+1
-1
No files found.
terraform/modules/s3/main.tf
View file @
a8c7bab5
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment