Class V1alpha3DeviceTaintSelector
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha3DeviceTaintSelector
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-05-22T21:20:49.874193Z[Etc/UTC]")
public class V1alpha3DeviceTaintSelector
extends Object
DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddSelectorsItem
(V1alpha3DeviceSelector selectorsItem) deviceClassName
(String deviceClassName) boolean
If device is set, only devices with that name are selected.If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected.If driver is set, only devices from that driver are selected.getPool()
If pool is set, only devices in that pool are selected.Selectors contains the same selection criteria as a ResourceClaim.int
hashCode()
selectors
(List<V1alpha3DeviceSelector> selectors) void
void
setDeviceClassName
(String deviceClassName) void
void
void
setSelectors
(List<V1alpha3DeviceSelector> selectors) toString()
-
Field Details
-
SERIALIZED_NAME_DEVICE
- See Also:
-
SERIALIZED_NAME_DEVICE_CLASS_NAME
- See Also:
-
SERIALIZED_NAME_DRIVER
- See Also:
-
SERIALIZED_NAME_POOL
- See Also:
-
SERIALIZED_NAME_SELECTORS
- See Also:
-
-
Constructor Details
-
V1alpha3DeviceTaintSelector
public V1alpha3DeviceTaintSelector()
-
-
Method Details
-
device
-
getDevice
If device is set, only devices with that name are selected. This field corresponds to slice.spec.devices[].name. Setting also driver and pool may be required to avoid ambiguity, but is not required.- Returns:
- device
-
setDevice
-
deviceClassName
-
getDeviceClassName
If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.- Returns:
- deviceClassName
-
setDeviceClassName
-
driver
-
getDriver
If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.- Returns:
- driver
-
setDriver
-
pool
-
getPool
If pool is set, only devices in that pool are selected. Also setting the driver name may be useful to avoid ambiguity when different drivers use the same pool name, but this is not required because selecting pools from different drivers may also be useful, for example when drivers with node-local devices use the node name as their pool name.- Returns:
- pool
-
setPool
-
selectors
-
addSelectorsItem
-
getSelectors
Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.- Returns:
- selectors
-
setSelectors
-
equals
-
hashCode
public int hashCode() -
toString
-