Skip to content

Commit

Permalink
added upgradepath to clustermanager
Browse files Browse the repository at this point in the history
Signed-off-by: vivekr-splunk <94569031+vivekr-splunk@users.noreply.github.com>
  • Loading branch information
vivekr-splunk committed Aug 9, 2023
1 parent d9ced24 commit 0399ef6
Show file tree
Hide file tree
Showing 3 changed files with 546 additions and 245 deletions.
5 changes: 3 additions & 2 deletions pkg/splunk/enterprise/clustermanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,9 +180,10 @@ func ApplyClusterManager(ctx context.Context, client splcommon.ControllerClient,
return result, err
}

cr.Kind = "ClusterManager"
// check if the ClusterManager is ready for version upgrade, if required
continueReconcile, err := isClusterManagerReadyForUpgrade(ctx, client, cr)
if err != nil || !continueReconcile {
continueReconcile, err := UpgradePathValidation(ctx, client, cr, cr.Spec.CommonSplunkSpec, nil)
if err != nil || !continueReconcile {
return result, err
}

Expand Down
Loading

0 comments on commit 0399ef6

Please sign in to comment.