Class ResourceSliceSpec

    • 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.

      • getAdditionalProperties

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

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

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