From 65d1235655344b9763effb13d3d6ba577918e962 Mon Sep 17 00:00:00 2001 From: Mojtaba Date: Mon, 22 Jul 2024 17:55:40 +0330 Subject: [PATCH] fix: test scope mismatch error --- pkg/knuu/knuu.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/knuu/knuu.go b/pkg/knuu/knuu.go index 43227f3..fffc5ba 100644 --- a/pkg/knuu/knuu.go +++ b/pkg/knuu/knuu.go @@ -172,7 +172,8 @@ func validateOptions(opts Options) error { return ErrK8sClientNotSet } - if opts.TestScope != "" && opts.K8sClient != nil && opts.TestScope != opts.K8sClient.Namespace() { + if opts.TestScope != "" && opts.K8sClient != nil && + k8s.SanitizeName(opts.TestScope) != opts.K8sClient.Namespace() { return ErrTestScopeMistMatch.WithParams(opts.TestScope, opts.K8sClient.Namespace()) } return nil