Class DeviceTaintSelector
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.resource.v1alpha3.DeviceTaintSelector
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<DeviceTaintSelectorBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class DeviceTaintSelector extends Object implements io.fabric8.kubernetes.api.builder.Editable<DeviceTaintSelectorBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
DeviceTaintSelector defines which device(s) a DeviceTaintRule applies to. The empty selector matches all devices. Without a selector, no devices are matched.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DeviceTaintSelector()No args constructor for use in serializationDeviceTaintSelector(String device, String deviceClassName, String driver, String pool, List<DeviceSelector> selectors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeviceTaintSelectorBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDevice()If device is set, only devices with that name are selected.StringgetDeviceClassName()If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected.StringgetDriver()If driver is set, only devices from that driver are selected.StringgetPool()If pool is set, only devices in that pool are selected.List<DeviceSelector>getSelectors()Selectors contains the same selection criteria as a ResourceClaim.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDevice(String device)If device is set, only devices with that name are selected.voidsetDeviceClassName(String deviceClassName)If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected.voidsetDriver(String driver)If driver is set, only devices from that driver are selected.voidsetPool(String pool)If pool is set, only devices in that pool are selected.voidsetSelectors(List<DeviceSelector> selectors)Selectors contains the same selection criteria as a ResourceClaim.DeviceTaintSelectorBuildertoBuilder()
-
-
-
Method Detail
-
getDevice
public String 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.
-
setDevice
public void setDevice(String device)
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.
-
getDeviceClassName
public String 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.
-
setDeviceClassName
public void setDeviceClassName(String deviceClassName)
If DeviceClassName is set, the selectors defined there must be satisfied by a device to be selected. This field corresponds to class.metadata.name.
-
getDriver
public String getDriver()
If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.
-
setDriver
public void setDriver(String driver)
If driver is set, only devices from that driver are selected. This fields corresponds to slice.spec.driver.
-
getPool
public String 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.
-
setPool
public void setPool(String pool)
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.
-
getSelectors
public List<DeviceSelector> getSelectors()
Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.
-
setSelectors
public void setSelectors(List<DeviceSelector> selectors)
Selectors contains the same selection criteria as a ResourceClaim. Currently, CEL expressions are supported. All of these selectors must be satisfied.
-
edit
public DeviceTaintSelectorBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<DeviceTaintSelectorBuilder>
-
toBuilder
public DeviceTaintSelectorBuilder toBuilder()
-
-