kubernetes.aio.client.models.v1alpha2_pod_group_spec module¶
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: release-1.36 Generated by: https://openapi-generator.tech
- class kubernetes.aio.client.models.v1alpha2_pod_group_spec.V1alpha2PodGroupSpec(disruption_mode=None, pod_group_template_ref=None, priority=None, priority_class_name=None, resource_claims=None, scheduling_constraints=None, scheduling_policy=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 = {'disruption_mode': 'disruptionMode', 'pod_group_template_ref': 'podGroupTemplateRef', 'priority': 'priority', 'priority_class_name': 'priorityClassName', 'resource_claims': 'resourceClaims', 'scheduling_constraints': 'schedulingConstraints', 'scheduling_policy': 'schedulingPolicy'}¶
- property disruption_mode¶
Gets the disruption_mode of this V1alpha2PodGroupSpec. # noqa: E501
DisruptionMode defines the mode in which a given PodGroup can be disrupted. Controllers are expected to fill this field by copying it from a PodGroupTemplate. One of Pod, PodGroup. Defaults to Pod if unset. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. # noqa: E501
- Returns:
The disruption_mode of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
str
- openapi_types = {'disruption_mode': 'str', 'pod_group_template_ref': 'V1alpha2PodGroupTemplateReference', 'priority': 'int', 'priority_class_name': 'str', 'resource_claims': 'list[V1alpha2PodGroupResourceClaim]', 'scheduling_constraints': 'V1alpha2PodGroupSchedulingConstraints', 'scheduling_policy': 'V1alpha2PodGroupSchedulingPolicy'}¶
- property pod_group_template_ref¶
Gets the pod_group_template_ref of this V1alpha2PodGroupSpec. # noqa: E501
- Returns:
The pod_group_template_ref of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
- property priority¶
Gets the priority of this V1alpha2PodGroupSpec. # noqa: E501
Priority is the value of priority of this pod group. Various system components use this field to find the priority of the pod group. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. # noqa: E501
- Returns:
The priority of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
- property priority_class_name¶
Gets the priority_class_name of this V1alpha2PodGroupSpec. # noqa: E501
PriorityClassName defines the priority that should be considered when scheduling this pod group. Controllers are expected to fill this field by copying it from a PodGroupTemplate. Otherwise, it is validated and resolved similarly to the PriorityClassName on PodGroupTemplate (i.e. if no priority class is specified, admission control can set this to the global default priority class if it exists. Otherwise, the pod group’s priority will be zero). This field is immutable. This field is available only when the WorkloadAwarePreemption feature gate is enabled. # noqa: E501
- Returns:
The priority_class_name of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
str
- property resource_claims¶
Gets the resource_claims of this V1alpha2PodGroupSpec. # noqa: E501
ResourceClaims defines which ResourceClaims may be shared among Pods in the group. Pods consume the devices allocated to a PodGroup’s claim by defining a claim in its own Spec.ResourceClaims that matches the PodGroup’s claim exactly. The claim must have the same name and refer to the same ResourceClaim or ResourceClaimTemplate. This is an alpha-level field and requires that the DRAWorkloadResourceClaims feature gate is enabled. This field is immutable. # noqa: E501
- Returns:
The resource_claims of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
- property scheduling_constraints¶
Gets the scheduling_constraints of this V1alpha2PodGroupSpec. # noqa: E501
- Returns:
The scheduling_constraints of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
- property scheduling_policy¶
Gets the scheduling_policy of this V1alpha2PodGroupSpec. # noqa: E501
- Returns:
The scheduling_policy of this V1alpha2PodGroupSpec. # noqa: E501
- Return type:
- to_dict(serialize=False)¶
Returns the model properties as a dict
- to_str()¶
Returns the string representation of the model