Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Feb 23, 2024
1 parent ee646fa commit 2c06573
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion task/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ func (r *Task) Delete(client k8s.Client) (err error) {
pod := &core.Pod{}
pod.Namespace = path.Dir(r.Pod)
pod.Name = path.Base(r.Pod)
err = client.Delete(context.TODO(), pod)
err = client.Delete(context.TODO(), pod, k8s.GracePeriodSeconds(0))
if err != nil {
if !k8serr.IsNotFound(err) {
err = liberr.Wrap(err)
Expand Down Expand Up @@ -665,6 +665,7 @@ func (r *Task) findAddons(client k8s.Client) (addons []crd.Addon, err error) {
err = client.List(
context.TODO(),
&addonList,
k8s.InNamespace(Settings.Hub.Namespace),
k8s.MatchingLabels{
TaskLabel: r.Kind,
})
Expand Down

0 comments on commit 2c06573

Please sign in to comment.