Change the default namespace from kubeshark to default and use .Release.Namespace in Helm templates

This commit is contained in:
M. Mert Yildiran
2023-06-27 21:06:44 +03:00
parent 1404c68a22
commit b9f9e860b6
22 changed files with 38 additions and 54 deletions

View File

@@ -22,9 +22,9 @@ func FormatError(err error) error {
"in the config file or setting the targeted namespace with --%s %s=<NAMEPSACE>",
err,
misc.Software,
configStructs.SelfNamespaceLabel,
configStructs.ReleaseNamespaceLabel,
config.SetCommandName,
configStructs.SelfNamespaceLabel)
configStructs.ReleaseNamespaceLabel)
} else if syntaxError, isSyntaxError := asRegexSyntaxError(err); isSyntaxError {
errorNew = fmt.Errorf("regex %s is invalid: %w", syntaxError.Expr, err)
} else {