public static final class V1Batch.JobSpec extends com.google.protobuf.GeneratedMessageV3 implements V1Batch.JobSpecOrBuilder
JobSpec describes how the job execution will look like.Protobuf type
k8s.io.api.batch.v1.JobSpec| Modifier and Type | Class and Description |
|---|---|
static class |
V1Batch.JobSpec.Builder
JobSpec describes how the job execution will look like.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVEDEADLINESECONDS_FIELD_NUMBER |
static int |
BACKOFFLIMIT_FIELD_NUMBER |
static int |
COMPLETIONS_FIELD_NUMBER |
static int |
MANUALSELECTOR_FIELD_NUMBER |
static int |
PARALLELISM_FIELD_NUMBER |
static com.google.protobuf.Parser<V1Batch.JobSpec> |
PARSER
Deprecated.
|
static int |
SELECTOR_FIELD_NUMBER |
static int |
TEMPLATE_FIELD_NUMBER |
static int |
TTLSECONDSAFTERFINISHED_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
long |
getActiveDeadlineSeconds()
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
+optional
|
int |
getBackoffLimit()
Specifies the number of retries before marking this job failed.
|
int |
getCompletions()
Specifies the desired number of successfully finished pods the
job should be run with.
|
static V1Batch.JobSpec |
getDefaultInstance() |
V1Batch.JobSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
boolean |
getManualSelector()
manualSelector controls generation of pod labels and pod selectors.
|
int |
getParallelism()
Specifies the maximum desired number of pods the job should
run at any given time.
|
com.google.protobuf.Parser<V1Batch.JobSpec> |
getParserForType() |
Meta.LabelSelector |
getSelector()
A label query over pods that should match the pod count.
|
Meta.LabelSelectorOrBuilder |
getSelectorOrBuilder()
A label query over pods that should match the pod count.
|
int |
getSerializedSize() |
V1.PodTemplateSpec |
getTemplate()
Describes the pod that will be created when executing a job.
|
V1.PodTemplateSpecOrBuilder |
getTemplateOrBuilder()
Describes the pod that will be created when executing a job.
|
int |
getTtlSecondsAfterFinished()
ttlSecondsAfterFinished limits the lifetime of a Job that has finished
execution (either Complete or Failed).
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasActiveDeadlineSeconds()
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
+optional
|
boolean |
hasBackoffLimit()
Specifies the number of retries before marking this job failed.
|
boolean |
hasCompletions()
Specifies the desired number of successfully finished pods the
job should be run with.
|
int |
hashCode() |
boolean |
hasManualSelector()
manualSelector controls generation of pod labels and pod selectors.
|
boolean |
hasParallelism()
Specifies the maximum desired number of pods the job should
run at any given time.
|
boolean |
hasSelector()
A label query over pods that should match the pod count.
|
boolean |
hasTemplate()
Describes the pod that will be created when executing a job.
|
boolean |
hasTtlSecondsAfterFinished()
ttlSecondsAfterFinished limits the lifetime of a Job that has finished
execution (either Complete or Failed).
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static V1Batch.JobSpec.Builder |
newBuilder() |
static V1Batch.JobSpec.Builder |
newBuilder(V1Batch.JobSpec prototype) |
V1Batch.JobSpec.Builder |
newBuilderForType() |
protected V1Batch.JobSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
static V1Batch.JobSpec |
parseDelimitedFrom(InputStream input) |
static V1Batch.JobSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Batch.JobSpec |
parseFrom(byte[] data) |
static V1Batch.JobSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Batch.JobSpec |
parseFrom(ByteBuffer data) |
static V1Batch.JobSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Batch.JobSpec |
parseFrom(com.google.protobuf.ByteString data) |
static V1Batch.JobSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Batch.JobSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static V1Batch.JobSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static V1Batch.JobSpec |
parseFrom(InputStream input) |
static V1Batch.JobSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<V1Batch.JobSpec> |
parser() |
V1Batch.JobSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newInstance, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int PARALLELISM_FIELD_NUMBER
public static final int COMPLETIONS_FIELD_NUMBER
public static final int ACTIVEDEADLINESECONDS_FIELD_NUMBER
public static final int BACKOFFLIMIT_FIELD_NUMBER
public static final int SELECTOR_FIELD_NUMBER
public static final int MANUALSELECTOR_FIELD_NUMBER
public static final int TEMPLATE_FIELD_NUMBER
public static final int TTLSECONDSAFTERFINISHED_FIELD_NUMBER
@Deprecated public static final com.google.protobuf.Parser<V1Batch.JobSpec> PARSER
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public boolean hasParallelism()
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/ +optional
optional int32 parallelism = 1;hasParallelism in interface V1Batch.JobSpecOrBuilderpublic int getParallelism()
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/ +optional
optional int32 parallelism = 1;getParallelism in interface V1Batch.JobSpecOrBuilderpublic boolean hasCompletions()
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/ +optional
optional int32 completions = 2;hasCompletions in interface V1Batch.JobSpecOrBuilderpublic int getCompletions()
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/ +optional
optional int32 completions = 2;getCompletions in interface V1Batch.JobSpecOrBuilderpublic boolean hasActiveDeadlineSeconds()
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 +optional
optional int64 activeDeadlineSeconds = 3;hasActiveDeadlineSeconds in interface V1Batch.JobSpecOrBuilderpublic long getActiveDeadlineSeconds()
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 +optional
optional int64 activeDeadlineSeconds = 3;getActiveDeadlineSeconds in interface V1Batch.JobSpecOrBuilderpublic boolean hasBackoffLimit()
Specifies the number of retries before marking this job failed. Defaults to 6 +optional
optional int32 backoffLimit = 7;hasBackoffLimit in interface V1Batch.JobSpecOrBuilderpublic int getBackoffLimit()
Specifies the number of retries before marking this job failed. Defaults to 6 +optional
optional int32 backoffLimit = 7;getBackoffLimit in interface V1Batch.JobSpecOrBuilderpublic boolean hasSelector()
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 +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;hasSelector in interface V1Batch.JobSpecOrBuilderpublic Meta.LabelSelector getSelector()
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 +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;getSelector in interface V1Batch.JobSpecOrBuilderpublic Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
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 +optional
optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 4;getSelectorOrBuilder in interface V1Batch.JobSpecOrBuilderpublic boolean hasManualSelector()
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 +optional
optional bool manualSelector = 5;hasManualSelector in interface V1Batch.JobSpecOrBuilderpublic boolean getManualSelector()
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 +optional
optional bool manualSelector = 5;getManualSelector in interface V1Batch.JobSpecOrBuilderpublic boolean hasTemplate()
Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
optional .k8s.io.api.core.v1.PodTemplateSpec template = 6;hasTemplate in interface V1Batch.JobSpecOrBuilderpublic V1.PodTemplateSpec getTemplate()
Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
optional .k8s.io.api.core.v1.PodTemplateSpec template = 6;getTemplate in interface V1Batch.JobSpecOrBuilderpublic V1.PodTemplateSpecOrBuilder getTemplateOrBuilder()
Describes the pod that will be created when executing a job. More info: https://kubernetes.io/docs/concepts/workloads/controllers/jobs-run-to-completion/
optional .k8s.io.api.core.v1.PodTemplateSpec template = 6;getTemplateOrBuilder in interface V1Batch.JobSpecOrBuilderpublic boolean hasTtlSecondsAfterFinished()
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. +optional
optional int32 ttlSecondsAfterFinished = 8;hasTtlSecondsAfterFinished in interface V1Batch.JobSpecOrBuilderpublic int getTtlSecondsAfterFinished()
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. +optional
optional int32 ttlSecondsAfterFinished = 8;getTtlSecondsAfterFinished in interface V1Batch.JobSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static V1Batch.JobSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Batch.JobSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Batch.JobSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Batch.JobSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Batch.JobSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Batch.JobSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static V1Batch.JobSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static V1Batch.JobSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1Batch.JobSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static V1Batch.JobSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static V1Batch.JobSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static V1Batch.JobSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic V1Batch.JobSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static V1Batch.JobSpec.Builder newBuilder()
public static V1Batch.JobSpec.Builder newBuilder(V1Batch.JobSpec prototype)
public V1Batch.JobSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected V1Batch.JobSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static V1Batch.JobSpec getDefaultInstance()
public static com.google.protobuf.Parser<V1Batch.JobSpec> parser()
public com.google.protobuf.Parser<V1Batch.JobSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public V1Batch.JobSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2020. All rights reserved.