Class V1beta1Apps.StatefulSetSpec.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
io.kubernetes.client.proto.V1beta1Apps.StatefulSetSpec.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta1Apps.StatefulSetSpecOrBuilder, Cloneable
Enclosing class:
V1beta1Apps.StatefulSetSpec

public static final class V1beta1Apps.StatefulSetSpec.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder> implements V1beta1Apps.StatefulSetSpecOrBuilder
 A StatefulSetSpec is the specification of a StatefulSet.
 
Protobuf type k8s.io.api.apps.v1beta1.StatefulSetSpec
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • getDefaultInstanceForType

      public V1beta1Apps.StatefulSetSpec getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public V1beta1Apps.StatefulSetSpec buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • setField

      public V1beta1Apps.StatefulSetSpec.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • clearField

      public V1beta1Apps.StatefulSetSpec.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • clearOneof

      public V1beta1Apps.StatefulSetSpec.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • setRepeatedField

      public V1beta1Apps.StatefulSetSpec.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • addRepeatedField

      public V1beta1Apps.StatefulSetSpec.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • mergeFrom

      public V1beta1Apps.StatefulSetSpec.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • mergeFrom

      public V1beta1Apps.StatefulSetSpec.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<V1beta1Apps.StatefulSetSpec.Builder>
      Throws:
      IOException
    • hasReplicas

      public boolean hasReplicas()
       replicas is the desired number of replicas of the given Template.
       These are replicas in the sense that they are instantiations of the
       same Template, but individual replicas also have a consistent identity.
       If unspecified, defaults to 1.
       TODO: Consider a rename of this field.
       +optional
       
      optional int32 replicas = 1;
      Specified by:
      hasReplicas in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getReplicas

      public int getReplicas()
       replicas is the desired number of replicas of the given Template.
       These are replicas in the sense that they are instantiations of the
       same Template, but individual replicas also have a consistent identity.
       If unspecified, defaults to 1.
       TODO: Consider a rename of this field.
       +optional
       
      optional int32 replicas = 1;
      Specified by:
      getReplicas in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setReplicas

      public V1beta1Apps.StatefulSetSpec.Builder setReplicas(int value)
       replicas is the desired number of replicas of the given Template.
       These are replicas in the sense that they are instantiations of the
       same Template, but individual replicas also have a consistent identity.
       If unspecified, defaults to 1.
       TODO: Consider a rename of this field.
       +optional
       
      optional int32 replicas = 1;
    • clearReplicas

      public V1beta1Apps.StatefulSetSpec.Builder clearReplicas()
       replicas is the desired number of replicas of the given Template.
       These are replicas in the sense that they are instantiations of the
       same Template, but individual replicas also have a consistent identity.
       If unspecified, defaults to 1.
       TODO: Consider a rename of this field.
       +optional
       
      optional int32 replicas = 1;
    • hasSelector

      public boolean hasSelector()
       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
      Specified by:
      hasSelector in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getSelector

      public Meta.LabelSelector getSelector()
       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
      Specified by:
      getSelector in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setSelector

       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
    • setSelector

       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
    • mergeSelector

       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
    • clearSelector

      public V1beta1Apps.StatefulSetSpec.Builder clearSelector()
       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
    • getSelectorBuilder

      public Meta.LabelSelector.Builder getSelectorBuilder()
       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
    • getSelectorOrBuilder

      public Meta.LabelSelectorOrBuilder getSelectorOrBuilder()
       selector is a label query over pods that should match the replica count.
       If empty, defaulted to labels on the pod template.
       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 = 2;
      Specified by:
      getSelectorOrBuilder in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • hasTemplate

      public boolean hasTemplate()
       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
      Specified by:
      hasTemplate in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getTemplate

      public V1.PodTemplateSpec getTemplate()
       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
      Specified by:
      getTemplate in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setTemplate

       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • setTemplate

       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • mergeTemplate

       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • clearTemplate

      public V1beta1Apps.StatefulSetSpec.Builder clearTemplate()
       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • getTemplateBuilder

      public V1.PodTemplateSpec.Builder getTemplateBuilder()
       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
    • getTemplateOrBuilder

      public V1.PodTemplateSpecOrBuilder getTemplateOrBuilder()
       template is the object that describes the pod that will be created if
       insufficient replicas are detected. Each pod stamped out by the StatefulSet
       will fulfill this Template, but have a unique identity from the rest
       of the StatefulSet.
       
      optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
      Specified by:
      getTemplateOrBuilder in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getVolumeClaimTemplatesList

      public List<V1.PersistentVolumeClaim> getVolumeClaimTemplatesList()
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
      Specified by:
      getVolumeClaimTemplatesList in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getVolumeClaimTemplatesCount

      public int getVolumeClaimTemplatesCount()
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
      Specified by:
      getVolumeClaimTemplatesCount in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getVolumeClaimTemplates

      public V1.PersistentVolumeClaim getVolumeClaimTemplates(int index)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
      Specified by:
      getVolumeClaimTemplates in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder setVolumeClaimTemplates(int index, V1.PersistentVolumeClaim value)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • setVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder setVolumeClaimTemplates(int index, V1.PersistentVolumeClaim.Builder builderForValue)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • addVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder addVolumeClaimTemplates(V1.PersistentVolumeClaim value)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • addVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder addVolumeClaimTemplates(int index, V1.PersistentVolumeClaim value)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • addVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder addVolumeClaimTemplates(V1.PersistentVolumeClaim.Builder builderForValue)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • addVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder addVolumeClaimTemplates(int index, V1.PersistentVolumeClaim.Builder builderForValue)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • addAllVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder addAllVolumeClaimTemplates(Iterable<? extends V1.PersistentVolumeClaim> values)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • clearVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder clearVolumeClaimTemplates()
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • removeVolumeClaimTemplates

      public V1beta1Apps.StatefulSetSpec.Builder removeVolumeClaimTemplates(int index)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • getVolumeClaimTemplatesBuilder

      public V1.PersistentVolumeClaim.Builder getVolumeClaimTemplatesBuilder(int index)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • getVolumeClaimTemplatesOrBuilder

      public V1.PersistentVolumeClaimOrBuilder getVolumeClaimTemplatesOrBuilder(int index)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
      Specified by:
      getVolumeClaimTemplatesOrBuilder in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getVolumeClaimTemplatesOrBuilderList

      public List<? extends V1.PersistentVolumeClaimOrBuilder> getVolumeClaimTemplatesOrBuilderList()
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
      Specified by:
      getVolumeClaimTemplatesOrBuilderList in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • addVolumeClaimTemplatesBuilder

      public V1.PersistentVolumeClaim.Builder addVolumeClaimTemplatesBuilder()
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • addVolumeClaimTemplatesBuilder

      public V1.PersistentVolumeClaim.Builder addVolumeClaimTemplatesBuilder(int index)
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • getVolumeClaimTemplatesBuilderList

      public List<V1.PersistentVolumeClaim.Builder> getVolumeClaimTemplatesBuilderList()
       volumeClaimTemplates is a list of claims that pods are allowed to reference.
       The StatefulSet controller is responsible for mapping network identities to
       claims in a way that maintains the identity of a pod. Every claim in
       this list must have at least one matching (by name) volumeMount in one
       container in the template. A claim in this list takes precedence over
       any volumes in the template, with the same name.
       TODO: Define the behavior if a claim already exists with the same name.
       +optional
       
      repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
    • hasServiceName

      public boolean hasServiceName()
       serviceName is the name of the service that governs this StatefulSet.
       This service must exist before the StatefulSet, and is responsible for
       the network identity of the set. Pods get DNS/hostnames that follow the
       pattern: pod-specific-string.serviceName.default.svc.cluster.local
       where "pod-specific-string" is managed by the StatefulSet controller.
       
      optional string serviceName = 5;
      Specified by:
      hasServiceName in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getServiceName

      public String getServiceName()
       serviceName is the name of the service that governs this StatefulSet.
       This service must exist before the StatefulSet, and is responsible for
       the network identity of the set. Pods get DNS/hostnames that follow the
       pattern: pod-specific-string.serviceName.default.svc.cluster.local
       where "pod-specific-string" is managed by the StatefulSet controller.
       
      optional string serviceName = 5;
      Specified by:
      getServiceName in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getServiceNameBytes

      public com.google.protobuf.ByteString getServiceNameBytes()
       serviceName is the name of the service that governs this StatefulSet.
       This service must exist before the StatefulSet, and is responsible for
       the network identity of the set. Pods get DNS/hostnames that follow the
       pattern: pod-specific-string.serviceName.default.svc.cluster.local
       where "pod-specific-string" is managed by the StatefulSet controller.
       
      optional string serviceName = 5;
      Specified by:
      getServiceNameBytes in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setServiceName

      public V1beta1Apps.StatefulSetSpec.Builder setServiceName(String value)
       serviceName is the name of the service that governs this StatefulSet.
       This service must exist before the StatefulSet, and is responsible for
       the network identity of the set. Pods get DNS/hostnames that follow the
       pattern: pod-specific-string.serviceName.default.svc.cluster.local
       where "pod-specific-string" is managed by the StatefulSet controller.
       
      optional string serviceName = 5;
    • clearServiceName

      public V1beta1Apps.StatefulSetSpec.Builder clearServiceName()
       serviceName is the name of the service that governs this StatefulSet.
       This service must exist before the StatefulSet, and is responsible for
       the network identity of the set. Pods get DNS/hostnames that follow the
       pattern: pod-specific-string.serviceName.default.svc.cluster.local
       where "pod-specific-string" is managed by the StatefulSet controller.
       
      optional string serviceName = 5;
    • setServiceNameBytes

      public V1beta1Apps.StatefulSetSpec.Builder setServiceNameBytes(com.google.protobuf.ByteString value)
       serviceName is the name of the service that governs this StatefulSet.
       This service must exist before the StatefulSet, and is responsible for
       the network identity of the set. Pods get DNS/hostnames that follow the
       pattern: pod-specific-string.serviceName.default.svc.cluster.local
       where "pod-specific-string" is managed by the StatefulSet controller.
       
      optional string serviceName = 5;
    • hasPodManagementPolicy

      public boolean hasPodManagementPolicy()
       podManagementPolicy controls how pods are created during initial scale up,
       when replacing pods on nodes, or when scaling down. The default policy is
       `OrderedReady`, where pods are created in increasing order (pod-0, then
       pod-1, etc) and the controller will wait until each pod is ready before
       continuing. When scaling down, the pods are removed in the opposite order.
       The alternative policy is `Parallel` which will create pods in parallel
       to match the desired scale without waiting, and on scale down will delete
       all pods at once.
       +optional
       
      optional string podManagementPolicy = 6;
      Specified by:
      hasPodManagementPolicy in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getPodManagementPolicy

      public String getPodManagementPolicy()
       podManagementPolicy controls how pods are created during initial scale up,
       when replacing pods on nodes, or when scaling down. The default policy is
       `OrderedReady`, where pods are created in increasing order (pod-0, then
       pod-1, etc) and the controller will wait until each pod is ready before
       continuing. When scaling down, the pods are removed in the opposite order.
       The alternative policy is `Parallel` which will create pods in parallel
       to match the desired scale without waiting, and on scale down will delete
       all pods at once.
       +optional
       
      optional string podManagementPolicy = 6;
      Specified by:
      getPodManagementPolicy in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getPodManagementPolicyBytes

      public com.google.protobuf.ByteString getPodManagementPolicyBytes()
       podManagementPolicy controls how pods are created during initial scale up,
       when replacing pods on nodes, or when scaling down. The default policy is
       `OrderedReady`, where pods are created in increasing order (pod-0, then
       pod-1, etc) and the controller will wait until each pod is ready before
       continuing. When scaling down, the pods are removed in the opposite order.
       The alternative policy is `Parallel` which will create pods in parallel
       to match the desired scale without waiting, and on scale down will delete
       all pods at once.
       +optional
       
      optional string podManagementPolicy = 6;
      Specified by:
      getPodManagementPolicyBytes in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setPodManagementPolicy

      public V1beta1Apps.StatefulSetSpec.Builder setPodManagementPolicy(String value)
       podManagementPolicy controls how pods are created during initial scale up,
       when replacing pods on nodes, or when scaling down. The default policy is
       `OrderedReady`, where pods are created in increasing order (pod-0, then
       pod-1, etc) and the controller will wait until each pod is ready before
       continuing. When scaling down, the pods are removed in the opposite order.
       The alternative policy is `Parallel` which will create pods in parallel
       to match the desired scale without waiting, and on scale down will delete
       all pods at once.
       +optional
       
      optional string podManagementPolicy = 6;
    • clearPodManagementPolicy

      public V1beta1Apps.StatefulSetSpec.Builder clearPodManagementPolicy()
       podManagementPolicy controls how pods are created during initial scale up,
       when replacing pods on nodes, or when scaling down. The default policy is
       `OrderedReady`, where pods are created in increasing order (pod-0, then
       pod-1, etc) and the controller will wait until each pod is ready before
       continuing. When scaling down, the pods are removed in the opposite order.
       The alternative policy is `Parallel` which will create pods in parallel
       to match the desired scale without waiting, and on scale down will delete
       all pods at once.
       +optional
       
      optional string podManagementPolicy = 6;
    • setPodManagementPolicyBytes

      public V1beta1Apps.StatefulSetSpec.Builder setPodManagementPolicyBytes(com.google.protobuf.ByteString value)
       podManagementPolicy controls how pods are created during initial scale up,
       when replacing pods on nodes, or when scaling down. The default policy is
       `OrderedReady`, where pods are created in increasing order (pod-0, then
       pod-1, etc) and the controller will wait until each pod is ready before
       continuing. When scaling down, the pods are removed in the opposite order.
       The alternative policy is `Parallel` which will create pods in parallel
       to match the desired scale without waiting, and on scale down will delete
       all pods at once.
       +optional
       
      optional string podManagementPolicy = 6;
    • hasUpdateStrategy

      public boolean hasUpdateStrategy()
       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
      Specified by:
      hasUpdateStrategy in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getUpdateStrategy

      public V1beta1Apps.StatefulSetUpdateStrategy getUpdateStrategy()
       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
      Specified by:
      getUpdateStrategy in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setUpdateStrategy

       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
    • setUpdateStrategy

       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
    • mergeUpdateStrategy

       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
    • clearUpdateStrategy

      public V1beta1Apps.StatefulSetSpec.Builder clearUpdateStrategy()
       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
    • getUpdateStrategyBuilder

      public V1beta1Apps.StatefulSetUpdateStrategy.Builder getUpdateStrategyBuilder()
       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
    • getUpdateStrategyOrBuilder

      public V1beta1Apps.StatefulSetUpdateStrategyOrBuilder getUpdateStrategyOrBuilder()
       updateStrategy indicates the StatefulSetUpdateStrategy that will be
       employed to update Pods in the StatefulSet when a revision is made to
       Template.
       
      optional .k8s.io.api.apps.v1beta1.StatefulSetUpdateStrategy updateStrategy = 7;
      Specified by:
      getUpdateStrategyOrBuilder in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • hasRevisionHistoryLimit

      public boolean hasRevisionHistoryLimit()
       revisionHistoryLimit is the maximum number of revisions that will
       be maintained in the StatefulSet's revision history. The revision history
       consists of all revisions not represented by a currently applied
       StatefulSetSpec version. The default value is 10.
       
      optional int32 revisionHistoryLimit = 8;
      Specified by:
      hasRevisionHistoryLimit in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getRevisionHistoryLimit

      public int getRevisionHistoryLimit()
       revisionHistoryLimit is the maximum number of revisions that will
       be maintained in the StatefulSet's revision history. The revision history
       consists of all revisions not represented by a currently applied
       StatefulSetSpec version. The default value is 10.
       
      optional int32 revisionHistoryLimit = 8;
      Specified by:
      getRevisionHistoryLimit in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setRevisionHistoryLimit

      public V1beta1Apps.StatefulSetSpec.Builder setRevisionHistoryLimit(int value)
       revisionHistoryLimit is the maximum number of revisions that will
       be maintained in the StatefulSet's revision history. The revision history
       consists of all revisions not represented by a currently applied
       StatefulSetSpec version. The default value is 10.
       
      optional int32 revisionHistoryLimit = 8;
    • clearRevisionHistoryLimit

      public V1beta1Apps.StatefulSetSpec.Builder clearRevisionHistoryLimit()
       revisionHistoryLimit is the maximum number of revisions that will
       be maintained in the StatefulSet's revision history. The revision history
       consists of all revisions not represented by a currently applied
       StatefulSetSpec version. The default value is 10.
       
      optional int32 revisionHistoryLimit = 8;
    • hasMinReadySeconds

      public boolean hasMinReadySeconds()
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
       +optional
       
      optional int32 minReadySeconds = 9;
      Specified by:
      hasMinReadySeconds in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • getMinReadySeconds

      public int getMinReadySeconds()
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
       +optional
       
      optional int32 minReadySeconds = 9;
      Specified by:
      getMinReadySeconds in interface V1beta1Apps.StatefulSetSpecOrBuilder
    • setMinReadySeconds

      public V1beta1Apps.StatefulSetSpec.Builder setMinReadySeconds(int value)
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
       +optional
       
      optional int32 minReadySeconds = 9;
    • clearMinReadySeconds

      public V1beta1Apps.StatefulSetSpec.Builder clearMinReadySeconds()
       Minimum number of seconds for which a newly created pod should be ready
       without any of its container crashing for it to be considered available.
       Defaults to 0 (pod will be considered available as soon as it is ready)
       This is an alpha field and requires enabling StatefulSetMinReadySeconds feature gate.
       +optional
       
      optional int32 minReadySeconds = 9;
    • setUnknownFields

      public final V1beta1Apps.StatefulSetSpec.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>
    • mergeUnknownFields

      public final V1beta1Apps.StatefulSetSpec.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<V1beta1Apps.StatefulSetSpec.Builder>