Documentation
¶
Overview ¶
Package v1beta1 is the v1beta1 version of the API.
Index ¶
- Constants
- Variables
- func Convert_batch_CronJobList_To_v1beta1_CronJobList(in *batch.CronJobList, out *CronJobList, s conversion.Scope) error
- func Convert_batch_CronJobSpec_To_v1beta1_CronJobSpec(in *batch.CronJobSpec, out *CronJobSpec, s conversion.Scope) error
- func Convert_batch_CronJobStatus_To_v1beta1_CronJobStatus(in *batch.CronJobStatus, out *CronJobStatus, s conversion.Scope) error
- func Convert_batch_CronJob_To_v1beta1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error
- func Convert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error
- func Convert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error
- func Convert_batch_JobSpec_To_v1beta1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error
- func Convert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error
- func Convert_batch_JobTemplateSpec_To_v1beta1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error
- func Convert_batch_Job_To_v1beta1_Job(in *batch.Job, out *Job, s conversion.Scope) error
- func Convert_batch_ProviderSpec_To_v1beta1_ProviderSpec(in *batch.ProviderSpec, out *ProviderSpec, s conversion.Scope) error
- func Convert_v1beta1_CronJobList_To_batch_CronJobList(in *CronJobList, out *batch.CronJobList, s conversion.Scope) error
- func Convert_v1beta1_CronJobSpec_To_batch_CronJobSpec(in *CronJobSpec, out *batch.CronJobSpec, s conversion.Scope) error
- func Convert_v1beta1_CronJobStatus_To_batch_CronJobStatus(in *CronJobStatus, out *batch.CronJobStatus, s conversion.Scope) error
- func Convert_v1beta1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error
- func Convert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error
- func Convert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error
- func Convert_v1beta1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error
- func Convert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error
- func Convert_v1beta1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error
- func Convert_v1beta1_Job_To_batch_Job(in *Job, out *batch.Job, s conversion.Scope) error
- func Convert_v1beta1_ProviderSpec_To_batch_ProviderSpec(in *ProviderSpec, out *batch.ProviderSpec, s conversion.Scope) error
- func RegisterConversions(s *runtime.Scheme) error
- func RegisterDefaults(scheme *runtime.Scheme) error
- func Resource(resource string) schema.GroupResource
- func SetDefaults_CronJob(obj *CronJob)
- func SetDefaults_Job(obj *Job)
- func SetObjectDefaults_CronJob(in *CronJob)
- func SetObjectDefaults_CronJobList(in *CronJobList)
- func SetObjectDefaults_Job(in *Job)
- func SetObjectDefaults_JobList(in *JobList)
- type ConcurrencyPolicy
- type CronJob
- func (in *CronJob) DeepCopy() *CronJob
- func (in *CronJob) DeepCopyInto(out *CronJob)
- func (in *CronJob) DeepCopyObject() runtime.Object
- func (*CronJob) Descriptor() ([]byte, []int)
- func (m *CronJob) Marshal() (dAtA []byte, err error)
- func (m *CronJob) MarshalTo(dAtA []byte) (int, error)
- func (m *CronJob) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CronJob) ProtoMessage()
- func (m *CronJob) Reset()
- func (m *CronJob) Size() (n int)
- func (this *CronJob) String() string
- func (CronJob) SwaggerDoc() map[string]string
- func (m *CronJob) Unmarshal(dAtA []byte) error
- func (m *CronJob) XXX_DiscardUnknown()
- func (m *CronJob) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CronJob) XXX_Merge(src proto.Message)
- func (m *CronJob) XXX_Size() int
- func (m *CronJob) XXX_Unmarshal(b []byte) error
- type CronJobList
- func (in *CronJobList) DeepCopy() *CronJobList
- func (in *CronJobList) DeepCopyInto(out *CronJobList)
- func (in *CronJobList) DeepCopyObject() runtime.Object
- func (*CronJobList) Descriptor() ([]byte, []int)
- func (m *CronJobList) Marshal() (dAtA []byte, err error)
- func (m *CronJobList) MarshalTo(dAtA []byte) (int, error)
- func (m *CronJobList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CronJobList) ProtoMessage()
- func (m *CronJobList) Reset()
- func (m *CronJobList) Size() (n int)
- func (this *CronJobList) String() string
- func (CronJobList) SwaggerDoc() map[string]string
- func (m *CronJobList) Unmarshal(dAtA []byte) error
- func (m *CronJobList) XXX_DiscardUnknown()
- func (m *CronJobList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CronJobList) XXX_Merge(src proto.Message)
- func (m *CronJobList) XXX_Size() int
- func (m *CronJobList) XXX_Unmarshal(b []byte) error
- type CronJobSpec
- func (in *CronJobSpec) DeepCopy() *CronJobSpec
- func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec)
- func (*CronJobSpec) Descriptor() ([]byte, []int)
- func (m *CronJobSpec) Marshal() (dAtA []byte, err error)
- func (m *CronJobSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *CronJobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CronJobSpec) ProtoMessage()
- func (m *CronJobSpec) Reset()
- func (m *CronJobSpec) Size() (n int)
- func (this *CronJobSpec) String() string
- func (CronJobSpec) SwaggerDoc() map[string]string
- func (m *CronJobSpec) Unmarshal(dAtA []byte) error
- func (m *CronJobSpec) XXX_DiscardUnknown()
- func (m *CronJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CronJobSpec) XXX_Merge(src proto.Message)
- func (m *CronJobSpec) XXX_Size() int
- func (m *CronJobSpec) XXX_Unmarshal(b []byte) error
- type CronJobStatus
- func (in *CronJobStatus) DeepCopy() *CronJobStatus
- func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus)
- func (*CronJobStatus) Descriptor() ([]byte, []int)
- func (m *CronJobStatus) Marshal() (dAtA []byte, err error)
- func (m *CronJobStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *CronJobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CronJobStatus) ProtoMessage()
- func (m *CronJobStatus) Reset()
- func (m *CronJobStatus) Size() (n int)
- func (this *CronJobStatus) String() string
- func (CronJobStatus) SwaggerDoc() map[string]string
- func (m *CronJobStatus) Unmarshal(dAtA []byte) error
- func (m *CronJobStatus) XXX_DiscardUnknown()
- func (m *CronJobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CronJobStatus) XXX_Merge(src proto.Message)
- func (m *CronJobStatus) XXX_Size() int
- func (m *CronJobStatus) XXX_Unmarshal(b []byte) error
- type Job
- func (in *Job) DeepCopy() *Job
- func (in *Job) DeepCopyInto(out *Job)
- func (in *Job) DeepCopyObject() runtime.Object
- func (*Job) Descriptor() ([]byte, []int)
- func (m *Job) Marshal() (dAtA []byte, err error)
- func (m *Job) MarshalTo(dAtA []byte) (int, error)
- func (m *Job) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Job) ProtoMessage()
- func (m *Job) Reset()
- func (m *Job) Size() (n int)
- func (this *Job) String() string
- func (Job) SwaggerDoc() map[string]string
- func (m *Job) Unmarshal(dAtA []byte) error
- func (m *Job) XXX_DiscardUnknown()
- func (m *Job) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Job) XXX_Merge(src proto.Message)
- func (m *Job) XXX_Size() int
- func (m *Job) XXX_Unmarshal(b []byte) error
- type JobCondition
- func (in *JobCondition) DeepCopy() *JobCondition
- func (in *JobCondition) DeepCopyInto(out *JobCondition)
- func (*JobCondition) Descriptor() ([]byte, []int)
- func (m *JobCondition) Marshal() (dAtA []byte, err error)
- func (m *JobCondition) MarshalTo(dAtA []byte) (int, error)
- func (m *JobCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobCondition) ProtoMessage()
- func (m *JobCondition) Reset()
- func (m *JobCondition) Size() (n int)
- func (this *JobCondition) String() string
- func (JobCondition) SwaggerDoc() map[string]string
- func (m *JobCondition) Unmarshal(dAtA []byte) error
- func (m *JobCondition) XXX_DiscardUnknown()
- func (m *JobCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobCondition) XXX_Merge(src proto.Message)
- func (m *JobCondition) XXX_Size() int
- func (m *JobCondition) XXX_Unmarshal(b []byte) error
- type JobConditionType
- type JobList
- func (in *JobList) DeepCopy() *JobList
- func (in *JobList) DeepCopyInto(out *JobList)
- func (in *JobList) DeepCopyObject() runtime.Object
- func (*JobList) Descriptor() ([]byte, []int)
- func (m *JobList) Marshal() (dAtA []byte, err error)
- func (m *JobList) MarshalTo(dAtA []byte) (int, error)
- func (m *JobList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobList) ProtoMessage()
- func (m *JobList) Reset()
- func (m *JobList) Size() (n int)
- func (this *JobList) String() string
- func (JobList) SwaggerDoc() map[string]string
- func (m *JobList) Unmarshal(dAtA []byte) error
- func (m *JobList) XXX_DiscardUnknown()
- func (m *JobList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobList) XXX_Merge(src proto.Message)
- func (m *JobList) XXX_Size() int
- func (m *JobList) XXX_Unmarshal(b []byte) error
- type JobPhase
- type JobSpec
- func (in *JobSpec) DeepCopy() *JobSpec
- func (in *JobSpec) DeepCopyInto(out *JobSpec)
- func (*JobSpec) Descriptor() ([]byte, []int)
- func (m *JobSpec) Marshal() (dAtA []byte, err error)
- func (m *JobSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *JobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobSpec) ProtoMessage()
- func (m *JobSpec) Reset()
- func (m *JobSpec) Size() (n int)
- func (this *JobSpec) String() string
- func (JobSpec) SwaggerDoc() map[string]string
- func (m *JobSpec) Unmarshal(dAtA []byte) error
- func (m *JobSpec) XXX_DiscardUnknown()
- func (m *JobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobSpec) XXX_Merge(src proto.Message)
- func (m *JobSpec) XXX_Size() int
- func (m *JobSpec) XXX_Unmarshal(b []byte) error
- type JobStatus
- func (in *JobStatus) DeepCopy() *JobStatus
- func (in *JobStatus) DeepCopyInto(out *JobStatus)
- func (*JobStatus) Descriptor() ([]byte, []int)
- func (m *JobStatus) Marshal() (dAtA []byte, err error)
- func (m *JobStatus) MarshalTo(dAtA []byte) (int, error)
- func (m *JobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobStatus) ProtoMessage()
- func (m *JobStatus) Reset()
- func (m *JobStatus) Size() (n int)
- func (this *JobStatus) String() string
- func (JobStatus) SwaggerDoc() map[string]string
- func (m *JobStatus) Unmarshal(dAtA []byte) error
- func (m *JobStatus) XXX_DiscardUnknown()
- func (m *JobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobStatus) XXX_Merge(src proto.Message)
- func (m *JobStatus) XXX_Size() int
- func (m *JobStatus) XXX_Unmarshal(b []byte) error
- type JobTemplateSpec
- func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec
- func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec)
- func (*JobTemplateSpec) Descriptor() ([]byte, []int)
- func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error)
- func (m *JobTemplateSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *JobTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*JobTemplateSpec) ProtoMessage()
- func (m *JobTemplateSpec) Reset()
- func (m *JobTemplateSpec) Size() (n int)
- func (this *JobTemplateSpec) String() string
- func (JobTemplateSpec) SwaggerDoc() map[string]string
- func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error
- func (m *JobTemplateSpec) XXX_DiscardUnknown()
- func (m *JobTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *JobTemplateSpec) XXX_Merge(src proto.Message)
- func (m *JobTemplateSpec) XXX_Size() int
- func (m *JobTemplateSpec) XXX_Unmarshal(b []byte) error
- type JobType
- type ProviderSpec
- func (in *ProviderSpec) DeepCopy() *ProviderSpec
- func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec)
- func (*ProviderSpec) Descriptor() ([]byte, []int)
- func (m *ProviderSpec) Marshal() (dAtA []byte, err error)
- func (m *ProviderSpec) MarshalTo(dAtA []byte) (int, error)
- func (m *ProviderSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProviderSpec) ProtoMessage()
- func (m *ProviderSpec) Reset()
- func (m *ProviderSpec) Size() (n int)
- func (this *ProviderSpec) String() string
- func (m *ProviderSpec) Unmarshal(dAtA []byte) error
- func (m *ProviderSpec) XXX_DiscardUnknown()
- func (m *ProviderSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProviderSpec) XXX_Merge(src proto.Message)
- func (m *ProviderSpec) XXX_Size() int
- func (m *ProviderSpec) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // CronJobScheduledTimestampAnnotation is the scheduled timestamp annotation for the Job. // It records the original/expected scheduled timestamp for the running job, represented in RFC3339. CronJobScheduledTimestampAnnotation = labelPrefix + "cronjob-scheduled-timestamp" )
const GroupName = "batch.onex.io"
GroupName is the group name used in this package.
const ( // JobReasponDeadlineExceeded means job duration is past ActiveDeadline JobReasonDeadlineExceeded string = "DeadlineExceeded" )
Variables ¶
var ( ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenerated = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group") )
var ( // TODO: move SchemeBuilder with zz_generated.deepcopy.go to k8s.io/api. // localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes. SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes, addDefaultingFuncs) AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1beta1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Convert_batch_CronJobList_To_v1beta1_CronJobList ¶
func Convert_batch_CronJobList_To_v1beta1_CronJobList(in *batch.CronJobList, out *CronJobList, s conversion.Scope) error
Convert_batch_CronJobList_To_v1beta1_CronJobList is an autogenerated conversion function.
func Convert_batch_CronJobSpec_To_v1beta1_CronJobSpec ¶
func Convert_batch_CronJobSpec_To_v1beta1_CronJobSpec(in *batch.CronJobSpec, out *CronJobSpec, s conversion.Scope) error
Convert_batch_CronJobSpec_To_v1beta1_CronJobSpec is an autogenerated conversion function.
func Convert_batch_CronJobStatus_To_v1beta1_CronJobStatus ¶
func Convert_batch_CronJobStatus_To_v1beta1_CronJobStatus(in *batch.CronJobStatus, out *CronJobStatus, s conversion.Scope) error
Convert_batch_CronJobStatus_To_v1beta1_CronJobStatus is an autogenerated conversion function.
func Convert_batch_CronJob_To_v1beta1_CronJob ¶
func Convert_batch_CronJob_To_v1beta1_CronJob(in *batch.CronJob, out *CronJob, s conversion.Scope) error
Convert_batch_CronJob_To_v1beta1_CronJob is an autogenerated conversion function.
func Convert_batch_JobCondition_To_v1beta1_JobCondition ¶
func Convert_batch_JobCondition_To_v1beta1_JobCondition(in *batch.JobCondition, out *JobCondition, s conversion.Scope) error
Convert_batch_JobCondition_To_v1beta1_JobCondition is an autogenerated conversion function.
func Convert_batch_JobList_To_v1beta1_JobList ¶
func Convert_batch_JobList_To_v1beta1_JobList(in *batch.JobList, out *JobList, s conversion.Scope) error
Convert_batch_JobList_To_v1beta1_JobList is an autogenerated conversion function.
func Convert_batch_JobSpec_To_v1beta1_JobSpec ¶
func Convert_batch_JobSpec_To_v1beta1_JobSpec(in *batch.JobSpec, out *JobSpec, s conversion.Scope) error
Convert_batch_JobSpec_To_v1beta1_JobSpec is an autogenerated conversion function.
func Convert_batch_JobStatus_To_v1beta1_JobStatus ¶
func Convert_batch_JobStatus_To_v1beta1_JobStatus(in *batch.JobStatus, out *JobStatus, s conversion.Scope) error
Convert_batch_JobStatus_To_v1beta1_JobStatus is an autogenerated conversion function.
func Convert_batch_JobTemplateSpec_To_v1beta1_JobTemplateSpec ¶
func Convert_batch_JobTemplateSpec_To_v1beta1_JobTemplateSpec(in *batch.JobTemplateSpec, out *JobTemplateSpec, s conversion.Scope) error
Convert_batch_JobTemplateSpec_To_v1beta1_JobTemplateSpec is an autogenerated conversion function.
func Convert_batch_Job_To_v1beta1_Job ¶
Convert_batch_Job_To_v1beta1_Job is an autogenerated conversion function.
func Convert_batch_ProviderSpec_To_v1beta1_ProviderSpec ¶
func Convert_batch_ProviderSpec_To_v1beta1_ProviderSpec(in *batch.ProviderSpec, out *ProviderSpec, s conversion.Scope) error
Convert_batch_ProviderSpec_To_v1beta1_ProviderSpec is an autogenerated conversion function.
func Convert_v1beta1_CronJobList_To_batch_CronJobList ¶
func Convert_v1beta1_CronJobList_To_batch_CronJobList(in *CronJobList, out *batch.CronJobList, s conversion.Scope) error
Convert_v1beta1_CronJobList_To_batch_CronJobList is an autogenerated conversion function.
func Convert_v1beta1_CronJobSpec_To_batch_CronJobSpec ¶
func Convert_v1beta1_CronJobSpec_To_batch_CronJobSpec(in *CronJobSpec, out *batch.CronJobSpec, s conversion.Scope) error
Convert_v1beta1_CronJobSpec_To_batch_CronJobSpec is an autogenerated conversion function.
func Convert_v1beta1_CronJobStatus_To_batch_CronJobStatus ¶
func Convert_v1beta1_CronJobStatus_To_batch_CronJobStatus(in *CronJobStatus, out *batch.CronJobStatus, s conversion.Scope) error
Convert_v1beta1_CronJobStatus_To_batch_CronJobStatus is an autogenerated conversion function.
func Convert_v1beta1_CronJob_To_batch_CronJob ¶
func Convert_v1beta1_CronJob_To_batch_CronJob(in *CronJob, out *batch.CronJob, s conversion.Scope) error
Convert_v1beta1_CronJob_To_batch_CronJob is an autogenerated conversion function.
func Convert_v1beta1_JobCondition_To_batch_JobCondition ¶
func Convert_v1beta1_JobCondition_To_batch_JobCondition(in *JobCondition, out *batch.JobCondition, s conversion.Scope) error
Convert_v1beta1_JobCondition_To_batch_JobCondition is an autogenerated conversion function.
func Convert_v1beta1_JobList_To_batch_JobList ¶
func Convert_v1beta1_JobList_To_batch_JobList(in *JobList, out *batch.JobList, s conversion.Scope) error
Convert_v1beta1_JobList_To_batch_JobList is an autogenerated conversion function.
func Convert_v1beta1_JobSpec_To_batch_JobSpec ¶
func Convert_v1beta1_JobSpec_To_batch_JobSpec(in *JobSpec, out *batch.JobSpec, s conversion.Scope) error
Convert_v1beta1_JobSpec_To_batch_JobSpec is an autogenerated conversion function.
func Convert_v1beta1_JobStatus_To_batch_JobStatus ¶
func Convert_v1beta1_JobStatus_To_batch_JobStatus(in *JobStatus, out *batch.JobStatus, s conversion.Scope) error
Convert_v1beta1_JobStatus_To_batch_JobStatus is an autogenerated conversion function.
func Convert_v1beta1_JobTemplateSpec_To_batch_JobTemplateSpec ¶
func Convert_v1beta1_JobTemplateSpec_To_batch_JobTemplateSpec(in *JobTemplateSpec, out *batch.JobTemplateSpec, s conversion.Scope) error
Convert_v1beta1_JobTemplateSpec_To_batch_JobTemplateSpec is an autogenerated conversion function.
func Convert_v1beta1_Job_To_batch_Job ¶
Convert_v1beta1_Job_To_batch_Job is an autogenerated conversion function.
func Convert_v1beta1_ProviderSpec_To_batch_ProviderSpec ¶
func Convert_v1beta1_ProviderSpec_To_batch_ProviderSpec(in *ProviderSpec, out *batch.ProviderSpec, s conversion.Scope) error
Convert_v1beta1_ProviderSpec_To_batch_ProviderSpec is an autogenerated conversion function.
func RegisterConversions ¶
RegisterConversions adds conversion functions to the given scheme. Public to allow building arbitrary schemes.
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
func SetDefaults_CronJob ¶
func SetDefaults_CronJob(obj *CronJob)
func SetDefaults_Job ¶
func SetDefaults_Job(obj *Job)
func SetObjectDefaults_CronJob ¶
func SetObjectDefaults_CronJob(in *CronJob)
func SetObjectDefaults_CronJobList ¶
func SetObjectDefaults_CronJobList(in *CronJobList)
func SetObjectDefaults_Job ¶
func SetObjectDefaults_Job(in *Job)
func SetObjectDefaults_JobList ¶
func SetObjectDefaults_JobList(in *JobList)
Types ¶
type ConcurrencyPolicy ¶
type ConcurrencyPolicy string
ConcurrencyPolicy describes how the job will be handled. Only one of the following concurrent policies may be specified. If none of the following policies is specified, the default one is AllowConcurrent. +enum
const ( // AllowConcurrent allows CronJobs to run concurrently. AllowConcurrent ConcurrencyPolicy = "Allow" // ForbidConcurrent forbids concurrent runs, skipping next run if previous // hasn't finished yet. ForbidConcurrent ConcurrencyPolicy = "Forbid" // ReplaceConcurrent cancels currently running job and replaces it with a new one. ReplaceConcurrent ConcurrencyPolicy = "Replace" )
type CronJob ¶
type CronJob struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the desired behavior of a cron job, including the schedule.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec CronJobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
// Current status of a cron job.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Status CronJobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
CronJob represents the configuration of a single cron job.
func (*CronJob) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJob.
func (*CronJob) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronJob) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CronJob) Descriptor ¶
func (*CronJob) MarshalToSizedBuffer ¶
func (*CronJob) ProtoMessage ¶
func (*CronJob) ProtoMessage()
func (CronJob) SwaggerDoc ¶
func (*CronJob) XXX_DiscardUnknown ¶
func (m *CronJob) XXX_DiscardUnknown()
func (*CronJob) XXX_Marshal ¶
func (*CronJob) XXX_Unmarshal ¶
type CronJobList ¶
type CronJobList struct {
metav1.TypeMeta `json:",inline"`
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// items is the list of CronJobs.
Items []CronJob `json:"items" protobuf:"bytes,2,rep,name=items"`
}
CronJobList is a collection of cron jobs.
func (*CronJobList) DeepCopy ¶
func (in *CronJobList) DeepCopy() *CronJobList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList.
func (*CronJobList) DeepCopyInto ¶
func (in *CronJobList) DeepCopyInto(out *CronJobList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronJobList) DeepCopyObject ¶
func (in *CronJobList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*CronJobList) Descriptor ¶
func (*CronJobList) Descriptor() ([]byte, []int)
func (*CronJobList) Marshal ¶
func (m *CronJobList) Marshal() (dAtA []byte, err error)
func (*CronJobList) MarshalToSizedBuffer ¶
func (m *CronJobList) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CronJobList) ProtoMessage ¶
func (*CronJobList) ProtoMessage()
func (*CronJobList) Reset ¶
func (m *CronJobList) Reset()
func (*CronJobList) Size ¶
func (m *CronJobList) Size() (n int)
func (*CronJobList) String ¶
func (this *CronJobList) String() string
func (CronJobList) SwaggerDoc ¶
func (CronJobList) SwaggerDoc() map[string]string
func (*CronJobList) Unmarshal ¶
func (m *CronJobList) Unmarshal(dAtA []byte) error
func (*CronJobList) XXX_DiscardUnknown ¶
func (m *CronJobList) XXX_DiscardUnknown()
func (*CronJobList) XXX_Marshal ¶
func (m *CronJobList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CronJobList) XXX_Merge ¶
func (m *CronJobList) XXX_Merge(src proto.Message)
func (*CronJobList) XXX_Size ¶
func (m *CronJobList) XXX_Size() int
func (*CronJobList) XXX_Unmarshal ¶
func (m *CronJobList) XXX_Unmarshal(b []byte) error
type CronJobSpec ¶
type CronJobSpec struct {
// The schedule in Cron format, see https://en.wikipedia.org/wiki/Cron.
Schedule string `json:"schedule" protobuf:"bytes,1,opt,name=schedule"`
// The time zone name for the given schedule, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
// If not specified, this will default to the time zone of the kube-controller-manager process.
// The set of valid time zone names and the time zone offset is loaded from the system-wide time zone
// database by the API server during CronJob validation and the controller manager during execution.
// If no system-wide time zone database can be found a bundled version of the database is used instead.
// If the time zone name becomes invalid during the lifetime of a CronJob or due to a change in host
// configuration, the controller will stop creating new new Jobs and will create a system event with the
// reason UnknownTimeZone.
// More information can be found in https://kubernetes.io/docs/concepts/workloads/controllers/cron-jobs/#time-zones
// +optional
TimeZone *string `json:"timeZone,omitempty" protobuf:"bytes,8,opt,name=timeZone"`
// 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.
// +optional
StartingDeadlineSeconds *int64 `json:"startingDeadlineSeconds,omitempty" protobuf:"varint,2,opt,name=startingDeadlineSeconds"`
// Specifies how to treat concurrent executions of a Job.
// Valid values are:
//
// - "Allow" (default): allows CronJobs to run concurrently;
// - "Forbid": forbids concurrent runs, skipping next run if previous run hasn't finished yet;
// - "Replace": cancels currently running job and replaces it with a new one
// +optional
ConcurrencyPolicy ConcurrencyPolicy `json:"concurrencyPolicy,omitempty" protobuf:"bytes,3,opt,name=concurrencyPolicy,casttype=ConcurrencyPolicy"`
// This flag tells the controller to suspend subsequent executions, it does
// not apply to already started executions. Defaults to false.
// +optional
Suspend *bool `json:"suspend,omitempty" protobuf:"varint,4,opt,name=suspend"`
// Specifies the job that will be created when executing a CronJob.
JobTemplate JobTemplateSpec `json:"jobTemplate" protobuf:"bytes,5,opt,name=jobTemplate"`
// The number of successful finished jobs to retain. Value must be non-negative integer.
// Defaults to 3.
// +optional
SuccessfulJobsHistoryLimit *int32 `json:"successfulJobsHistoryLimit,omitempty" protobuf:"varint,6,opt,name=successfulJobsHistoryLimit"`
// The number of failed finished jobs to retain. Value must be non-negative integer.
// Defaults to 1.
// +optional
FailedJobsHistoryLimit *int32 `json:"failedJobsHistoryLimit,omitempty" protobuf:"varint,7,opt,name=failedJobsHistoryLimit"`
}
CronJobSpec describes how the job execution will look like and when it will actually run.
func (*CronJobSpec) DeepCopy ¶
func (in *CronJobSpec) DeepCopy() *CronJobSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec.
func (*CronJobSpec) DeepCopyInto ¶
func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronJobSpec) Descriptor ¶
func (*CronJobSpec) Descriptor() ([]byte, []int)
func (*CronJobSpec) Marshal ¶
func (m *CronJobSpec) Marshal() (dAtA []byte, err error)
func (*CronJobSpec) MarshalToSizedBuffer ¶
func (m *CronJobSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CronJobSpec) ProtoMessage ¶
func (*CronJobSpec) ProtoMessage()
func (*CronJobSpec) Reset ¶
func (m *CronJobSpec) Reset()
func (*CronJobSpec) Size ¶
func (m *CronJobSpec) Size() (n int)
func (*CronJobSpec) String ¶
func (this *CronJobSpec) String() string
func (CronJobSpec) SwaggerDoc ¶
func (CronJobSpec) SwaggerDoc() map[string]string
func (*CronJobSpec) Unmarshal ¶
func (m *CronJobSpec) Unmarshal(dAtA []byte) error
func (*CronJobSpec) XXX_DiscardUnknown ¶
func (m *CronJobSpec) XXX_DiscardUnknown()
func (*CronJobSpec) XXX_Marshal ¶
func (m *CronJobSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CronJobSpec) XXX_Merge ¶
func (m *CronJobSpec) XXX_Merge(src proto.Message)
func (*CronJobSpec) XXX_Size ¶
func (m *CronJobSpec) XXX_Size() int
func (*CronJobSpec) XXX_Unmarshal ¶
func (m *CronJobSpec) XXX_Unmarshal(b []byte) error
type CronJobStatus ¶
type CronJobStatus struct {
// A list of pointers to currently running jobs.
// +optional
// +listType=atomic
Active []corev1.ObjectReference `json:"active,omitempty" protobuf:"bytes,1,rep,name=active"`
// Information when was the last time the job was successfully scheduled.
// +optional
LastScheduleTime *metav1.Time `json:"lastScheduleTime,omitempty" protobuf:"bytes,4,opt,name=lastScheduleTime"`
// Information when was the last time the job successfully completed.
// +optional
LastSuccessfulTime *metav1.Time `json:"lastSuccessfulTime,omitempty" protobuf:"bytes,5,opt,name=lastSuccessfulTime"`
}
CronJobStatus represents the current state of a cron job.
func (*CronJobStatus) DeepCopy ¶
func (in *CronJobStatus) DeepCopy() *CronJobStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus.
func (*CronJobStatus) DeepCopyInto ¶
func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronJobStatus) Descriptor ¶
func (*CronJobStatus) Descriptor() ([]byte, []int)
func (*CronJobStatus) Marshal ¶
func (m *CronJobStatus) Marshal() (dAtA []byte, err error)
func (*CronJobStatus) MarshalToSizedBuffer ¶
func (m *CronJobStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CronJobStatus) ProtoMessage ¶
func (*CronJobStatus) ProtoMessage()
func (*CronJobStatus) Reset ¶
func (m *CronJobStatus) Reset()
func (*CronJobStatus) Size ¶
func (m *CronJobStatus) Size() (n int)
func (*CronJobStatus) String ¶
func (this *CronJobStatus) String() string
func (CronJobStatus) SwaggerDoc ¶
func (CronJobStatus) SwaggerDoc() map[string]string
func (*CronJobStatus) Unmarshal ¶
func (m *CronJobStatus) Unmarshal(dAtA []byte) error
func (*CronJobStatus) XXX_DiscardUnknown ¶
func (m *CronJobStatus) XXX_DiscardUnknown()
func (*CronJobStatus) XXX_Marshal ¶
func (m *CronJobStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CronJobStatus) XXX_Merge ¶
func (m *CronJobStatus) XXX_Merge(src proto.Message)
func (*CronJobStatus) XXX_Size ¶
func (m *CronJobStatus) XXX_Size() int
func (*CronJobStatus) XXX_Unmarshal ¶
func (m *CronJobStatus) XXX_Unmarshal(b []byte) error
type Job ¶
type Job struct {
metav1.TypeMeta `json:",inline"`
// Standard object's metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the desired behavior of a job.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
// Current status of a job.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Status JobStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}
Job represents the configuration of a single job.
func (*Job) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (*Job) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Job) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*Job) Descriptor ¶
func (*Job) ProtoMessage ¶
func (*Job) ProtoMessage()
func (Job) SwaggerDoc ¶
func (*Job) XXX_DiscardUnknown ¶
func (m *Job) XXX_DiscardUnknown()
func (*Job) XXX_Unmarshal ¶
type JobCondition ¶
type JobCondition struct {
// Type of job condition, Complete or Failed.
Type JobConditionType `json:"type" protobuf:"bytes,1,opt,name=type,casttype=JobConditionType"`
// Status of the condition, one of True, False, Unknown.
Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status,casttype=k8s.io/api/core/v1.ConditionStatus"`
// Last time the condition was checked.
// +optional
LastProbeTime metav1.Time `json:"lastProbeTime,omitempty" protobuf:"bytes,3,opt,name=lastProbeTime"`
// Last time the condition transit from one status to another.
// +optional
LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"`
// (brief) reason for the condition's last transition.
// +optional
Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"`
// Human readable message indicating details about last transition.
// +optional
Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"`
}
JobCondition describes current state of a job.
func (*JobCondition) DeepCopy ¶
func (in *JobCondition) DeepCopy() *JobCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobCondition.
func (*JobCondition) DeepCopyInto ¶
func (in *JobCondition) DeepCopyInto(out *JobCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobCondition) Descriptor ¶
func (*JobCondition) Descriptor() ([]byte, []int)
func (*JobCondition) Marshal ¶
func (m *JobCondition) Marshal() (dAtA []byte, err error)
func (*JobCondition) MarshalToSizedBuffer ¶
func (m *JobCondition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*JobCondition) ProtoMessage ¶
func (*JobCondition) ProtoMessage()
func (*JobCondition) Reset ¶
func (m *JobCondition) Reset()
func (*JobCondition) Size ¶
func (m *JobCondition) Size() (n int)
func (*JobCondition) String ¶
func (this *JobCondition) String() string
func (JobCondition) SwaggerDoc ¶
func (JobCondition) SwaggerDoc() map[string]string
func (*JobCondition) Unmarshal ¶
func (m *JobCondition) Unmarshal(dAtA []byte) error
func (*JobCondition) XXX_DiscardUnknown ¶
func (m *JobCondition) XXX_DiscardUnknown()
func (*JobCondition) XXX_Marshal ¶
func (m *JobCondition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JobCondition) XXX_Merge ¶
func (m *JobCondition) XXX_Merge(src proto.Message)
func (*JobCondition) XXX_Size ¶
func (m *JobCondition) XXX_Size() int
func (*JobCondition) XXX_Unmarshal ¶
func (m *JobCondition) XXX_Unmarshal(b []byte) error
type JobConditionType ¶
type JobConditionType string
const ( // JobSuspended means the job has been suspended. JobSuspended JobConditionType = "Suspended" // JobComplete means the job has completed its execution. JobComplete JobConditionType = "Complete" // JobFailed means the job has failed its execution. JobFailed JobConditionType = "Failed" // FailureTarget means the job is about to fail its execution. JobFailureTarget JobConditionType = "FailureTarget" // JobSuccessCriteriaMet means the Job has been succeeded. JobSuccessCriteriaMet JobConditionType = "SuccessCriteriaMet" )
These are built-in conditions of a job.
type JobList ¶
type JobList struct {
metav1.TypeMeta `json:",inline"`
// Standard list metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ListMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// items is the list of Jobs.
Items []Job `json:"items" protobuf:"bytes,2,rep,name=items"`
}
JobList is a collection of jobs.
func (*JobList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (*JobList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*JobList) Descriptor ¶
func (*JobList) MarshalToSizedBuffer ¶
func (*JobList) ProtoMessage ¶
func (*JobList) ProtoMessage()
func (JobList) SwaggerDoc ¶
func (*JobList) XXX_DiscardUnknown ¶
func (m *JobList) XXX_DiscardUnknown()
func (*JobList) XXX_Marshal ¶
func (*JobList) XXX_Unmarshal ¶
type JobPhase ¶
type JobPhase string
JobPhase is a label for the condition of a pod at the current time. +enum
const ( // JobPending means the pod has been accepted by the system, but one or more of the containers // has not been started. This includes time before being bound to a node, as well as time spent // pulling images onto the host. JobPhasePending JobPhase = "Pending" // JobRunning means the pod has been bound to a node and all of the containers have been started. // At least one container is still running or is in the process of being restarted. JobPhaseRunning JobPhase = "Running" // JobSucceeded means that all containers in the pod have voluntarily terminated // with a container exit code of 0, and the system is not going to restart any of these containers. JobPhaseSucceeded JobPhase = "Succeeded" // JobFailed means that all containers in the pod have terminated, and at least one container has // terminated in a failure (exited with a non-zero exit code or was stopped by the system). JobPhaseFailed JobPhase = "Failed" // JobUnknown means that for some reason the state of the pod could not be obtained, typically due // to an error in communicating with the host of the pod. // Deprecated: It isn't being set since 2015 (74da3b14b0c0f658b3bb8d2def5094686d0e9095) JobPhaseUnknown JobPhase = "Unknown" )
These are the valid statuses of pods.
type JobSpec ¶
type JobSpec struct {
// 如 "kubernetes" | "aws-batch" | "spark-on-yarn" …
Type JobType `json:"type" protobuf:"bytes,18,opt,name=type"`
// suspend specifies whether the Job controller should create Pods or not. If
// a Job is created with suspend set to true, no Pods are created by the Job
// controller. If a Job is suspended after creation (i.e. the flag goes from
// false to true), the Job controller will delete all active Pods associated
// with this Job. Users must design their workload to gracefully handle this.
// Suspending a Job will reset the StartTime field of the Job, effectively
// resetting the ActiveDeadlineSeconds timer too. Defaults to false.
//
// +optional
Suspend bool `json:"suspend,omitempty" protobuf:"varint,10,opt,name=suspend"`
// Specifies the duration in seconds relative to the startTime that the job
// may be continuously active before the system tries to terminate it; value
// must be positive integer. If a Job is suspended (at creation or through an
// update), this timer will effectively be stopped and reset when the Job is
// resumed again.
// +optional
ActiveDeadlineSeconds *int64 `json:"activeDeadlineSeconds,omitempty" protobuf:"varint,3,opt,name=activeDeadlineSeconds"`
// providerSpec details Provider-specific configuration to use during node creation.
// +optional
ProviderSpec ProviderSpec `json:"providerSpec" protobuf:"bytes,17,opt,name=providerSpec"`
}
JobSpec describes how the job execution will look like.
func (*JobSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func (*JobSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobSpec) Descriptor ¶
func (*JobSpec) MarshalToSizedBuffer ¶
func (*JobSpec) ProtoMessage ¶
func (*JobSpec) ProtoMessage()
func (JobSpec) SwaggerDoc ¶
func (*JobSpec) XXX_DiscardUnknown ¶
func (m *JobSpec) XXX_DiscardUnknown()
func (*JobSpec) XXX_Marshal ¶
func (*JobSpec) XXX_Unmarshal ¶
type JobStatus ¶
type JobStatus struct {
// The latest available observations of an object's current state. When a Job
// fails, one of the conditions will have type "Failed" and status true. When
// a Job is suspended, one of the conditions will have type "Suspended" and
// status true; when the Job is resumed, the status of this condition will
// become false. When a Job is completed, one of the conditions will have
// type "Complete" and status true.
//
// A job is considered finished when it is in a terminal condition, either
// "Complete" or "Failed". A Job cannot have both the "Complete" and "Failed" conditions.
// Additionally, it cannot be in the "Complete" and "FailureTarget" conditions.
// The "Complete", "Failed" and "FailureTarget" conditions cannot be disabled.
//
// More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
// +optional
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=atomic
Conditions []JobCondition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,rep,name=conditions"`
// Represents time when the job controller started processing a job. When a
// Job is created in the suspended state, this field is not set until the
// first time it is resumed. This field is reset every time a Job is resumed
// from suspension. It is represented in RFC3339 form and is in UTC.
//
// Once set, the field can only be removed when the job is suspended.
// The field cannot be modified while the job is unsuspended or finished.
//
// +optional
StartedAt *metav1.Time `json:"startedAt,omitempty" protobuf:"bytes,2,opt,name=startedAt"`
// 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.
// The completion time is set when the job finishes successfully, and only then.
// The value cannot be updated or removed. The value indicates the same or
// later point in time as the startTime field.
// +optional
EndedAt *metav1.Time `json:"endedAt,omitempty" protobuf:"bytes,3,opt,name=endedAt"`
Phase JobPhase `json:"phase,omitempty" protobuf:"bytes,4,opt,name=phase,casttype=PodPhase"`
// errorMessage will be set in the event that there is a terminal problem
// reconciling the Machine and will contain a more verbose string suitable
// for logging and human consumption.
//
// This field should not be set for transitive errors that a controller
// faces that are expected to be fixed automatically over
// time (like service outages), but instead indicate that something is
// fundamentally wrong with the Machine's spec or the configuration of
// the controller, and that manual intervention is required. Examples
// of terminal errors would be invalid combinations of settings in the
// spec, values that are unsupported by the controller, or the
// responsible controller itself being critically misconfigured.
//
// Any transient errors that occur during the reconciliation of Machines
// can be added as events to the Machine object and/or logged in the
// controller's output.
// +optional
ErrorMessage *string `json:"errorMessage,omitempty" protobuf:"bytes,6,opt,name=errorMessage"`
// providerStatus details a Provider-specific status.
// It is recommended that providers maintain their
// own versioned API types that should be
// serialized/deserialized from this field.
// +optional
// +kubebuilder:validation:XPreserveUnknownFields
ProviderStatus *runtime.RawExtension `json:"providerStatus,omitempty" protobuf:"bytes,5,opt,name=providerStatus"`
}
JobStatus represents the current state of a Job.
func (*JobStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (*JobStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobStatus) Descriptor ¶
func (*JobStatus) MarshalToSizedBuffer ¶
func (*JobStatus) ProtoMessage ¶
func (*JobStatus) ProtoMessage()
func (JobStatus) SwaggerDoc ¶
func (*JobStatus) XXX_DiscardUnknown ¶
func (m *JobStatus) XXX_DiscardUnknown()
func (*JobStatus) XXX_Marshal ¶
func (*JobStatus) XXX_Unmarshal ¶
type JobTemplateSpec ¶
type JobTemplateSpec struct {
// Standard object's metadata of the jobs created from this template.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta `json:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
// Specification of the desired behavior of the job.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status
// +optional
Spec JobSpec `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
}
JobTemplateSpec describes the data a Job should have when created from a template
func (*JobTemplateSpec) DeepCopy ¶
func (in *JobTemplateSpec) DeepCopy() *JobTemplateSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec.
func (*JobTemplateSpec) DeepCopyInto ¶
func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*JobTemplateSpec) Descriptor ¶
func (*JobTemplateSpec) Descriptor() ([]byte, []int)
func (*JobTemplateSpec) Marshal ¶
func (m *JobTemplateSpec) Marshal() (dAtA []byte, err error)
func (*JobTemplateSpec) MarshalToSizedBuffer ¶
func (m *JobTemplateSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*JobTemplateSpec) ProtoMessage ¶
func (*JobTemplateSpec) ProtoMessage()
func (*JobTemplateSpec) Reset ¶
func (m *JobTemplateSpec) Reset()
func (*JobTemplateSpec) Size ¶
func (m *JobTemplateSpec) Size() (n int)
func (*JobTemplateSpec) String ¶
func (this *JobTemplateSpec) String() string
func (JobTemplateSpec) SwaggerDoc ¶
func (JobTemplateSpec) SwaggerDoc() map[string]string
func (*JobTemplateSpec) Unmarshal ¶
func (m *JobTemplateSpec) Unmarshal(dAtA []byte) error
func (*JobTemplateSpec) XXX_DiscardUnknown ¶
func (m *JobTemplateSpec) XXX_DiscardUnknown()
func (*JobTemplateSpec) XXX_Marshal ¶
func (m *JobTemplateSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*JobTemplateSpec) XXX_Merge ¶
func (m *JobTemplateSpec) XXX_Merge(src proto.Message)
func (*JobTemplateSpec) XXX_Size ¶
func (m *JobTemplateSpec) XXX_Size() int
func (*JobTemplateSpec) XXX_Unmarshal ¶
func (m *JobTemplateSpec) XXX_Unmarshal(b []byte) error
type ProviderSpec ¶
type ProviderSpec struct {
// value is an inlined, serialized representation of the resource
// configuration. It is recommended that providers maintain their own
// versioned API types that should be serialized/deserialized from this
// field, akin to component config.
// +optional
// +kubebuilder:validation:XPreserveUnknownFields
Value *runtime.RawExtension `json:"value,omitempty" protobuf:"bytes,1,opt,name=value"`
}
ProviderSpec defines the configuration to use during node creation.
func (*ProviderSpec) DeepCopy ¶
func (in *ProviderSpec) DeepCopy() *ProviderSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderSpec.
func (*ProviderSpec) DeepCopyInto ¶
func (in *ProviderSpec) DeepCopyInto(out *ProviderSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderSpec) Descriptor ¶
func (*ProviderSpec) Descriptor() ([]byte, []int)
func (*ProviderSpec) Marshal ¶
func (m *ProviderSpec) Marshal() (dAtA []byte, err error)
func (*ProviderSpec) MarshalToSizedBuffer ¶
func (m *ProviderSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProviderSpec) ProtoMessage ¶
func (*ProviderSpec) ProtoMessage()
func (*ProviderSpec) Reset ¶
func (m *ProviderSpec) Reset()
func (*ProviderSpec) Size ¶
func (m *ProviderSpec) Size() (n int)
func (*ProviderSpec) String ¶
func (this *ProviderSpec) String() string
func (*ProviderSpec) Unmarshal ¶
func (m *ProviderSpec) Unmarshal(dAtA []byte) error
func (*ProviderSpec) XXX_DiscardUnknown ¶
func (m *ProviderSpec) XXX_DiscardUnknown()
func (*ProviderSpec) XXX_Marshal ¶
func (m *ProviderSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProviderSpec) XXX_Merge ¶
func (m *ProviderSpec) XXX_Merge(src proto.Message)
func (*ProviderSpec) XXX_Size ¶
func (m *ProviderSpec) XXX_Size() int
func (*ProviderSpec) XXX_Unmarshal ¶
func (m *ProviderSpec) XXX_Unmarshal(b []byte) error