parent
c707a4e7c6
commit
5f900b86f5
3 changed files with 3 additions and 8 deletions
|
@ -6,10 +6,7 @@ package kubernetes
|
|||
// see namespaceExposed.
|
||||
func (k *Kubernetes) filteredNamespaceExists(namespace string) bool {
|
||||
_, err := k.APIConn.GetNamespaceByName(namespace)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
return err == nil
|
||||
}
|
||||
|
||||
// configuredNamespace returns true when the namespace is exposed through the plugin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue