commit
8e5a7058c3
|
|
@ -1,4 +1,5 @@
|
||||||
.vscode
|
.vscode
|
||||||
|
.idea
|
||||||
k9s.log
|
k9s.log
|
||||||
.envrc
|
.envrc
|
||||||
cov.out
|
cov.out
|
||||||
|
|
|
||||||
|
|
@ -35,8 +35,8 @@ func (n *Namespace) Validate(c Connection, ks KubeSettings) {
|
||||||
}
|
}
|
||||||
nn := ks.NamespaceNames(nns)
|
nn := ks.NamespaceNames(nns)
|
||||||
if !n.isAllNamespace() && !InList(nn, n.Active) {
|
if !n.isAllNamespace() && !InList(nn, n.Active) {
|
||||||
log.Error().Msgf("[Config] Validation error active namespace `%s does not exists", n.Active)
|
log.Error().Msgf("[Config] Validation error active namespace `%s` does not exist", n.Active)
|
||||||
panic(fmt.Errorf("Invalid namespace. The provided namespace `%s does not exists", n.Active))
|
panic(fmt.Errorf("Invalid namespace. The provided namespace `%s` does not exist", n.Active))
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, ns := range n.Favorites {
|
for _, ns := range n.Favorites {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue