Class 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 Detail

      • ResourceSliceSpec

        public ResourceSliceSpec()
        No args constructor for use in serialization
    • Method Detail

      • getAllNodes

        public Boolean getAllNodes()
        AllNodes indicates that all nodes have access to the resources in the pool.


        Exactly one of NodeName, NodeSelector and AllNodes 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 and AllNodes 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 and AllNodes 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 and AllNodes 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.
      • 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.
      • getAdditionalProperties

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

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

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