Class BasicDevice

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<BasicDeviceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class BasicDevice
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<BasicDeviceBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    BasicDevice defines one device instance.
    See Also:
    Serialized Form
    • Method Detail

      • getAllNodes

        public Boolean getAllNodes()
        AllNodes indicates that all nodes have access to the device.


        Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

      • setAllNodes

        public void setAllNodes​(Boolean allNodes)
        AllNodes indicates that all nodes have access to the device.


        Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

      • getAttributes

        public Map<String,​DeviceAttribute> getAttributes()
        Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.


        The maximum number of attributes and capacities combined is 32.

      • setAttributes

        public void setAttributes​(Map<String,​DeviceAttribute> attributes)
        Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set.


        The maximum number of attributes and capacities combined is 32.

      • getCapacity

        public Map<String,​io.fabric8.kubernetes.api.model.Quantity> getCapacity()
        Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.


        The maximum number of attributes and capacities combined is 32.

      • setCapacity

        public void setCapacity​(Map<String,​io.fabric8.kubernetes.api.model.Quantity> capacity)
        Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set.


        The maximum number of attributes and capacities combined is 32.

      • getConsumesCounters

        public List<DeviceCounterConsumption> getConsumesCounters()
        ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.


        There can only be a single entry per counterSet.


        The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).

      • setConsumesCounters

        public void setConsumesCounters​(List<DeviceCounterConsumption> consumesCounters)
        ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets.


        There can only be a single entry per counterSet.


        The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each).

      • getNodeName

        public String getNodeName()
        NodeName identifies the node where the device is available.


        Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

      • setNodeName

        public void setNodeName​(String nodeName)
        NodeName identifies the node where the device is available.


        Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set.

      • getNodeSelector

        public io.fabric8.kubernetes.api.model.NodeSelector getNodeSelector()
        BasicDevice defines one device instance.
      • setNodeSelector

        public void setNodeSelector​(io.fabric8.kubernetes.api.model.NodeSelector nodeSelector)
        BasicDevice defines one device instance.
      • getTaints

        public List<DeviceTaint> getTaints()
        If specified, these are the driver-defined taints.


        The maximum number of taints is 4.


        This is an alpha field and requires enabling the DRADeviceTaints feature gate.

      • setTaints

        public void setTaints​(List<DeviceTaint> taints)
        If specified, these are the driver-defined taints.


        The maximum number of taints is 4.


        This is an alpha field and requires enabling the DRADeviceTaints feature gate.

      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)