diff --git a/pkg/splunk/enterprise/clustermanager.go b/pkg/splunk/enterprise/clustermanager.go index 31835ee8e..f8aa02083 100644 --- a/pkg/splunk/enterprise/clustermanager.go +++ b/pkg/splunk/enterprise/clustermanager.go @@ -227,7 +227,8 @@ func ApplyClusterManager(ctx context.Context, client splcommon.ControllerClient, // Create podExecClient (use injected one if provided, otherwise create real one) if podExecClient == nil { - podExecClient = splutil.GetPodExecClient(client, cr, "") + cmPodName := GetSplunkStatefulsetPodName(SplunkClusterManager, cr.GetName(), 0) + podExecClient = splutil.GetPodExecClient(client, cr, cmPodName) } // Add a splunk operator telemetry app diff --git a/pkg/splunk/enterprise/names.go b/pkg/splunk/enterprise/names.go index dd232b821..d2597d1db 100644 --- a/pkg/splunk/enterprise/names.go +++ b/pkg/splunk/enterprise/names.go @@ -210,7 +210,7 @@ version = 1.0.0 ` telAppDefMetaConfString = `[] -access = read : [ * ], write : [ admin ] +access = read : [ * ], write : [ admin ] ` // Command to create telemetry app on non SHC scenarios