Skip to content

Commit

Permalink
Added mgr client
Browse files Browse the repository at this point in the history
  • Loading branch information
tgarg-splunk committed Aug 9, 2023
1 parent 29b174f commit 7cca219
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/splunk/enterprise/indexercluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7cca219

Please sign in to comment.