Skip to content

Commit 3ef4bbf

Browse files
authored
removed and tested dependency on ip.finish (#156)
Signed-off-by: Ali Mukadam <[email protected]>
1 parent e4607dc commit 3ef4bbf

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Local .terraform directories
22
**/.terraform/*
33

4+
provider.tf
5+
46
# .tfstate files
57
*.tfstate
68
*.tfstate.*

modules/oke/kubeconfig.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ resource "null_resource" "install_kubectl_admin" {
5858
count = var.oke_admin.bastion_enabled == true && var.oke_admin.admin_enabled == true ? 1 : 0
5959
}
6060

61-
# wait for 1. admin being ready 2. instance_principal created 3. kubectl is installed (the script will create the .kube directory)
61+
# wait for 1. admin being ready 2. kubectl is installed (the script will create the .kube directory)
6262
resource null_resource "wait_for_admin" {
6363
connection {
6464
host = var.oke_admin.admin_private_ip
@@ -76,7 +76,7 @@ resource null_resource "wait_for_admin" {
7676

7777
provisioner "remote-exec" {
7878
inline = [
79-
"while [ ! -f /home/opc/admin.finish ] || [ ! -f /home/opc/ip.finish ]; do sleep 10; done",
79+
"while [ ! -f /home/opc/admin.finish ]; do sleep 10; done",
8080
]
8181
}
8282

0 commit comments

Comments
 (0)