From 37f615c9bb697cbb9416c70ab23eecf4ffb2bd01 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Tue, 7 Feb 2023 12:44:32 +0300 Subject: [PATCH] :zap: Add a grace period of a second before calling Hub endpoints --- cmd/tapRunner.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/tapRunner.go b/cmd/tapRunner.go index 4f92e1a86..403f67dd1 100644 --- a/cmd/tapRunner.go +++ b/cmd/tapRunner.go @@ -426,7 +426,10 @@ func postHubStarted(ctx context.Context, kubernetesProvider *kubernetes.Provider log.Error().Err(err).Send() } - // Storage Limit + // Grace period + time.Sleep(time.Second) + + // Storage limit connector.PostStorageLimitToHub(config.Config.Tap.StorageLimitBytes()) // Pod regex