mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-25 22:51:40 +00:00
Staging changes for docs in batch types.go
Kubernetes-commit: a307c47dfd417889967413d5e50515e499b3b772
This commit is contained in:
parent
8a68cfcf75
commit
449f25e669
@ -31,12 +31,12 @@ type Job struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta
|
metav1.ObjectMeta
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job.
|
// Specification of the desired behavior of a job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Spec JobSpec
|
Spec JobSpec
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
// Current status of a job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Status JobStatus
|
Status JobStatus
|
||||||
@ -45,12 +45,12 @@ type Job struct {
|
|||||||
// JobList is a collection of jobs.
|
// JobList is a collection of jobs.
|
||||||
type JobList struct {
|
type JobList struct {
|
||||||
metav1.TypeMeta
|
metav1.TypeMeta
|
||||||
// Standard list metadata
|
// Standard list metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
metav1.ListMeta
|
metav1.ListMeta
|
||||||
|
|
||||||
// Items is the list of Job.
|
// items is the list of Jobs.
|
||||||
Items []Job
|
Items []Job
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,7 +62,7 @@ type JobTemplate struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta
|
metav1.ObjectMeta
|
||||||
|
|
||||||
// Template defines jobs that will be created from this template
|
// Defines jobs that will be created from this template.
|
||||||
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Template JobTemplateSpec
|
Template JobTemplateSpec
|
||||||
@ -84,14 +84,14 @@ type JobTemplateSpec struct {
|
|||||||
// JobSpec describes how the job execution will look like.
|
// JobSpec describes how the job execution will look like.
|
||||||
type JobSpec struct {
|
type JobSpec struct {
|
||||||
|
|
||||||
// Parallelism specifies the maximum desired number of pods the job should
|
// Specifies the maximum desired number of pods the job should
|
||||||
// run at any given time. The actual number of pods running in steady state will
|
// run at any given time. The actual number of pods running in steady state will
|
||||||
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
||||||
// i.e. when the work left to do is less than max parallelism.
|
// i.e. when the work left to do is less than max parallelism.
|
||||||
// +optional
|
// +optional
|
||||||
Parallelism *int32
|
Parallelism *int32
|
||||||
|
|
||||||
// Completions specifies the desired number of successfully finished pods the
|
// Specifies the desired number of successfully finished pods the
|
||||||
// job should be run with. Setting to nil means that the success of any
|
// job should be run with. Setting to nil means that the success of any
|
||||||
// pod signals the success of all pods, and allows parallelism to have any positive
|
// pod signals the success of all pods, and allows parallelism to have any positive
|
||||||
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
||||||
@ -104,12 +104,12 @@ type JobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
ActiveDeadlineSeconds *int64
|
ActiveDeadlineSeconds *int64
|
||||||
|
|
||||||
// Selector is a label query over pods that should match the pod count.
|
// A label query over pods that should match the pod count.
|
||||||
// Normally, the system sets this field for you.
|
// Normally, the system sets this field for you.
|
||||||
// +optional
|
// +optional
|
||||||
Selector *metav1.LabelSelector
|
Selector *metav1.LabelSelector
|
||||||
|
|
||||||
// ManualSelector controls generation of pod labels and pod selectors.
|
// manualSelector controls generation of pod labels and pod selectors.
|
||||||
// Leave `manualSelector` unset unless you are certain what you are doing.
|
// Leave `manualSelector` unset unless you are certain what you are doing.
|
||||||
// When false or unset, the system pick labels unique to this job
|
// When false or unset, the system pick labels unique to this job
|
||||||
// and appends those labels to the pod template. When true,
|
// and appends those labels to the pod template. When true,
|
||||||
@ -121,39 +121,38 @@ type JobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
ManualSelector *bool
|
ManualSelector *bool
|
||||||
|
|
||||||
// Template is the object that describes the pod that will be created when
|
// Describes the pod that will be created when executing a job.
|
||||||
// executing a job.
|
|
||||||
Template api.PodTemplateSpec
|
Template api.PodTemplateSpec
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobStatus represents the current state of a Job.
|
// JobStatus represents the current state of a Job.
|
||||||
type JobStatus struct {
|
type JobStatus struct {
|
||||||
|
|
||||||
// Conditions represent the latest available observations of an object's current state.
|
// The latest available observations of an object's current state.
|
||||||
// +optional
|
// +optional
|
||||||
Conditions []JobCondition
|
Conditions []JobCondition
|
||||||
|
|
||||||
// StartTime represents time when the job was acknowledged by the Job Manager.
|
// Represents time when the job was acknowledged by the job controller.
|
||||||
// It is not guaranteed to be set in happens-before order across separate operations.
|
// It is not guaranteed to be set in happens-before order across separate operations.
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
// It is represented in RFC3339 form and is in UTC.
|
||||||
// +optional
|
// +optional
|
||||||
StartTime *metav1.Time
|
StartTime *metav1.Time
|
||||||
|
|
||||||
// CompletionTime represents time when the job was completed. It is not guaranteed to
|
// Represents time when the job was completed. It is not guaranteed to
|
||||||
// be set in happens-before order across separate operations.
|
// be set in happens-before order across separate operations.
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
// It is represented in RFC3339 form and is in UTC.
|
||||||
// +optional
|
// +optional
|
||||||
CompletionTime *metav1.Time
|
CompletionTime *metav1.Time
|
||||||
|
|
||||||
// Active is the number of actively running pods.
|
// The number of actively running pods.
|
||||||
// +optional
|
// +optional
|
||||||
Active int32
|
Active int32
|
||||||
|
|
||||||
// Succeeded is the number of pods which reached Phase Succeeded.
|
// The number of pods which reached phase Succeeded.
|
||||||
// +optional
|
// +optional
|
||||||
Succeeded int32
|
Succeeded int32
|
||||||
|
|
||||||
// Failed is the number of pods which reached Phase Failed.
|
// The number of pods which reached phase Failed.
|
||||||
// +optional
|
// +optional
|
||||||
Failed int32
|
Failed int32
|
||||||
}
|
}
|
||||||
@ -198,12 +197,12 @@ type CronJob struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta
|
metav1.ObjectMeta
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job, including the schedule.
|
// Specification of the desired behavior of a cron job, including the schedule.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Spec CronJobSpec
|
Spec CronJobSpec
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
// Current status of a cron job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Status CronJobStatus
|
Status CronJobStatus
|
||||||
@ -212,19 +211,19 @@ type CronJob struct {
|
|||||||
// CronJobList is a collection of cron jobs.
|
// CronJobList is a collection of cron jobs.
|
||||||
type CronJobList struct {
|
type CronJobList struct {
|
||||||
metav1.TypeMeta
|
metav1.TypeMeta
|
||||||
// Standard list metadata
|
// Standard list metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
metav1.ListMeta
|
metav1.ListMeta
|
||||||
|
|
||||||
// Items is the list of CronJob.
|
// items is the list of CronJobs.
|
||||||
Items []CronJob
|
Items []CronJob
|
||||||
}
|
}
|
||||||
|
|
||||||
// CronJobSpec describes how the job execution will look like and when it will actually run.
|
// CronJobSpec describes how the job execution will look like and when it will actually run.
|
||||||
type CronJobSpec struct {
|
type CronJobSpec struct {
|
||||||
|
|
||||||
// Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
||||||
Schedule string
|
Schedule string
|
||||||
|
|
||||||
// Optional deadline in seconds for starting the job if it misses scheduled
|
// Optional deadline in seconds for starting the job if it misses scheduled
|
||||||
@ -232,18 +231,17 @@ type CronJobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
StartingDeadlineSeconds *int64
|
StartingDeadlineSeconds *int64
|
||||||
|
|
||||||
// ConcurrencyPolicy specifies how to treat concurrent executions of a Job.
|
// Specifies how to treat concurrent executions of a Job.
|
||||||
// Defaults to Allow.
|
// Defaults to Allow.
|
||||||
// +optional
|
// +optional
|
||||||
ConcurrencyPolicy ConcurrencyPolicy
|
ConcurrencyPolicy ConcurrencyPolicy
|
||||||
|
|
||||||
// Suspend flag tells the controller to suspend subsequent executions, it does
|
// This flag tells the controller to suspend subsequent executions, it does
|
||||||
// not apply to already started executions. Defaults to false.
|
// not apply to already started executions. Defaults to false.
|
||||||
// +optional
|
// +optional
|
||||||
Suspend *bool
|
Suspend *bool
|
||||||
|
|
||||||
// JobTemplate is the object that describes the job that will be created when
|
// Specifies the job that will be created when executing a CronJob.
|
||||||
// executing a CronJob.
|
|
||||||
JobTemplate JobTemplateSpec
|
JobTemplate JobTemplateSpec
|
||||||
|
|
||||||
// The number of successful finished jobs to retain.
|
// The number of successful finished jobs to retain.
|
||||||
@ -277,11 +275,11 @@ const (
|
|||||||
|
|
||||||
// CronJobStatus represents the current state of a cron job.
|
// CronJobStatus represents the current state of a cron job.
|
||||||
type CronJobStatus struct {
|
type CronJobStatus struct {
|
||||||
// Active holds pointers to currently running jobs.
|
// A list of pointers to currently running jobs.
|
||||||
// +optional
|
// +optional
|
||||||
Active []api.ObjectReference
|
Active []api.ObjectReference
|
||||||
|
|
||||||
// LastScheduleTime keeps information of when was the last time the job was successfully scheduled.
|
// Information when was the last time the job was successfully scheduled.
|
||||||
// +optional
|
// +optional
|
||||||
LastScheduleTime *metav1.Time
|
LastScheduleTime *metav1.Time
|
||||||
}
|
}
|
||||||
|
@ -38,12 +38,12 @@ message Job {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job.
|
// Specification of the desired behavior of a job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional JobSpec spec = 2;
|
optional JobSpec spec = 2;
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
// Current status of a job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional JobStatus status = 3;
|
optional JobStatus status = 3;
|
||||||
@ -76,18 +76,18 @@ message JobCondition {
|
|||||||
|
|
||||||
// JobList is a collection of jobs.
|
// JobList is a collection of jobs.
|
||||||
message JobList {
|
message JobList {
|
||||||
// Standard list metadata
|
// Standard list metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||||
|
|
||||||
// Items is the list of Job.
|
// items is the list of Jobs.
|
||||||
repeated Job items = 2;
|
repeated Job items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobSpec describes how the job execution will look like.
|
// JobSpec describes how the job execution will look like.
|
||||||
message JobSpec {
|
message JobSpec {
|
||||||
// Parallelism specifies the maximum desired number of pods the job should
|
// Specifies the maximum desired number of pods the job should
|
||||||
// run at any given time. The actual number of pods running in steady state will
|
// run at any given time. The actual number of pods running in steady state will
|
||||||
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
||||||
// i.e. when the work left to do is less than max parallelism.
|
// i.e. when the work left to do is less than max parallelism.
|
||||||
@ -95,7 +95,7 @@ message JobSpec {
|
|||||||
// +optional
|
// +optional
|
||||||
optional int32 parallelism = 1;
|
optional int32 parallelism = 1;
|
||||||
|
|
||||||
// Completions specifies the desired number of successfully finished pods the
|
// Specifies the desired number of successfully finished pods the
|
||||||
// job should be run with. Setting to nil means that the success of any
|
// job should be run with. Setting to nil means that the success of any
|
||||||
// pod signals the success of all pods, and allows parallelism to have any positive
|
// pod signals the success of all pods, and allows parallelism to have any positive
|
||||||
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
||||||
@ -109,13 +109,13 @@ message JobSpec {
|
|||||||
// +optional
|
// +optional
|
||||||
optional int64 activeDeadlineSeconds = 3;
|
optional int64 activeDeadlineSeconds = 3;
|
||||||
|
|
||||||
// Selector is a label query over pods that should match the pod count.
|
// A label query over pods that should match the pod count.
|
||||||
// Normally, the system sets this field for you.
|
// Normally, the system sets this field for you.
|
||||||
// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
|
// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;
|
||||||
|
|
||||||
// ManualSelector controls generation of pod labels and pod selectors.
|
// manualSelector controls generation of pod labels and pod selectors.
|
||||||
// Leave `manualSelector` unset unless you are certain what you are doing.
|
// Leave `manualSelector` unset unless you are certain what you are doing.
|
||||||
// When false or unset, the system pick labels unique to this job
|
// When false or unset, the system pick labels unique to this job
|
||||||
// and appends those labels to the pod template. When true,
|
// and appends those labels to the pod template. When true,
|
||||||
@ -128,42 +128,41 @@ message JobSpec {
|
|||||||
// +optional
|
// +optional
|
||||||
optional bool manualSelector = 5;
|
optional bool manualSelector = 5;
|
||||||
|
|
||||||
// Template is the object that describes the pod that will be created when
|
// Describes the pod that will be created when executing a job.
|
||||||
// executing a job.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
// More info: http://kubernetes.io/docs/user-guide/jobs
|
||||||
optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 6;
|
optional k8s.io.kubernetes.pkg.api.v1.PodTemplateSpec template = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobStatus represents the current state of a Job.
|
// JobStatus represents the current state of a Job.
|
||||||
message JobStatus {
|
message JobStatus {
|
||||||
// Conditions represent the latest available observations of an object's current state.
|
// The latest available observations of an object's current state.
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
// More info: http://kubernetes.io/docs/user-guide/jobs
|
||||||
// +optional
|
// +optional
|
||||||
// +patchMergeKey=type
|
// +patchMergeKey=type
|
||||||
// +patchStrategy=merge
|
// +patchStrategy=merge
|
||||||
repeated JobCondition conditions = 1;
|
repeated JobCondition conditions = 1;
|
||||||
|
|
||||||
// StartTime represents time when the job was acknowledged by the Job Manager.
|
// Represents time when the job was acknowledged by the job controller.
|
||||||
// It is not guaranteed to be set in happens-before order across separate operations.
|
// It is not guaranteed to be set in happens-before order across separate operations.
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
// It is represented in RFC3339 form and is in UTC.
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time startTime = 2;
|
||||||
|
|
||||||
// CompletionTime represents time when the job was completed. It is not guaranteed to
|
// Represents time when the job was completed. It is not guaranteed to
|
||||||
// be set in happens-before order across separate operations.
|
// be set in happens-before order across separate operations.
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
// It is represented in RFC3339 form and is in UTC.
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time completionTime = 3;
|
||||||
|
|
||||||
// Active is the number of actively running pods.
|
// The number of actively running pods.
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 active = 4;
|
optional int32 active = 4;
|
||||||
|
|
||||||
// Succeeded is the number of pods which reached Phase Succeeded.
|
// The number of pods which reached phase Succeeded.
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 succeeded = 5;
|
optional int32 succeeded = 5;
|
||||||
|
|
||||||
// Failed is the number of pods which reached Phase Failed.
|
// The number of pods which reached phase Failed.
|
||||||
// +optional
|
// +optional
|
||||||
optional int32 failed = 6;
|
optional int32 failed = 6;
|
||||||
}
|
}
|
||||||
|
@ -31,12 +31,12 @@ type Job struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job.
|
// Specification of the desired behavior of a job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
|
Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
// Current status of a job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
||||||
@ -45,19 +45,19 @@ type Job struct {
|
|||||||
// JobList is a collection of jobs.
|
// JobList is a collection of jobs.
|
||||||
type JobList struct {
|
type JobList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard list metadata
|
// Standard list metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Items is the list of Job.
|
// items is the list of Jobs.
|
||||||
Items []Job `json:"items" protobuf:"bytes,2,rep,name=items"`
|
Items []Job `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// JobSpec describes how the job execution will look like.
|
// JobSpec describes how the job execution will look like.
|
||||||
type JobSpec struct {
|
type JobSpec struct {
|
||||||
|
|
||||||
// Parallelism specifies the maximum desired number of pods the job should
|
// Specifies the maximum desired number of pods the job should
|
||||||
// run at any given time. The actual number of pods running in steady state will
|
// run at any given time. The actual number of pods running in steady state will
|
||||||
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
// be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism),
|
||||||
// i.e. when the work left to do is less than max parallelism.
|
// i.e. when the work left to do is less than max parallelism.
|
||||||
@ -65,7 +65,7 @@ type JobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"`
|
Parallelism *int32 `json:"parallelism,omitempty" protobuf:"varint,1,opt,name=parallelism"`
|
||||||
|
|
||||||
// Completions specifies the desired number of successfully finished pods the
|
// Specifies the desired number of successfully finished pods the
|
||||||
// job should be run with. Setting to nil means that the success of any
|
// job should be run with. Setting to nil means that the success of any
|
||||||
// pod signals the success of all pods, and allows parallelism to have any positive
|
// pod signals the success of all pods, and allows parallelism to have any positive
|
||||||
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
// value. Setting to 1 means that parallelism is limited to 1 and the success of that
|
||||||
@ -79,13 +79,13 @@ type JobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"`
|
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"`
|
||||||
|
|
||||||
// Selector is a label query over pods that should match the pod count.
|
// A label query over pods that should match the pod count.
|
||||||
// Normally, the system sets this field for you.
|
// Normally, the system sets this field for you.
|
||||||
// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
|
// More info: http://kubernetes.io/docs/user-guide/labels#label-selectors
|
||||||
// +optional
|
// +optional
|
||||||
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"`
|
Selector *metav1.LabelSelector `json:"selector,omitempty" protobuf:"bytes,4,opt,name=selector"`
|
||||||
|
|
||||||
// ManualSelector controls generation of pod labels and pod selectors.
|
// manualSelector controls generation of pod labels and pod selectors.
|
||||||
// Leave `manualSelector` unset unless you are certain what you are doing.
|
// Leave `manualSelector` unset unless you are certain what you are doing.
|
||||||
// When false or unset, the system pick labels unique to this job
|
// When false or unset, the system pick labels unique to this job
|
||||||
// and appends those labels to the pod template. When true,
|
// and appends those labels to the pod template. When true,
|
||||||
@ -98,8 +98,7 @@ type JobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
ManualSelector *bool `json:"manualSelector,omitempty" protobuf:"varint,5,opt,name=manualSelector"`
|
ManualSelector *bool `json:"manualSelector,omitempty" protobuf:"varint,5,opt,name=manualSelector"`
|
||||||
|
|
||||||
// Template is the object that describes the pod that will be created when
|
// Describes the pod that will be created when executing a job.
|
||||||
// executing a job.
|
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
// More info: http://kubernetes.io/docs/user-guide/jobs
|
||||||
Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"`
|
Template v1.PodTemplateSpec `json:"template" protobuf:"bytes,6,opt,name=template"`
|
||||||
}
|
}
|
||||||
@ -107,34 +106,34 @@ type JobSpec struct {
|
|||||||
// JobStatus represents the current state of a Job.
|
// JobStatus represents the current state of a Job.
|
||||||
type JobStatus struct {
|
type JobStatus struct {
|
||||||
|
|
||||||
// Conditions represent the latest available observations of an object's current state.
|
// The latest available observations of an object's current state.
|
||||||
// More info: http://kubernetes.io/docs/user-guide/jobs
|
// More info: http://kubernetes.io/docs/user-guide/jobs
|
||||||
// +optional
|
// +optional
|
||||||
// +patchMergeKey=type
|
// +patchMergeKey=type
|
||||||
// +patchStrategy=merge
|
// +patchStrategy=merge
|
||||||
Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
|
Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
|
||||||
|
|
||||||
// StartTime represents time when the job was acknowledged by the Job Manager.
|
// Represents time when the job was acknowledged by the job controller.
|
||||||
// It is not guaranteed to be set in happens-before order across separate operations.
|
// It is not guaranteed to be set in happens-before order across separate operations.
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
// It is represented in RFC3339 form and is in UTC.
|
||||||
// +optional
|
// +optional
|
||||||
StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"`
|
StartTime *metav1.Time `json:"startTime,omitempty" protobuf:"bytes,2,opt,name=startTime"`
|
||||||
|
|
||||||
// CompletionTime represents time when the job was completed. It is not guaranteed to
|
// Represents time when the job was completed. It is not guaranteed to
|
||||||
// be set in happens-before order across separate operations.
|
// be set in happens-before order across separate operations.
|
||||||
// It is represented in RFC3339 form and is in UTC.
|
// It is represented in RFC3339 form and is in UTC.
|
||||||
// +optional
|
// +optional
|
||||||
CompletionTime *metav1.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"`
|
CompletionTime *metav1.Time `json:"completionTime,omitempty" protobuf:"bytes,3,opt,name=completionTime"`
|
||||||
|
|
||||||
// Active is the number of actively running pods.
|
// The number of actively running pods.
|
||||||
// +optional
|
// +optional
|
||||||
Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"`
|
Active int32 `json:"active,omitempty" protobuf:"varint,4,opt,name=active"`
|
||||||
|
|
||||||
// Succeeded is the number of pods which reached Phase Succeeded.
|
// The number of pods which reached phase Succeeded.
|
||||||
// +optional
|
// +optional
|
||||||
Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"`
|
Succeeded int32 `json:"succeeded,omitempty" protobuf:"varint,5,opt,name=succeeded"`
|
||||||
|
|
||||||
// Failed is the number of pods which reached Phase Failed.
|
// The number of pods which reached phase Failed.
|
||||||
// +optional
|
// +optional
|
||||||
Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"`
|
Failed int32 `json:"failed,omitempty" protobuf:"varint,6,opt,name=failed"`
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,8 @@ package v1
|
|||||||
var map_Job = map[string]string{
|
var map_Job = map[string]string{
|
||||||
"": "Job represents the configuration of a single job.",
|
"": "Job represents the configuration of a single job.",
|
||||||
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
"spec": "Spec is a structure defining the expected behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
"spec": "Specification of the desired behavior of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
||||||
"status": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
"status": "Current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (Job) SwaggerDoc() map[string]string {
|
func (Job) SwaggerDoc() map[string]string {
|
||||||
@ -54,8 +54,8 @@ func (JobCondition) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_JobList = map[string]string{
|
var map_JobList = map[string]string{
|
||||||
"": "JobList is a collection of jobs.",
|
"": "JobList is a collection of jobs.",
|
||||||
"metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
"metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
"items": "Items is the list of Job.",
|
"items": "items is the list of Jobs.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (JobList) SwaggerDoc() map[string]string {
|
func (JobList) SwaggerDoc() map[string]string {
|
||||||
@ -64,12 +64,12 @@ func (JobList) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_JobSpec = map[string]string{
|
var map_JobSpec = map[string]string{
|
||||||
"": "JobSpec describes how the job execution will look like.",
|
"": "JobSpec describes how the job execution will look like.",
|
||||||
"parallelism": "Parallelism specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs",
|
"parallelism": "Specifies the maximum desired number of pods the job should run at any given time. The actual number of pods running in steady state will be less than this number when ((.spec.completions - .status.successful) < .spec.parallelism), i.e. when the work left to do is less than max parallelism. More info: http://kubernetes.io/docs/user-guide/jobs",
|
||||||
"completions": "Completions specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
"completions": "Specifies the desired number of successfully finished pods the job should be run with. Setting to nil means that the success of any pod signals the success of all pods, and allows parallelism to have any positive value. Setting to 1 means that parallelism is limited to 1 and the success of that pod signals the success of the job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
||||||
"activeDeadlineSeconds": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer",
|
"activeDeadlineSeconds": "Optional duration in seconds relative to the startTime that the job may be active before the system tries to terminate it; value must be positive integer",
|
||||||
"selector": "Selector is a label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
|
"selector": "A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: http://kubernetes.io/docs/user-guide/labels#label-selectors",
|
||||||
"manualSelector": "ManualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md",
|
"manualSelector": "manualSelector controls generation of pod labels and pod selectors. Leave `manualSelector` unset unless you are certain what you are doing. When false or unset, the system pick labels unique to this job and appends those labels to the pod template. When true, the user is responsible for picking unique labels and specifying the selector. Failure to pick a unique label may cause this and other jobs to not function correctly. However, You may see `manualSelector=true` in jobs that were created with the old `extensions/v1beta1` API. More info: http://releases.k8s.io/HEAD/docs/design/selector-generation.md",
|
||||||
"template": "Template is the object that describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
"template": "Describes the pod that will be created when executing a job. More info: http://kubernetes.io/docs/user-guide/jobs",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (JobSpec) SwaggerDoc() map[string]string {
|
func (JobSpec) SwaggerDoc() map[string]string {
|
||||||
@ -78,12 +78,12 @@ func (JobSpec) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_JobStatus = map[string]string{
|
var map_JobStatus = map[string]string{
|
||||||
"": "JobStatus represents the current state of a Job.",
|
"": "JobStatus represents the current state of a Job.",
|
||||||
"conditions": "Conditions represent the latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs",
|
"conditions": "The latest available observations of an object's current state. More info: http://kubernetes.io/docs/user-guide/jobs",
|
||||||
"startTime": "StartTime represents time when the job was acknowledged by the Job Manager. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
"startTime": "Represents time when the job was acknowledged by the job controller. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
||||||
"completionTime": "CompletionTime represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
"completionTime": "Represents time when the job was completed. It is not guaranteed to be set in happens-before order across separate operations. It is represented in RFC3339 form and is in UTC.",
|
||||||
"active": "Active is the number of actively running pods.",
|
"active": "The number of actively running pods.",
|
||||||
"succeeded": "Succeeded is the number of pods which reached Phase Succeeded.",
|
"succeeded": "The number of pods which reached phase Succeeded.",
|
||||||
"failed": "Failed is the number of pods which reached Phase Failed.",
|
"failed": "The number of pods which reached phase Failed.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (JobStatus) SwaggerDoc() map[string]string {
|
func (JobStatus) SwaggerDoc() map[string]string {
|
||||||
|
@ -39,12 +39,12 @@ message CronJob {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job, including the schedule.
|
// Specification of the desired behavior of a cron job, including the schedule.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional CronJobSpec spec = 2;
|
optional CronJobSpec spec = 2;
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
// Current status of a cron job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional CronJobStatus status = 3;
|
optional CronJobStatus status = 3;
|
||||||
@ -52,18 +52,18 @@ message CronJob {
|
|||||||
|
|
||||||
// CronJobList is a collection of cron jobs.
|
// CronJobList is a collection of cron jobs.
|
||||||
message CronJobList {
|
message CronJobList {
|
||||||
// Standard list metadata
|
// Standard list metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
|
||||||
|
|
||||||
// Items is the list of CronJob.
|
// items is the list of CronJobs.
|
||||||
repeated CronJob items = 2;
|
repeated CronJob items = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
// CronJobSpec describes how the job execution will look like and when it will actually run.
|
// CronJobSpec describes how the job execution will look like and when it will actually run.
|
||||||
message CronJobSpec {
|
message CronJobSpec {
|
||||||
// Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
||||||
optional string schedule = 1;
|
optional string schedule = 1;
|
||||||
|
|
||||||
// Optional deadline in seconds for starting the job if it misses scheduled
|
// Optional deadline in seconds for starting the job if it misses scheduled
|
||||||
@ -71,18 +71,17 @@ message CronJobSpec {
|
|||||||
// +optional
|
// +optional
|
||||||
optional int64 startingDeadlineSeconds = 2;
|
optional int64 startingDeadlineSeconds = 2;
|
||||||
|
|
||||||
// ConcurrencyPolicy specifies how to treat concurrent executions of a Job.
|
// Specifies how to treat concurrent executions of a Job.
|
||||||
// Defaults to Allow.
|
// Defaults to Allow.
|
||||||
// +optional
|
// +optional
|
||||||
optional string concurrencyPolicy = 3;
|
optional string concurrencyPolicy = 3;
|
||||||
|
|
||||||
// Suspend flag tells the controller to suspend subsequent executions, it does
|
// This flag tells the controller to suspend subsequent executions, it does
|
||||||
// not apply to already started executions. Defaults to false.
|
// not apply to already started executions. Defaults to false.
|
||||||
// +optional
|
// +optional
|
||||||
optional bool suspend = 4;
|
optional bool suspend = 4;
|
||||||
|
|
||||||
// JobTemplate is the object that describes the job that will be created when
|
// Specifies the job that will be created when executing a CronJob.
|
||||||
// executing a CronJob.
|
|
||||||
optional JobTemplateSpec jobTemplate = 5;
|
optional JobTemplateSpec jobTemplate = 5;
|
||||||
|
|
||||||
// The number of successful finished jobs to retain.
|
// The number of successful finished jobs to retain.
|
||||||
@ -98,11 +97,11 @@ message CronJobSpec {
|
|||||||
|
|
||||||
// CronJobStatus represents the current state of a cron job.
|
// CronJobStatus represents the current state of a cron job.
|
||||||
message CronJobStatus {
|
message CronJobStatus {
|
||||||
// Active holds pointers to currently running jobs.
|
// A list of pointers to currently running jobs.
|
||||||
// +optional
|
// +optional
|
||||||
repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference active = 1;
|
repeated k8s.io.kubernetes.pkg.api.v1.ObjectReference active = 1;
|
||||||
|
|
||||||
// LastScheduleTime keeps information of when was the last time the job was successfully scheduled.
|
// Information when was the last time the job was successfully scheduled.
|
||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScheduleTime = 4;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastScheduleTime = 4;
|
||||||
}
|
}
|
||||||
@ -114,7 +113,7 @@ message JobTemplate {
|
|||||||
// +optional
|
// +optional
|
||||||
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
|
||||||
|
|
||||||
// Template defines jobs that will be created from this template
|
// Defines jobs that will be created from this template.
|
||||||
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
optional JobTemplateSpec template = 2;
|
optional JobTemplateSpec template = 2;
|
||||||
|
@ -30,7 +30,7 @@ type JobTemplate struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Template defines jobs that will be created from this template
|
// Defines jobs that will be created from this template.
|
||||||
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Template JobTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"`
|
Template JobTemplateSpec `json:"template,omitempty" protobuf:"bytes,2,opt,name=template"`
|
||||||
@ -59,12 +59,12 @@ type CronJob struct {
|
|||||||
// +optional
|
// +optional
|
||||||
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Spec is a structure defining the expected behavior of a job, including the schedule.
|
// Specification of the desired behavior of a cron job, including the schedule.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
|
Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
|
||||||
|
|
||||||
// Status is a structure describing current status of a job.
|
// Current status of a cron job.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status
|
||||||
// +optional
|
// +optional
|
||||||
Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
|
||||||
@ -73,19 +73,19 @@ type CronJob struct {
|
|||||||
// CronJobList is a collection of cron jobs.
|
// CronJobList is a collection of cron jobs.
|
||||||
type CronJobList struct {
|
type CronJobList struct {
|
||||||
metav1.TypeMeta `json:",inline"`
|
metav1.TypeMeta `json:",inline"`
|
||||||
// Standard list metadata
|
// Standard list metadata.
|
||||||
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
// More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata
|
||||||
// +optional
|
// +optional
|
||||||
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
|
||||||
|
|
||||||
// Items is the list of CronJob.
|
// items is the list of CronJobs.
|
||||||
Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"`
|
Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// CronJobSpec describes how the job execution will look like and when it will actually run.
|
// CronJobSpec describes how the job execution will look like and when it will actually run.
|
||||||
type CronJobSpec struct {
|
type CronJobSpec struct {
|
||||||
|
|
||||||
// Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
|
||||||
Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`
|
Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`
|
||||||
|
|
||||||
// Optional deadline in seconds for starting the job if it misses scheduled
|
// Optional deadline in seconds for starting the job if it misses scheduled
|
||||||
@ -93,18 +93,17 @@ type CronJobSpec struct {
|
|||||||
// +optional
|
// +optional
|
||||||
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.
|
// Specifies how to treat concurrent executions of a Job.
|
||||||
// Defaults to Allow.
|
// 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"`
|
||||||
|
|
||||||
// Suspend flag tells the controller to suspend subsequent executions, it does
|
// This flag tells the controller to suspend subsequent executions, it does
|
||||||
// not apply to already started executions. Defaults to false.
|
// not apply to already started executions. Defaults to false.
|
||||||
// +optional
|
// +optional
|
||||||
Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"`
|
Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"`
|
||||||
|
|
||||||
// JobTemplate is the object that describes the job that will be created when
|
// Specifies the job that will be created when executing a CronJob.
|
||||||
// executing a CronJob.
|
|
||||||
JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`
|
JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`
|
||||||
|
|
||||||
// The number of successful finished jobs to retain.
|
// The number of successful finished jobs to retain.
|
||||||
@ -138,11 +137,11 @@ const (
|
|||||||
|
|
||||||
// CronJobStatus represents the current state of a cron job.
|
// CronJobStatus represents the current state of a cron job.
|
||||||
type CronJobStatus struct {
|
type CronJobStatus struct {
|
||||||
// Active holds pointers to currently running jobs.
|
// A list of pointers to currently running jobs.
|
||||||
// +optional
|
// +optional
|
||||||
Active []v1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"`
|
Active []v1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"`
|
||||||
|
|
||||||
// LastScheduleTime keeps information of when was the last time the job was successfully scheduled.
|
// Information when was the last time the job was successfully scheduled.
|
||||||
// +optional
|
// +optional
|
||||||
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"`
|
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"`
|
||||||
}
|
}
|
||||||
|
@ -30,8 +30,8 @@ package v2alpha1
|
|||||||
var map_CronJob = map[string]string{
|
var map_CronJob = map[string]string{
|
||||||
"": "CronJob represents the configuration of a single cron job.",
|
"": "CronJob represents the configuration of a single cron job.",
|
||||||
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
"spec": "Spec is a structure defining the expected behavior of a job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
"spec": "Specification of the desired behavior of a cron job, including the schedule. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
||||||
"status": "Status is a structure describing current status of a job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
"status": "Current status of a cron job. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (CronJob) SwaggerDoc() map[string]string {
|
func (CronJob) SwaggerDoc() map[string]string {
|
||||||
@ -40,8 +40,8 @@ func (CronJob) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_CronJobList = map[string]string{
|
var map_CronJobList = map[string]string{
|
||||||
"": "CronJobList is a collection of cron jobs.",
|
"": "CronJobList is a collection of cron jobs.",
|
||||||
"metadata": "Standard list metadata More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
"metadata": "Standard list metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
"items": "Items is the list of CronJob.",
|
"items": "items is the list of CronJobs.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (CronJobList) SwaggerDoc() map[string]string {
|
func (CronJobList) SwaggerDoc() map[string]string {
|
||||||
@ -50,11 +50,11 @@ func (CronJobList) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_CronJobSpec = map[string]string{
|
var map_CronJobSpec = map[string]string{
|
||||||
"": "CronJobSpec describes how the job execution will look like and when it will actually run.",
|
"": "CronJobSpec describes how the job execution will look like and when it will actually run.",
|
||||||
"schedule": "Schedule contains the schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.",
|
"schedule": "The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.",
|
||||||
"startingDeadlineSeconds": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.",
|
"startingDeadlineSeconds": "Optional deadline in seconds for starting the job if it misses scheduled time for any reason. Missed jobs executions will be counted as failed ones.",
|
||||||
"concurrencyPolicy": "ConcurrencyPolicy specifies how to treat concurrent executions of a Job. Defaults to Allow.",
|
"concurrencyPolicy": "Specifies how to treat concurrent executions of a Job. Defaults to Allow.",
|
||||||
"suspend": "Suspend flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.",
|
"suspend": "This flag tells the controller to suspend subsequent executions, it does not apply to already started executions. Defaults to false.",
|
||||||
"jobTemplate": "JobTemplate is the object that describes the job that will be created when executing a CronJob.",
|
"jobTemplate": "Specifies the job that will be created when executing a CronJob.",
|
||||||
"successfulJobsHistoryLimit": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.",
|
"successfulJobsHistoryLimit": "The number of successful finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.",
|
||||||
"failedJobsHistoryLimit": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.",
|
"failedJobsHistoryLimit": "The number of failed finished jobs to retain. This is a pointer to distinguish between explicit zero and not specified.",
|
||||||
}
|
}
|
||||||
@ -65,8 +65,8 @@ func (CronJobSpec) SwaggerDoc() map[string]string {
|
|||||||
|
|
||||||
var map_CronJobStatus = map[string]string{
|
var map_CronJobStatus = map[string]string{
|
||||||
"": "CronJobStatus represents the current state of a cron job.",
|
"": "CronJobStatus represents the current state of a cron job.",
|
||||||
"active": "Active holds pointers to currently running jobs.",
|
"active": "A list of pointers to currently running jobs.",
|
||||||
"lastScheduleTime": "LastScheduleTime keeps information of when was the last time the job was successfully scheduled.",
|
"lastScheduleTime": "Information when was the last time the job was successfully scheduled.",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (CronJobStatus) SwaggerDoc() map[string]string {
|
func (CronJobStatus) SwaggerDoc() map[string]string {
|
||||||
@ -76,7 +76,7 @@ func (CronJobStatus) SwaggerDoc() map[string]string {
|
|||||||
var map_JobTemplate = map[string]string{
|
var map_JobTemplate = map[string]string{
|
||||||
"": "JobTemplate describes a template for creating copies of a predefined pod.",
|
"": "JobTemplate describes a template for creating copies of a predefined pod.",
|
||||||
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
"metadata": "Standard object's metadata. More info: http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#metadata",
|
||||||
"template": "Template defines jobs that will be created from this template http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
"template": "Defines jobs that will be created from this template. http://releases.k8s.io/HEAD/docs/devel/api-conventions.md#spec-and-status",
|
||||||
}
|
}
|
||||||
|
|
||||||
func (JobTemplate) SwaggerDoc() map[string]string {
|
func (JobTemplate) SwaggerDoc() map[string]string {
|
||||||
|
Loading…
Reference in New Issue
Block a user