Skip to content

Commit 28cb1ac

Browse files
authored
Merge pull request #48 from matttrach/get-kf-without-sudo
Remove sudo requirements for local exec
2 parents 535fee5 + 2f6886b commit 28cb1ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

main.tf

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ resource "null_resource" "get_kubeconfig" {
290290
IP="${local.ssh_ip}"
291291
SSH_USER="${local.ssh_user}"
292292
293-
sudo chmod +x "${abspath(path.module)}/get_kubeconfig.sh"
294-
sudo "${abspath(path.module)}/get_kubeconfig.sh" "$FILE" "$REMOTE_PATH" "$IP" "$SSH_USER"
293+
"${abspath(path.module)}/get_kubeconfig.sh" "$FILE" "$REMOTE_PATH" "$IP" "$SSH_USER"
295294
EOT
296295
}
297296
}

0 commit comments

Comments
 (0)