Skip to content

Commit

Permalink
Allow deletion of PDBs
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Saratura committed Nov 25, 2024
1 parent 4e3d1c8 commit a4a8183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/comp-functions/functions/common/pdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ func AddPDBSettings[T client.Object](ctx context.Context, obj T, svc *runtime.Se
},
}

err = svc.SetDesiredKubeObject(x, comp.GetName()+"-pdb")
err = svc.SetDesiredKubeObject(x, comp.GetName()+"-pdb", runtime.KubeOptionAllowDeletion)
if err != nil {
return runtime.NewFatalResult(fmt.Errorf("could not set desired kube compect: %w", err))
}
Expand Down

0 comments on commit a4a8183

Please sign in to comment.