Skip to content

Commit b0b9bbc

Browse files
author
pweil-
committed
only report no running pods once
1 parent 2f858e5 commit b0b9bbc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/diagnostics/cluster/registry.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,8 @@ func (d *ClusterRegistry) Check() types.DiagnosticResult {
175175
if service := d.getRegistryService(r); service != nil {
176176
// Check that it actually has pod(s) selected and running
177177
if runningPods := d.getRegistryPods(service, r); len(runningPods) == 0 {
178-
r.Error("DClu1001", nil, fmt.Sprintf(clRegNoRunningPods, registryName))
178+
// not reporting an error here, if there are no running pods an error
179+
// is reported by getRegistryPods
179180
return r
180181
} else if d.checkRegistryEndpoints(runningPods, r) { // Check that matching endpoint exists on the service
181182
// attempt to create an imagestream and see if it gets the same registry service IP from the service cache

0 commit comments

Comments
 (0)