Class V1beta1Policy.PodDisruptionBudgetStatus

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

public static final class V1beta1Policy.PodDisruptionBudgetStatus extends com.google.protobuf.GeneratedMessageV3 implements V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
 PodDisruptionBudgetStatus represents information about the status of a
 PodDisruptionBudget. Status may trail the actual state of a system.
 
Protobuf type k8s.io.api.policy.v1beta1.PodDisruptionBudgetStatus
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()
    • internalGetMapField

      protected com.google.protobuf.MapField internalGetMapField(int number)
      Overrides:
      internalGetMapField in class com.google.protobuf.GeneratedMessageV3
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
    • hasObservedGeneration

      public boolean hasObservedGeneration()
       Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
       status information is valid only if observedGeneration equals to PDB's object generation.
       +optional
       
      optional int64 observedGeneration = 1;
      Specified by:
      hasObservedGeneration in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getObservedGeneration

      public long getObservedGeneration()
       Most recent generation observed when updating this PDB status. DisruptionsAllowed and other
       status information is valid only if observedGeneration equals to PDB's object generation.
       +optional
       
      optional int64 observedGeneration = 1;
      Specified by:
      getObservedGeneration in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDisruptedPodsCount

      public int getDisruptedPodsCount()
      Description copied from interface: V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
       DisruptedPods contains information about pods whose eviction was
       processed by the API server eviction subresource handler but has not
       yet been observed by the PodDisruptionBudget controller.
       A pod will be in this map from the time when the API server processed the
       eviction request to the time when the pod is seen by PDB controller
       as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       and the value is the time when the API server processed the eviction request. If
       the deletion didn't occur and a pod is still there it will be removed from
       the list automatically by PodDisruptionBudget controller after some time.
       If everything goes smooth this map should be empty for the most of the time.
       Large number of entries in the map may indicate problems with pod deletions.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
      Specified by:
      getDisruptedPodsCount in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • containsDisruptedPods

      public boolean containsDisruptedPods(String key)
       DisruptedPods contains information about pods whose eviction was
       processed by the API server eviction subresource handler but has not
       yet been observed by the PodDisruptionBudget controller.
       A pod will be in this map from the time when the API server processed the
       eviction request to the time when the pod is seen by PDB controller
       as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       and the value is the time when the API server processed the eviction request. If
       the deletion didn't occur and a pod is still there it will be removed from
       the list automatically by PodDisruptionBudget controller after some time.
       If everything goes smooth this map should be empty for the most of the time.
       Large number of entries in the map may indicate problems with pod deletions.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
      Specified by:
      containsDisruptedPods in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDisruptedPods

      @Deprecated public Map<String,Meta.Time> getDisruptedPods()
      Deprecated.
      Specified by:
      getDisruptedPods in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDisruptedPodsMap

      public Map<String,Meta.Time> getDisruptedPodsMap()
       DisruptedPods contains information about pods whose eviction was
       processed by the API server eviction subresource handler but has not
       yet been observed by the PodDisruptionBudget controller.
       A pod will be in this map from the time when the API server processed the
       eviction request to the time when the pod is seen by PDB controller
       as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       and the value is the time when the API server processed the eviction request. If
       the deletion didn't occur and a pod is still there it will be removed from
       the list automatically by PodDisruptionBudget controller after some time.
       If everything goes smooth this map should be empty for the most of the time.
       Large number of entries in the map may indicate problems with pod deletions.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
      Specified by:
      getDisruptedPodsMap in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDisruptedPodsOrDefault

      public Meta.Time getDisruptedPodsOrDefault(String key, Meta.Time defaultValue)
       DisruptedPods contains information about pods whose eviction was
       processed by the API server eviction subresource handler but has not
       yet been observed by the PodDisruptionBudget controller.
       A pod will be in this map from the time when the API server processed the
       eviction request to the time when the pod is seen by PDB controller
       as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       and the value is the time when the API server processed the eviction request. If
       the deletion didn't occur and a pod is still there it will be removed from
       the list automatically by PodDisruptionBudget controller after some time.
       If everything goes smooth this map should be empty for the most of the time.
       Large number of entries in the map may indicate problems with pod deletions.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
      Specified by:
      getDisruptedPodsOrDefault in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDisruptedPodsOrThrow

      public Meta.Time getDisruptedPodsOrThrow(String key)
       DisruptedPods contains information about pods whose eviction was
       processed by the API server eviction subresource handler but has not
       yet been observed by the PodDisruptionBudget controller.
       A pod will be in this map from the time when the API server processed the
       eviction request to the time when the pod is seen by PDB controller
       as having been marked for deletion (or after a timeout). The key in the map is the name of the pod
       and the value is the time when the API server processed the eviction request. If
       the deletion didn't occur and a pod is still there it will be removed from
       the list automatically by PodDisruptionBudget controller after some time.
       If everything goes smooth this map should be empty for the most of the time.
       Large number of entries in the map may indicate problems with pod deletions.
       +optional
       
      map<string, .k8s.io.apimachinery.pkg.apis.meta.v1.Time> disruptedPods = 2;
      Specified by:
      getDisruptedPodsOrThrow in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • hasDisruptionsAllowed

      public boolean hasDisruptionsAllowed()
       Number of pod disruptions that are currently allowed.
       
      optional int32 disruptionsAllowed = 3;
      Specified by:
      hasDisruptionsAllowed in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDisruptionsAllowed

      public int getDisruptionsAllowed()
       Number of pod disruptions that are currently allowed.
       
      optional int32 disruptionsAllowed = 3;
      Specified by:
      getDisruptionsAllowed in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • hasCurrentHealthy

      public boolean hasCurrentHealthy()
       current number of healthy pods
       
      optional int32 currentHealthy = 4;
      Specified by:
      hasCurrentHealthy in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getCurrentHealthy

      public int getCurrentHealthy()
       current number of healthy pods
       
      optional int32 currentHealthy = 4;
      Specified by:
      getCurrentHealthy in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • hasDesiredHealthy

      public boolean hasDesiredHealthy()
       minimum desired number of healthy pods
       
      optional int32 desiredHealthy = 5;
      Specified by:
      hasDesiredHealthy in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getDesiredHealthy

      public int getDesiredHealthy()
       minimum desired number of healthy pods
       
      optional int32 desiredHealthy = 5;
      Specified by:
      getDesiredHealthy in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • hasExpectedPods

      public boolean hasExpectedPods()
       total number of pods counted by this disruption budget
       
      optional int32 expectedPods = 6;
      Specified by:
      hasExpectedPods in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getExpectedPods

      public int getExpectedPods()
       total number of pods counted by this disruption budget
       
      optional int32 expectedPods = 6;
      Specified by:
      getExpectedPods in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getConditionsList

      public List<Meta.Condition> getConditionsList()
       Conditions contain conditions for PDB. The disruption controller sets the
       DisruptionAllowed condition. The following are known values for the reason field
       (additional reasons could be added in the future):
       - SyncFailed: The controller encountered an error and wasn't able to compute
                     the number of allowed disruptions. Therefore no disruptions are
                     allowed and the status of the condition will be False.
       - InsufficientPods: The number of pods are either at or below the number
                           required by the PodDisruptionBudget. No disruptions are
                           allowed and the status of the condition will be False.
       - SufficientPods: There are more pods than required by the PodDisruptionBudget.
                         The condition will be True, and the number of allowed
                         disruptions are provided by the disruptionsAllowed property.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=map
       +listMapKey=type
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7;
      Specified by:
      getConditionsList in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getConditionsOrBuilderList

      public List<? extends Meta.ConditionOrBuilder> getConditionsOrBuilderList()
       Conditions contain conditions for PDB. The disruption controller sets the
       DisruptionAllowed condition. The following are known values for the reason field
       (additional reasons could be added in the future):
       - SyncFailed: The controller encountered an error and wasn't able to compute
                     the number of allowed disruptions. Therefore no disruptions are
                     allowed and the status of the condition will be False.
       - InsufficientPods: The number of pods are either at or below the number
                           required by the PodDisruptionBudget. No disruptions are
                           allowed and the status of the condition will be False.
       - SufficientPods: There are more pods than required by the PodDisruptionBudget.
                         The condition will be True, and the number of allowed
                         disruptions are provided by the disruptionsAllowed property.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=map
       +listMapKey=type
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7;
      Specified by:
      getConditionsOrBuilderList in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getConditionsCount

      public int getConditionsCount()
       Conditions contain conditions for PDB. The disruption controller sets the
       DisruptionAllowed condition. The following are known values for the reason field
       (additional reasons could be added in the future):
       - SyncFailed: The controller encountered an error and wasn't able to compute
                     the number of allowed disruptions. Therefore no disruptions are
                     allowed and the status of the condition will be False.
       - InsufficientPods: The number of pods are either at or below the number
                           required by the PodDisruptionBudget. No disruptions are
                           allowed and the status of the condition will be False.
       - SufficientPods: There are more pods than required by the PodDisruptionBudget.
                         The condition will be True, and the number of allowed
                         disruptions are provided by the disruptionsAllowed property.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=map
       +listMapKey=type
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7;
      Specified by:
      getConditionsCount in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getConditions

      public Meta.Condition getConditions(int index)
       Conditions contain conditions for PDB. The disruption controller sets the
       DisruptionAllowed condition. The following are known values for the reason field
       (additional reasons could be added in the future):
       - SyncFailed: The controller encountered an error and wasn't able to compute
                     the number of allowed disruptions. Therefore no disruptions are
                     allowed and the status of the condition will be False.
       - InsufficientPods: The number of pods are either at or below the number
                           required by the PodDisruptionBudget. No disruptions are
                           allowed and the status of the condition will be False.
       - SufficientPods: There are more pods than required by the PodDisruptionBudget.
                         The condition will be True, and the number of allowed
                         disruptions are provided by the disruptionsAllowed property.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=map
       +listMapKey=type
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7;
      Specified by:
      getConditions in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • getConditionsOrBuilder

      public Meta.ConditionOrBuilder getConditionsOrBuilder(int index)
       Conditions contain conditions for PDB. The disruption controller sets the
       DisruptionAllowed condition. The following are known values for the reason field
       (additional reasons could be added in the future):
       - SyncFailed: The controller encountered an error and wasn't able to compute
                     the number of allowed disruptions. Therefore no disruptions are
                     allowed and the status of the condition will be False.
       - InsufficientPods: The number of pods are either at or below the number
                           required by the PodDisruptionBudget. No disruptions are
                           allowed and the status of the condition will be False.
       - SufficientPods: There are more pods than required by the PodDisruptionBudget.
                         The condition will be True, and the number of allowed
                         disruptions are provided by the disruptionsAllowed property.
       +optional
       +patchMergeKey=type
       +patchStrategy=merge
       +listType=map
       +listMapKey=type
       
      repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 7;
      Specified by:
      getConditionsOrBuilder in interface V1beta1Policy.PodDisruptionBudgetStatusOrBuilder
    • 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 V1beta1Policy.PodDisruptionBudgetStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

      public static V1beta1Policy.PodDisruptionBudgetStatus parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static V1beta1Policy.PodDisruptionBudgetStatus parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

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

      public static V1beta1Policy.PodDisruptionBudgetStatus 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 V1beta1Policy.PodDisruptionBudgetStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
      Specified by:
      newBuilderForType in class com.google.protobuf.GeneratedMessageV3
    • getDefaultInstance

      public static V1beta1Policy.PodDisruptionBudgetStatus getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<V1beta1Policy.PodDisruptionBudgetStatus> parser()
    • getParserForType

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