make update after timeZone support for CronJob

Kubernetes-commit: d26e6cca7255c2c96ba28e8e5550bbc87a7577b9
This commit is contained in:
Ross Peoples 2022-03-28 14:59:03 -05:00 committed by Kubernetes Publisher
parent 0c14d0c485
commit 400b1becd3
3 changed files with 24 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import (
// with apply. // with apply.
type CronJobSpecApplyConfiguration struct { type CronJobSpecApplyConfiguration struct {
Schedule *string `json:"schedule,omitempty"` Schedule *string `json:"schedule,omitempty"`
TimeZone *string `json:"timeZone,omitempty"`
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
ConcurrencyPolicy *v1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` ConcurrencyPolicy *v1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
Suspend *bool `json:"suspend,omitempty"` Suspend *bool `json:"suspend,omitempty"`
@ -48,6 +49,14 @@ func (b *CronJobSpecApplyConfiguration) WithSchedule(value string) *CronJobSpecA
return b return b
} }
// WithTimeZone sets the TimeZone field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TimeZone field is set to the value of the last call.
func (b *CronJobSpecApplyConfiguration) WithTimeZone(value string) *CronJobSpecApplyConfiguration {
b.TimeZone = &value
return b
}
// WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value // WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the StartingDeadlineSeconds field is set to the value of the last call. // If called multiple times, the StartingDeadlineSeconds field is set to the value of the last call.

View File

@ -26,6 +26,7 @@ import (
// with apply. // with apply.
type CronJobSpecApplyConfiguration struct { type CronJobSpecApplyConfiguration struct {
Schedule *string `json:"schedule,omitempty"` Schedule *string `json:"schedule,omitempty"`
TimeZone *string `json:"timeZone,omitempty"`
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"` StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty"`
ConcurrencyPolicy *v1beta1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"` ConcurrencyPolicy *v1beta1.ConcurrencyPolicy `json:"concurrencyPolicy,omitempty"`
Suspend *bool `json:"suspend,omitempty"` Suspend *bool `json:"suspend,omitempty"`
@ -48,6 +49,14 @@ func (b *CronJobSpecApplyConfiguration) WithSchedule(value string) *CronJobSpecA
return b return b
} }
// WithTimeZone sets the TimeZone field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the TimeZone field is set to the value of the last call.
func (b *CronJobSpecApplyConfiguration) WithTimeZone(value string) *CronJobSpecApplyConfiguration {
b.TimeZone = &value
return b
}
// WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value // WithStartingDeadlineSeconds sets the StartingDeadlineSeconds field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations. // and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the StartingDeadlineSeconds field is set to the value of the last call. // If called multiple times, the StartingDeadlineSeconds field is set to the value of the last call.

View File

@ -2956,6 +2956,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: suspend - name: suspend
type: type:
scalar: boolean scalar: boolean
- name: timeZone
type:
scalar: string
- name: io.k8s.api.batch.v1.CronJobStatus - name: io.k8s.api.batch.v1.CronJobStatus
map: map:
fields: fields:
@ -3157,6 +3160,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: suspend - name: suspend
type: type:
scalar: boolean scalar: boolean
- name: timeZone
type:
scalar: string
- name: io.k8s.api.batch.v1beta1.CronJobStatus - name: io.k8s.api.batch.v1beta1.CronJobStatus
map: map:
fields: fields: