Documentation ¶
Index ¶
Constants ¶
View Source
const GroupName = "batch"
GroupName is the group name use in this package
Variables ¶
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Job ¶
type Job struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"` // 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 Spec *JobSpec `json:"spec,omitempty"` // Current status of a job. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status Status *JobStatus `json:"status,omitempty"` }
Job Job represents the configuration of a single job.
swagger:model Job
func (*Job) GroupVersionKind ¶
func (v *Job) GroupVersionKind() schema.GroupVersionKind
type JobCondition ¶
type JobCondition struct { // Last time the condition was checked. LastProbeTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastProbeTime,omitempty"` // Last time the condition transit from one status to another. LastTransitionTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastTransitionTime,omitempty"` // Human readable message indicating details about last transition. Message string `json:"message,omitempty"` // (brief) reason for the condition's last transition. Reason string `json:"reason,omitempty"` // Status of the condition, one of True, False, Unknown. // Required: true Status *string `json:"status"` // Type of job condition, Complete or Failed. // Required: true Type *string `json:"type"` }
JobCondition JobCondition describes current state of a job.
swagger:model JobCondition
type JobList ¶
type JobList struct { // APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources APIVersion string `json:"apiVersion,omitempty"` // items is the list of Jobs. // Required: true Items []*Job `json:"items"` // Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds Kind string `json:"kind,omitempty"` // Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"` }
JobList JobList is a collection of jobs.
swagger:model JobList
func (*JobList) GroupVersionKind ¶
func (v *JobList) GroupVersionKind() schema.GroupVersionKind
type JobSpec ¶
type JobSpec struct { // Specifies the 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 int64 `json:"activeDeadlineSeconds,omitempty"` // Specifies the number of retries before marking this job failed. Defaults to 6 BackoffLimit int32 `json:"backoffLimit,omitempty"` // 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: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Completions int32 `json:"completions,omitempty"` // 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: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/#specifying-your-own-pod-selector ManualSelector bool `json:"manualSelector,omitempty"` // 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: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Parallelism int32 `json:"parallelism,omitempty"` // A label query over pods that should match the pod count. Normally, the system sets this field for you. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors Selector *apimachinery_pkg_apis_meta_v1.LabelSelector `json:"selector,omitempty"` // Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ // Required: true Template *api_core_v1.PodTemplateSpec `json:"template"` // ttlSecondsAfterFinished limits the lifetime of a Job that has finished execution (either Complete or Failed). If this field is set, ttlSecondsAfterFinished after the Job finishes, it is eligible to be automatically deleted. When the Job is being deleted, its lifecycle guarantees (e.g. finalizers) will be honored. If this field is unset, the Job won't be automatically deleted. If this field is set to zero, the Job becomes eligible to be deleted immediately after it finishes. This field is alpha-level and is only honored by servers that enable the TTLAfterFinished feature. TTLSecondsAfterFinished int32 `json:"ttlSecondsAfterFinished,omitempty"` }
JobSpec JobSpec describes how the job execution will look like.
swagger:model JobSpec
type JobStatus ¶
type JobStatus struct { // The number of actively running pods. Active int32 `json:"active,omitempty"` // 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 *apimachinery_pkg_apis_meta_v1.Time `json:"completionTime,omitempty"` // The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ Conditions []*JobCondition `json:"conditions,omitempty"` // The number of pods which reached phase Failed. Failed int32 `json:"failed,omitempty"` // 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. StartTime *apimachinery_pkg_apis_meta_v1.Time `json:"startTime,omitempty"` // The number of pods which reached phase Succeeded. Succeeded int32 `json:"succeeded,omitempty"` }
JobStatus JobStatus represents the current state of a Job.
swagger:model JobStatus
Click to show internal directories.
Click to hide internal directories.