Skip to content

Commit

Permalink
fix(operator): missing default case
Browse files Browse the repository at this point in the history
  • Loading branch information
David Ragot committed Aug 6, 2024
1 parent ff4fbcd commit 82a99bf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,9 @@ func hasDeploymentStrategyChanged(ctx core.Context, stack *v1beta1.Stack, ledger
return uninstallLedgerMonoWriterMultipleReader(ctx, stack)
case v1beta1.DeploymentStrategyMonoWriterMultipleReader:
return core.DeleteIfExists[*appsv1.Deployment](ctx, core.GetNamespacedResourceName(stack.Name, "ledger"))
default:
return fmt.Errorf("unknown deployment strategy %s", strategy)
}
return
}

func installLedger(ctx core.Context, stack *v1beta1.Stack,
Expand Down

0 comments on commit 82a99bf

Please sign in to comment.