Class RAIDConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.miscellaneous.metal3.v1alpha1.RAIDConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RAIDConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RAIDConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<RAIDConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RAIDConfig contains the configuration that are required to config RAID in Bare Metal server.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RAIDConfig()No args constructor for use in serializationRAIDConfig(List<HardwareRAIDVolume> hardwareRAIDVolumes, List<SoftwareRAIDVolume> softwareRAIDVolumes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RAIDConfigBuilderedit()Map<String,Object>getAdditionalProperties()List<HardwareRAIDVolume>getHardwareRAIDVolumes()The list of logical disks for hardware RAID, if rootDeviceHints isn't used, first volume is root volume.List<SoftwareRAIDVolume>getSoftwareRAIDVolumes()The list of logical disks for software RAID, if rootDeviceHints isn't used, first volume is root volume.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetHardwareRAIDVolumes(List<HardwareRAIDVolume> hardwareRAIDVolumes)The list of logical disks for hardware RAID, if rootDeviceHints isn't used, first volume is root volume.voidsetSoftwareRAIDVolumes(List<SoftwareRAIDVolume> softwareRAIDVolumes)The list of logical disks for software RAID, if rootDeviceHints isn't used, first volume is root volume.RAIDConfigBuildertoBuilder()
-
-
-
Constructor Detail
-
RAIDConfig
public RAIDConfig()
No args constructor for use in serialization
-
RAIDConfig
public RAIDConfig(List<HardwareRAIDVolume> hardwareRAIDVolumes, List<SoftwareRAIDVolume> softwareRAIDVolumes)
-
-
Method Detail
-
getHardwareRAIDVolumes
public List<HardwareRAIDVolume> getHardwareRAIDVolumes()
The list of logical disks for hardware RAID, if rootDeviceHints isn't used, first volume is root volume. You can set the value of this field to `[]` to clear all the hardware RAID configurations.
-
setHardwareRAIDVolumes
public void setHardwareRAIDVolumes(List<HardwareRAIDVolume> hardwareRAIDVolumes)
The list of logical disks for hardware RAID, if rootDeviceHints isn't used, first volume is root volume. You can set the value of this field to `[]` to clear all the hardware RAID configurations.
-
getSoftwareRAIDVolumes
public List<SoftwareRAIDVolume> getSoftwareRAIDVolumes()
The list of logical disks for software RAID, if rootDeviceHints isn't used, first volume is root volume. If HardwareRAIDVolumes is set this item will be invalid. The number of created Software RAID devices must be 1 or 2. If there is only one Software RAID device, it has to be a RAID-1. If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0. As the first RAID device will be the deployment device, enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure. Software RAID will always be deleted.
-
setSoftwareRAIDVolumes
public void setSoftwareRAIDVolumes(List<SoftwareRAIDVolume> softwareRAIDVolumes)
The list of logical disks for software RAID, if rootDeviceHints isn't used, first volume is root volume. If HardwareRAIDVolumes is set this item will be invalid. The number of created Software RAID devices must be 1 or 2. If there is only one Software RAID device, it has to be a RAID-1. If there are two, the first one has to be a RAID-1, while the RAID level for the second one can be 0, 1, or 1+0. As the first RAID device will be the deployment device, enforcing a RAID-1 reduces the risk of ending up with a non-booting host in case of a disk failure. Software RAID will always be deleted.
-
edit
public RAIDConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RAIDConfigBuilder>
-
toBuilder
public RAIDConfigBuilder toBuilder()
-
-