Skip to content

Commit

Permalink
Fix skip hardware validation logic for InPlace upgrades (#8781)
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Ganesh <[email protected]>
Co-authored-by: Rahul Ganesh <[email protected]>
  • Loading branch information
eks-distro-pr-bot and Rahul Ganesh committed Sep 17, 2024
1 parent 579e1c8 commit 6474f6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/providers/tinkerbell/upgrade.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (p *Provider) SetupAndValidateUpgradeCluster(ctx context.Context, cluster *
return err
}

upgradeStrategy := currentClusterSpec.Cluster.Spec.ControlPlaneConfiguration.UpgradeRolloutStrategy
upgradeStrategy := clusterSpec.Cluster.Spec.ControlPlaneConfiguration.UpgradeRolloutStrategy
// skip extra hardware validation for InPlace upgrades
if upgradeStrategy == nil || upgradeStrategy.Type != v1alpha1.InPlaceStrategyType {
if err := p.validateAvailableHardwareForUpgrade(ctx, currentClusterSpec, clusterSpec); err != nil {
Expand Down

0 comments on commit 6474f6b

Please sign in to comment.