From 3c3f33325c97d41d20b681be2a2edc0e9b29563c Mon Sep 17 00:00:00 2001 From: Brett Lawson Date: Tue, 24 Sep 2024 16:41:33 -0700 Subject: [PATCH] Adjusted private endpoint setup delay to 30s. The original 10s delay was not sufficient to guarentee the propagation of the private dns names throughout AWS's infrastructure. Adjusting it to 30s to try and make it more reliable. 90% of the time, we ended up needing to wait for 5m+ due to negative cacheing. --- utils/awscontrol/privateendpointscontroller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/awscontrol/privateendpointscontroller.go b/utils/awscontrol/privateendpointscontroller.go index 1072682..4d71ddd 100644 --- a/utils/awscontrol/privateendpointscontroller.go +++ b/utils/awscontrol/privateendpointscontroller.go @@ -160,7 +160,7 @@ func (c *PrivateEndpointsController) EnableVPCEndpointPrivateDNS(ctx context.Con // its safer for us to sleep here for 10s than to accidentally fetch the DNS // entry before its been propagated and then need to wait 5m for it to update. - time.Sleep(10 * time.Second) + time.Sleep(30 * time.Second) return nil }