Skip to content

Commit

Permalink
Revert function change
Browse files Browse the repository at this point in the history
  • Loading branch information
ddl-dclegg committed Nov 12, 2024
1 parent b241a6b commit 91d9624
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions modules/eks/submodules/k8s/templates/k8s-functions.sh.tftpl
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,7 @@ kubectl_cmd() {
}

wait_for_single_node() {
# Derive timeout from first argument
TIMEOUT="${1:-600}"
TIMEOUT=1200
ELAPSED_TIME=0
SLEEP_INTERVAL=30

Expand Down
2 changes: 1 addition & 1 deletion modules/single-node/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ resource "terraform_data" "node_is_ready" {
# Even though the node is ready coredns hangs or takes 15m, waiting a bit reduces it to 15s.
# https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1801
provisioner "local-exec" {
command = "bash ./${basename(var.eks_info.k8s_pre_setup_sh_file)} wait_for_single_node 1200 && sleep 60"
command = "bash ./${basename(var.eks_info.k8s_pre_setup_sh_file)} wait_for_single_node && sleep 60"
interpreter = ["bash", "-c"]
working_dir = dirname(var.eks_info.k8s_pre_setup_sh_file)
}
Expand Down

0 comments on commit 91d9624

Please sign in to comment.