Class V1beta2Apps.RollingUpdateDeployment

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.kubernetes.client.proto.V1beta2Apps.RollingUpdateDeployment
All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, V1beta2Apps.RollingUpdateDeploymentOrBuilder, Serializable
Enclosing class:
V1beta2Apps

public static final class V1beta2Apps.RollingUpdateDeployment extends com.google.protobuf.GeneratedMessageV3 implements V1beta2Apps.RollingUpdateDeploymentOrBuilder
 Spec to control the desired behavior of rolling update.
 
Protobuf type k8s.io.api.apps.v1beta2.RollingUpdateDeployment
See Also:
  • Field Details

  • Method Details

    • getUnknownFields

      public final com.google.protobuf.UnknownFieldSet getUnknownFields()
      Specified by:
      getUnknownFields in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getUnknownFields in class com.google.protobuf.GeneratedMessageV3
    • 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
    • hasMaxUnavailable

      public boolean hasMaxUnavailable()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       Defaults to 25%.
       Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
       can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      hasMaxUnavailable in interface V1beta2Apps.RollingUpdateDeploymentOrBuilder
    • getMaxUnavailable

      public IntStr.IntOrString getMaxUnavailable()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       Defaults to 25%.
       Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
       can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      getMaxUnavailable in interface V1beta2Apps.RollingUpdateDeploymentOrBuilder
    • getMaxUnavailableOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxUnavailableOrBuilder()
       The maximum number of pods that can be unavailable during the update.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       Absolute number is calculated from percentage by rounding down.
       This can not be 0 if MaxSurge is 0.
       Defaults to 25%.
       Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
       can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
       that the total number of pods available at all times during the update is at
       least 70% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
      Specified by:
      getMaxUnavailableOrBuilder in interface V1beta2Apps.RollingUpdateDeploymentOrBuilder
    • hasMaxSurge

      public boolean hasMaxSurge()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       Defaults to 25%.
       Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new ReplicaSet can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      hasMaxSurge in interface V1beta2Apps.RollingUpdateDeploymentOrBuilder
    • getMaxSurge

      public IntStr.IntOrString getMaxSurge()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       Defaults to 25%.
       Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new ReplicaSet can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      getMaxSurge in interface V1beta2Apps.RollingUpdateDeploymentOrBuilder
    • getMaxSurgeOrBuilder

      public IntStr.IntOrStringOrBuilder getMaxSurgeOrBuilder()
       The maximum number of pods that can be scheduled above the desired number of
       pods.
       Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
       This can not be 0 if MaxUnavailable is 0.
       Absolute number is calculated from percentage by rounding up.
       Defaults to 25%.
       Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
       the rolling update starts, such that the total number of old and new pods do not exceed
       130% of desired pods. Once old pods have been killed,
       new ReplicaSet can be scaled up further, ensuring that total number of pods running
       at any time during the update is at most 130% of desired pods.
       +optional
       
      optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
      Specified by:
      getMaxSurgeOrBuilder in interface V1beta2Apps.RollingUpdateDeploymentOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessageV3
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessageV3
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta2Apps.RollingUpdateDeployment parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static V1beta2Apps.RollingUpdateDeployment parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static V1beta2Apps.RollingUpdateDeployment parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public V1beta2Apps.RollingUpdateDeployment.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static V1beta2Apps.RollingUpdateDeployment.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected V1beta2Apps.RollingUpdateDeployment.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1beta2Apps.RollingUpdateDeployment getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1beta2Apps.RollingUpdateDeployment> parser()
    • getParserForType

      public com.google.protobuf.Parser<V1beta2Apps.RollingUpdateDeployment> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstanceForType

      public V1beta2Apps.RollingUpdateDeployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder