Skip to content
This repository was archived by the owner on May 3, 2023. It is now read-only.

Commit 99700f4

Browse files
authored
Merge pull request #6 from pwillie/timeout
Fix drain-timeout
2 parents f7ed5d6 + 08a8c0f commit 99700f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eks_node_rollout/eks_node_rollout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def rollout_nodes(cluster_name, drain_timeout, dry_run, debug):
289289

290290
node_name = instance["PrivateDnsName"]
291291
logging.info(f'Draining node {node_name} (--timeout={drain_timeout} --dry-run={dry_run})')
292-
output = kubectl.drain(node_name, "--force", "--delete-local-data=true", "--ignore-daemonsets=true", "--timeout={drain_timeout}", f"--dry-run={dry_run}")
292+
output = kubectl.drain(node_name, "--force", "--delete-local-data=true", "--ignore-daemonsets=true", f"--timeout={drain_timeout}", f"--dry-run={dry_run}")
293293
print(output.stdout.decode().rstrip())
294294

295295
terminate_node(asg_client, instance["InstanceId"], dry_run)

0 commit comments

Comments
 (0)