Skip to content

Commit

Permalink
fix(restart): Reset resource version job job restart
Browse files Browse the repository at this point in the history
Signed-off-by: Vincent Boutour <[email protected]>
  • Loading branch information
ViBiOh committed Aug 9, 2023
1 parent 957feb5 commit aa0a6fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ var restartCmd = &cobra.Command{
return err
}

job.ResourceVersion = ""

_, err = kube.BatchV1().Jobs(kube.Namespace).Create(ctx, job, v1.CreateOptions{})
return err
case "sts", "statefulset", "statefulsets":
Expand Down

0 comments on commit aa0a6fd

Please sign in to comment.