/** * @module batch/v1 * @internal */ import { DeleteOptions as _DeleteOptions_6 } from "./../meta/v1"; import { LabelSelector as _LabelSelector_4 } from "./../meta/v1"; import { ListMeta as _ListMeta_3 } from "./../meta/v1"; import { ObjectMeta as _ObjectMeta_1 } from "./../meta/v1"; import { PodTemplateSpec as _PodTemplateSpec_5 } from "./../v1"; import { Time as _Time_2 } from "./../meta/v1"; import { WatchEvent as _WatchEvent_7 } from "./../meta/v1"; /** * Job represents the configuration of a single job. */ export declare interface Job { /** * 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/api-conventions.md#resources */ apiVersion: "batch/v1"; /** * 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/api-conventions.md#types-kinds */ kind: "Job"; /** * Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata */ metadata?: _ObjectMeta_1; /** * Specification of the desired behavior of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status */ spec?: JobSpec; /** * Current status of a job. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status */ status?: JobStatus; } /** * JobCondition describes current state of a job. */ export declare interface JobCondition { /** * Last time the condition was checked. */ lastProbeTime?: _Time_2; /** * Last time the condition transit from one status to another. */ lastTransitionTime?: _Time_2; /** * Human readable message indicating details about last transition. */ message?: string; /** * (brief) reason for the condition's last transition. */ reason?: string; /** * Status of the condition, one of True, False, Unknown. */ status: string; /** * Type of job condition, Complete or Failed. */ type: string; } /** * JobList is a collection of jobs. */ export declare interface JobList { /** * 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/api-conventions.md#resources */ apiVersion: "batch/v1"; /** * items is the list of Jobs. */ items: Iterable; /** * 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/api-conventions.md#types-kinds */ kind: "JobList"; /** * Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata */ metadata?: _ListMeta_3; } /** * JobSpec describes how the job execution will look like. */ export declare interface JobSpec { /** * 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?: number; /** * Specifies the number of retries before marking this job failed. Defaults to 6 */ backoffLimit?: number; /** * 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?: number; /** * 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://git.k8s.io/community/contributors/design-proposals/selector-generation.md */ manualSelector?: boolean; /** * 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?: number; /** * 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?: _LabelSelector_4; /** * Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ */ template: _PodTemplateSpec_5; } /** * JobStatus represents the current state of a Job. */ export declare interface JobStatus { /** * The number of actively running pods. */ active?: number; /** * 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?: _Time_2; /** * The latest available observations of an object's current state. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/ */ conditions?: Iterable; /** * The number of pods which reached phase Failed. */ failed?: number; /** * 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?: _Time_2; /** * The number of pods which reached phase Succeeded. */ succeeded?: number; } export declare type DeleteOptions = _DeleteOptions_6; export declare type WatchEvent = _WatchEvent_7;