Update tapConfig.go

This commit is contained in:
Rami Berman 2021-11-16 17:02:50 +02:00
parent 8ed8f562f0
commit 5c7c02c4ab

View File

@ -3,6 +3,7 @@ package configStructs
import (
"errors"
"fmt"
cliConfig "github.com/up9inc/mizu/cli/config"
"github.com/up9inc/mizu/cli/uiUtils"
"github.com/up9inc/mizu/shared/logger"
"regexp"
@ -83,7 +84,7 @@ func (config *TapConfig) Validate() error {
}
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