added tap acceptance tests, fixed duplicate namespace problem (#244)

This commit is contained in:
RoyUP9
2021-08-26 09:56:18 +03:00
committed by GitHub
parent 2575ad722a
commit 35e40cd230
12 changed files with 1151 additions and 105 deletions

View File

@@ -561,7 +561,7 @@ func getNamespaces(kubernetesProvider *kubernetes.Provider) []string {
if config.Config.Tap.AllNamespaces {
return []string{mizu.K8sAllNamespaces}
} else if len(config.Config.Tap.Namespaces) > 0 {
return config.Config.Tap.Namespaces
return mizu.Unique(config.Config.Tap.Namespaces)
} else {
return []string{kubernetesProvider.CurrentNamespace()}
}