mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-06-29 09:39:54 +00:00
Update tapConfig.go
This commit is contained in:
parent
8ed8f562f0
commit
5c7c02c4ab
@ -3,6 +3,7 @@ package configStructs
|
|||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
cliConfig "github.com/up9inc/mizu/cli/config"
|
||||||
"github.com/up9inc/mizu/cli/uiUtils"
|
"github.com/up9inc/mizu/cli/uiUtils"
|
||||||
"github.com/up9inc/mizu/shared/logger"
|
"github.com/up9inc/mizu/shared/logger"
|
||||||
"regexp"
|
"regexp"
|
||||||
@ -83,7 +84,7 @@ func (config *TapConfig) Validate() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if config.NoPersistentVolumeClaim && !config.DaemonMode {
|
if config.NoPersistentVolumeClaim && !config.DaemonMode {
|
||||||
logger.Log.Warningf(uiUtils.Warning, fmt.Sprintf("the --set tap.no-persistent-volume-claim=true flag has no effect without the --%s flag, the claim will not be created anyway.", DaemonModeTapName))
|
logger.Log.Warningf(uiUtils.Warning, fmt.Sprintf("the --%s tap.no-persistent-volume-claim=true flag has no effect without the --%s flag, the claim will not be created anyway.", cliConfig.SetCommandName, DaemonModeTapName))
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user