Class KubeResourceClassV1Alpha2.Builder

    • Method Detail

      • driverName

        @Stability(Stable)
        public KubeResourceClassV1Alpha2.Builder driverName​(String driverName)
        DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class.

        Resource drivers have a unique name in forward domain order (acme.example.com).

        Parameters:
        driverName - DriverName defines the name of the dynamic resource driver that is used for allocation of a ResourceClaim that uses this class. This parameter is required.
        Returns:
        this
      • metadata

        @Stability(Stable)
        public KubeResourceClassV1Alpha2.Builder metadata​(ObjectMeta metadata)
        Standard object metadata.

        Parameters:
        metadata - Standard object metadata. This parameter is required.
        Returns:
        this
      • parametersRef

        @Stability(Stable)
        public KubeResourceClassV1Alpha2.Builder parametersRef​(ResourceClassParametersReferenceV1Alpha2 parametersRef)
        ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class.

        A dynamic resource driver can distinguish between parameters stored here and and those stored in ResourceClaimSpec.

        Parameters:
        parametersRef - ParametersRef references an arbitrary separate object that may hold parameters that will be used by the driver when allocating a resource that uses this class. This parameter is required.
        Returns:
        this
      • suitableNodes

        @Stability(Stable)
        public KubeResourceClassV1Alpha2.Builder suitableNodes​(NodeSelector suitableNodes)
        Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet.

        Setting this field is optional. If null, all nodes are candidates.

        Parameters:
        suitableNodes - Only nodes matching the selector will be considered by the scheduler when trying to find a Node that fits a Pod when that Pod uses a ResourceClaim that has not been allocated yet. This parameter is required.
        Returns:
        this