From 10a52d1241e5d31d6fb7560a0a8aa7b206517e47 Mon Sep 17 00:00:00 2001 From: Daniel Lee Harple Date: Sat, 24 Jul 2021 09:33:29 -0400 Subject: [PATCH] Disable pod view for ExternalName services (#1196) Previously all pods in the service's namespace were shown. --- internal/view/svc.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/view/svc.go b/internal/view/svc.go index dfe31c17..aa03c138 100644 --- a/internal/view/svc.go +++ b/internal/view/svc.go @@ -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) }