Skip to content

Commit

Permalink
Don't create ingress until ingress controller is up
Browse files Browse the repository at this point in the history
  • Loading branch information
viveklak committed Nov 12, 2021
1 parent 26fc8e4 commit f133163
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/sdk/nodejs/examples/ingress/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ if (!useV1Beta1Ingress) {
}
}],
}
});
// Don't want to race with the ingress controller admission webhook being fully available.
}, { dependsOn: [ingressController] });
} else {
// Note - this uses the built-in GKE ingress controller. This will not work across other Kubernetes providers.
feIngress = new k8s.networking.v1beta1.Ingress("feIngress", {
Expand All @@ -345,6 +346,7 @@ if (!useV1Beta1Ingress) {
}
}],
}
});
// Don't want to race with the ingress controller admission controller being fully available.
}, { dependsOn: [ingressController] });
}
export const ingressIp = feIngress.status.loadBalancer.ingress[0].ip;

0 comments on commit f133163

Please sign in to comment.