Class ResourceSliceSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1.ResourceSliceSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ResourceSliceSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ResourceSliceSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<ResourceSliceSpecBuilder>, io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.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.io.fabric8.kubernetes.api.model.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(io.fabric8.kubernetes.api.model.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, io.fabric8.kubernetes.api.model.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.
-
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.
-
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. 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. 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 io.fabric8.kubernetes.api.model.NodeSelector getNodeSelector()
ResourceSliceSpec contains the information published by the driver in one ResourceSlice.
-
setNodeSelector
public void setNodeSelector(io.fabric8.kubernetes.api.model.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 SharedCounters must be unique in the ResourceSlice.
The maximum number of counters in all sets is 32.
-
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 SharedCounters must be unique in the ResourceSlice.
The maximum number of counters in all sets is 32.
-
edit
public ResourceSliceSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ResourceSliceSpecBuilder>
-
toBuilder
public ResourceSliceSpecBuilder toBuilder()
-
-