From b0b9bbcfd679ad73225be21d90bfa7da81c6db90 Mon Sep 17 00:00:00 2001 From: pweil- Date: Mon, 20 Feb 2017 13:39:49 -0500 Subject: [PATCH] only report no running pods once --- pkg/diagnostics/cluster/registry.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/diagnostics/cluster/registry.go b/pkg/diagnostics/cluster/registry.go index f6005391f31a..d28a5d7f0611 100644 --- a/pkg/diagnostics/cluster/registry.go +++ b/pkg/diagnostics/cluster/registry.go @@ -175,7 +175,8 @@ func (d *ClusterRegistry) Check() types.DiagnosticResult { if service := d.getRegistryService(r); service != nil { // Check that it actually has pod(s) selected and running if runningPods := d.getRegistryPods(service, r); len(runningPods) == 0 { - r.Error("DClu1001", nil, fmt.Sprintf(clRegNoRunningPods, registryName)) + // not reporting an error here, if there are no running pods an error + // is reported by getRegistryPods return r } else if d.checkRegistryEndpoints(runningPods, r) { // Check that matching endpoint exists on the service // attempt to create an imagestream and see if it gets the same registry service IP from the service cache