Class NodeAllocatableResourceMapping
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1.NodeAllocatableResourceMapping
-
- All Implemented Interfaces:
Editable<NodeAllocatableResourceMappingBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class NodeAllocatableResourceMapping extends Object implements Editable<NodeAllocatableResourceMappingBuilder>, KubernetesResource
NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeAllocatableResourceMapping()No args constructor for use in serializationNodeAllocatableResourceMapping(Quantity allocationMultiplier, String capacityKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeAllocatableResourceMappingBuilderedit()Map<String,Object>getAdditionalProperties()QuantitygetAllocationMultiplier()NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.StringgetCapacityKey()CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllocationMultiplier(Quantity allocationMultiplier)NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.voidsetCapacityKey(String capacityKey)CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map.NodeAllocatableResourceMappingBuildertoBuilder()
-
-
-
Method Detail
-
getAllocationMultiplier
public Quantity getAllocationMultiplier()
NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.
-
setAllocationMultiplier
public void setAllocationMultiplier(Quantity allocationMultiplier)
NodeAllocatableResourceMapping defines the translation between the DRA device/capacity units requested to the corresponding quantity of the node allocatable resource.
-
getCapacityKey
public String getCapacityKey()
CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi", and this field is set to "dra.example.com/memory", then for a claim allocation that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should be omitted or set to "1".
-
setCapacityKey
public void setCapacityKey(String capacityKey)
CapacityKey references a capacity name defined as a key in the `spec.devices[*].capacity` map. When this field is set, the value associated with this key in the `status.allocation.devices.results[*].consumedCapacity` map (for a specific claim allocation) determines the base quantity for the node allocatable resource. If `allocationMultiplier` is also set, it is multiplied with the base quantity. For example, if `spec.devices[*].capacity` has an entry "dra.example.com/memory": "128Gi", and this field is set to "dra.example.com/memory", then for a claim allocation that consumes { "dra.example.com/memory": "4Gi" } the base quantity for the node allocatable resource mapping will be "4Gi", and `allocationMultiplier` should be omitted or set to "1".
-
edit
public NodeAllocatableResourceMappingBuilder edit()
- Specified by:
editin interfaceEditable<NodeAllocatableResourceMappingBuilder>
-
toBuilder
public NodeAllocatableResourceMappingBuilder toBuilder()
-
-