Class ResourceSliceSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1beta1.ResourceSliceSpec
-
- All Implemented Interfaces:
Editable<ResourceSliceSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceSliceSpec extends Object implements Editable<ResourceSliceSpecBuilder>, KubernetesResource
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ResourceSliceSpec()No args constructor for use in serializationResourceSliceSpec(Boolean allNodes, List<Device> devices, String driver, String nodeName, NodeSelector nodeSelector, Boolean perDeviceNodeSelection, ResourcePool pool, List<CounterSet> sharedCounters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceSliceSpecBuilderedit()Map<String,Object>getAdditionalProperties()BooleangetAllNodes()AllNodes indicates that all nodes have access to the resources in the pool.List<Device>getDevices()Devices lists some or all of the devices in this pool.StringgetDriver()Driver identifies the DRA driver providing the capacity information.StringgetNodeName()NodeName identifies the node which provides the resources in this pool.NodeSelectorgetNodeSelector()ResourceSliceSpec contains the information published by the driver in one ResourceSlice.BooleangetPerDeviceNodeSelection()PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device.ResourcePoolgetPool()ResourceSliceSpec contains the information published by the driver in one ResourceSlice.List<CounterSet>getSharedCounters()SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAllNodes(Boolean allNodes)AllNodes indicates that all nodes have access to the resources in the pool.voidsetDevices(List<Device> devices)Devices lists some or all of the devices in this pool.voidsetDriver(String driver)Driver identifies the DRA driver providing the capacity information.voidsetNodeName(String nodeName)NodeName identifies the node which provides the resources in this pool.voidsetNodeSelector(NodeSelector nodeSelector)ResourceSliceSpec contains the information published by the driver in one ResourceSlice.voidsetPerDeviceNodeSelection(Boolean perDeviceNodeSelection)PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device.voidsetPool(ResourcePool pool)ResourceSliceSpec contains the information published by the driver in one ResourceSlice.voidsetSharedCounters(List<CounterSet> sharedCounters)SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.ResourceSliceSpecBuildertoBuilder()
-
-
-
Constructor Detail
-
ResourceSliceSpec
public ResourceSliceSpec()
No args constructor for use in serialization
-
ResourceSliceSpec
public ResourceSliceSpec(Boolean allNodes, List<Device> devices, String driver, String nodeName, NodeSelector nodeSelector, Boolean perDeviceNodeSelection, ResourcePool pool, List<CounterSet> sharedCounters)
-
-
Method Detail
-
getAllNodes
public Boolean getAllNodes()
AllNodes indicates that all nodes have access to the resources in the pool.Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
-
setAllNodes
public void setAllNodes(Boolean allNodes)
AllNodes indicates that all nodes have access to the resources in the pool.Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
-
getDevices
public List<Device> getDevices()
Devices lists some or all of the devices in this pool.Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
Only one of Devices and SharedCounters can be set in a ResourceSlice.
-
setDevices
public void setDevices(List<Device> devices)
Devices lists some or all of the devices in this pool.Must not have more than 128 entries. If any device uses taints or consumes counters the limit is 64.
Only one of Devices and SharedCounters can be set in a ResourceSlice.
-
getDriver
public String getDriver()
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable.
-
setDriver
public void setDriver(String driver)
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name.Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. It should use only lower case characters. This field is immutable.
-
getNodeName
public String getNodeName()
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
-
setNodeName
public void setNodeName(String nodeName)
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node.This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available.
Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable.
-
getNodeSelector
public NodeSelector getNodeSelector()
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
setNodeSelector
public void setNodeSelector(NodeSelector nodeSelector)
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
getPerDeviceNodeSelection
public Boolean getPerDeviceNodeSelection()
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
-
setPerDeviceNodeSelection
public void setPerDeviceNodeSelection(Boolean perDeviceNodeSelection)
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually.Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set.
-
getPool
public ResourcePool getPool()
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
setPool
public void setPool(ResourcePool pool)
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
getSharedCounters
public List<CounterSet> getSharedCounters()
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.The names of the counter sets must be unique in the ResourcePool.
Only one of Devices and SharedCounters can be set in a ResourceSlice.
The maximum number of counter sets is 8.
-
setSharedCounters
public void setSharedCounters(List<CounterSet> sharedCounters)
SharedCounters defines a list of counter sets, each of which has a name and a list of counters available.The names of the counter sets must be unique in the ResourcePool.
Only one of Devices and SharedCounters can be set in a ResourceSlice.
The maximum number of counter sets is 8.
-
edit
public ResourceSliceSpecBuilder edit()
- Specified by:
editin interfaceEditable<ResourceSliceSpecBuilder>
-
toBuilder
public ResourceSliceSpecBuilder toBuilder()
-
-