mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-07-04 11:58:41 +00:00
⚡ Print a warning if the storage limit modified while persistent storage is disabled and default its value
This commit is contained in:
parent
1afe27e969
commit
cc980dbaf8
@ -56,6 +56,11 @@ func tap() {
|
|||||||
return
|
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().
|
log.Info().
|
||||||
Str("limit", config.Config.Tap.StorageLimit).
|
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))
|
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))
|
||||||
|
Loading…
Reference in New Issue
Block a user