Class V1beta1Extensions.RollingUpdateDeployment

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

public static final class V1beta1Extensions.RollingUpdateDeployment extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Extensions.RollingUpdateDeploymentOrBuilder
 Spec to control the desired behavior of rolling update.
 
Protobuf type k8s.io.api.extensions.v1beta1.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.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, 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 V1beta1Extensions.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.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, 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 V1beta1Extensions.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.
       By default, a fixed value of 1 is used.
       Example: when this is set to 30%, the old RC can be scaled down to 70% of desired pods
       immediately when the rolling update starts. Once new pods are ready, old RC
       can be scaled down further, followed by scaling up the new RC, 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 V1beta1Extensions.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.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC 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 RC 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 V1beta1Extensions.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.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC 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 RC 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 V1beta1Extensions.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.
       By default, a value of 1 is used.
       Example: when this is set to 30%, the new RC 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 RC 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 V1beta1Extensions.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 V1beta1Extensions.RollingUpdateDeployment parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

      public static V1beta1Extensions.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 V1beta1Extensions.RollingUpdateDeployment parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

    • newBuilder

    • toBuilder

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

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

      public static V1beta1Extensions.RollingUpdateDeployment getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<V1beta1Extensions.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 V1beta1Extensions.RollingUpdateDeployment getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder