diff --git a/pkg/splunk/enterprise/indexercluster.go b/pkg/splunk/enterprise/indexercluster.go index e80ee7ec3..e7fa45ccc 100644 --- a/pkg/splunk/enterprise/indexercluster.go +++ b/pkg/splunk/enterprise/indexercluster.go @@ -1123,6 +1123,10 @@ func (mgr *indexerClusterPodManager) isIndexerClusterReadyForUpgrade(ctx context // get the clusterManagerRef attached to the instance clusterManagerRef := cr.Spec.ClusterManagerRef + if mgr.c == nil { + mgr.c = c + } + cm := mgr.getClusterManagerClient(ctx) clusterInfo, err := cm.GetClusterInfo(false) if err != nil {