Disable pod view for ExternalName services (#1196)
Previously all pods in the service's namespace were shown.mine
parent
026adfbfbf
commit
10a52d1241
|
|
@ -60,6 +60,10 @@ func (s *Service) showPods(a *App, _ ui.Tabular, gvr, path string) {
|
|||
return
|
||||
}
|
||||
|
||||
if svc.Spec.Type == v1.ServiceTypeExternalName {
|
||||
a.Flash().Warnf("No pod view available. Service %s is an external service.", path)
|
||||
return
|
||||
}
|
||||
showPodsWithLabels(a, path, svc.Spec.Selector)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue