From cc980dbaf8952c560db7e0ad611cf6fa90e5a8e6 Mon Sep 17 00:00:00 2001 From: "M. Mert Yildiran" Date: Fri, 23 Jun 2023 02:08:42 +0300 Subject: [PATCH] :zap: Print a warning if the storage limit modified while persistent storage is disabled and default its value --- cmd/tapRunner.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmd/tapRunner.go b/cmd/tapRunner.go index fa6e09bdc..e17f3fe91 100644 --- a/cmd/tapRunner.go +++ b/cmd/tapRunner.go @@ -56,6 +56,11 @@ func tap() { return } + if !config.Config.Tap.PersistentStorage { + config.Config.Tap.StorageLimit = "200Mi" + log.Warn().Msg("Storage limit cannot be modified while persistentstorage is set to false!") + } + log.Info(). Str("limit", config.Config.Tap.StorageLimit). Msg(fmt.Sprintf("%s will store the traffic up to a limit (per node). Oldest TCP/UDP streams will be removed once the limit is reached.", misc.Software))