Skip to content

Commit

Permalink
fix: test scope mismatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
mojtaba-esk committed Jul 22, 2024
1 parent a122afa commit 65d1235
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/knuu/knuu.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 65d1235

Please sign in to comment.