Skip to content

Commit

Permalink
Fix the GetRemovalMode function to actuvally use removal mode
Browse files Browse the repository at this point in the history
  • Loading branch information
johscheuer committed Jul 20, 2023
1 parent a2ae1e3 commit 9452a71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/v1beta2/foundationdbcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -2233,11 +2233,11 @@ func (cluster *FoundationDBCluster) GetDNSDomain() string {

// GetRemovalMode returns the removal mode of the cluster or default to PodUpdateModeZone if unset.
func (cluster *FoundationDBCluster) GetRemovalMode() PodUpdateMode {
if cluster.Spec.AutomationOptions.DeletionMode == "" {
if cluster.Spec.AutomationOptions.RemovalMode == "" {
return PodUpdateModeZone
}

return cluster.Spec.AutomationOptions.DeletionMode
return cluster.Spec.AutomationOptions.RemovalMode
}

// GetWaitBetweenRemovalsSeconds returns the WaitDurationBetweenRemovals if set or defaults to 60s.
Expand Down

0 comments on commit 9452a71

Please sign in to comment.