Skip to content

Commit

Permalink
Merge pull request #271 from vshn/pdb-bug
Browse files Browse the repository at this point in the history
Allow deletion of PDBs
  • Loading branch information
zugao authored Nov 25, 2024
2 parents 4e3d1c8 + a4a8183 commit b1ec9ef
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 b1ec9ef

Please sign in to comment.