Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
Change the default value of CleanPodPolicy to None in comments. (#210)
Browse files Browse the repository at this point in the history
Signed-off-by: Syulin7 <[email protected]>
  • Loading branch information
Syulin7 authored Feb 24, 2023
1 parent 9ec55d1 commit 4dbf18c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/apis/common/v1/openapi_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/apis/common/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const (
// active.
type RunPolicy struct {
// CleanPodPolicy defines the policy to kill pods after the job completes.
// Default to Running.
// Default to None.
CleanPodPolicy *CleanPodPolicy `json:"cleanPodPolicy,omitempty"`

// TTLSecondsAfterFinished is the TTL to clean up jobs.
Expand Down
2 changes: 1 addition & 1 deletion pkg/controller.v1/common/job_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func TestCleanupJobIfTTL(T *testing.T) {
}
oneDayAgo := time.Now()
// one day ago
oneDayAgo.AddDate(0, 0, -1)
_ = oneDayAgo.AddDate(0, 0, -1)
jobStatus := apiv1.JobStatus{
CompletionTime: &metav1.Time{
Time: oneDayAgo,
Expand Down

0 comments on commit 4dbf18c

Please sign in to comment.