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