mirror of https://github.com/k3s-io/k3s
Add default information to CronJobSpec
parent
e18843d353
commit
70b8df6742
|
@ -233,6 +233,7 @@ type CronJobSpec struct {
|
|||
StartingDeadlineSeconds *int64
|
||||
|
||||
// ConcurrencyPolicy specifies how to treat concurrent executions of a Job.
|
||||
// Defaults to Allow.
|
||||
// +optional
|
||||
ConcurrencyPolicy ConcurrencyPolicy
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ func TestSetDefaultCronJob(t *testing.T) {
|
|||
},
|
||||
},
|
||||
},
|
||||
"nothing should be defaulted": {
|
||||
"set fields should not be defaulted": {
|
||||
original: &CronJob{
|
||||
Spec: CronJobSpec{
|
||||
ConcurrencyPolicy: ForbidConcurrent,
|
||||
|
|
|
@ -94,6 +94,7 @@ type CronJobSpec struct {
|
|||
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=startingDeadlineSeconds"`
|
||||
|
||||
// ConcurrencyPolicy specifies how to treat concurrent executions of a Job.
|
||||
// Defaults to Allow.
|
||||
// +optional
|
||||
ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty" protobuf:"bytes,3,opt,name=concurrencyPolicy,casttype=ConcurrencyPolicy"`
|
||||
|
||||
|
|
Loading…
Reference in New Issue