Skip to content

Commit

Permalink
Merge pull request #8 from xunleii/fix-warn
Browse files Browse the repository at this point in the history
fix: remove warning 'quoted keywords are now deprecated'
  • Loading branch information
xunleii authored Nov 24, 2019
2 parents 0282400 + b82afcf commit 781c421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ resource "null_resource" "k3s_minions_uninstaller" {

# Drain and delete the removed node
provisioner "remote-exec" {
when = "destroy"
when = destroy
inline = [
"NODE=$(kubectl get node -l 'k3s.io/internal-ip = ${null_resource.k3s_minions[each.key].triggers.minion_ip}' | tail -n 1 | awk '{printf $1}')",
"kubectl drain $${NODE} --force --delete-local-data --ignore-daemonsets --timeout ${var.drain_timeout}",
Expand Down

0 comments on commit 781c421

Please sign in to comment.