kubernetes_asyncio.client.models.v1_pod_disruption_budget_status module
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.34.3 Generated by: https://openapi-generator.tech
- class kubernetes_asyncio.client.models.v1_pod_disruption_budget_status.V1PodDisruptionBudgetStatus(conditions=None, current_healthy=None, desired_healthy=None, disrupted_pods=None, disruptions_allowed=None, expected_pods=None, observed_generation=None, local_vars_configuration=None)
Bases:
objectNOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech
Do not edit the class manually.
- attribute_map = {'conditions': 'conditions', 'current_healthy': 'currentHealthy', 'desired_healthy': 'desiredHealthy', 'disrupted_pods': 'disruptedPods', 'disruptions_allowed': 'disruptionsAllowed', 'expected_pods': 'expectedPods', 'observed_generation': 'observedGeneration'}
- property conditions
Gets the conditions of this V1PodDisruptionBudgetStatus. # noqa: E501
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. # noqa: E501
- Returns:
The conditions of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
list[V1Condition]
- property current_healthy
Gets the current_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501
current number of healthy pods # noqa: E501
- Returns:
The current_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
int
- property desired_healthy
Gets the desired_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501
minimum desired number of healthy pods # noqa: E501
- Returns:
The desired_healthy of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
int
- property disrupted_pods
Gets the disrupted_pods of this V1PodDisruptionBudgetStatus. # noqa: E501
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. # noqa: E501
- Returns:
The disrupted_pods of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
dict(str, datetime)
- property disruptions_allowed
Gets the disruptions_allowed of this V1PodDisruptionBudgetStatus. # noqa: E501
Number of pod disruptions that are currently allowed. # noqa: E501
- Returns:
The disruptions_allowed of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
int
- property expected_pods
Gets the expected_pods of this V1PodDisruptionBudgetStatus. # noqa: E501
total number of pods counted by this disruption budget # noqa: E501
- Returns:
The expected_pods of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
int
- property observed_generation
Gets the observed_generation of this V1PodDisruptionBudgetStatus. # noqa: E501
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. # noqa: E501
- Returns:
The observed_generation of this V1PodDisruptionBudgetStatus. # noqa: E501
- Return type:
int
- openapi_types = {'conditions': 'list[V1Condition]', 'current_healthy': 'int', 'desired_healthy': 'int', 'disrupted_pods': 'dict(str, datetime)', 'disruptions_allowed': 'int', 'expected_pods': 'int', 'observed_generation': 'int'}
- to_dict(serialize=False)
Returns the model properties as a dict
- to_str()
Returns the string representation of the model