Class RootVolume
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1.RootVolume
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<RootVolumeBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class RootVolume extends Object implements io.fabric8.kubernetes.api.builder.Editable<RootVolumeBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
RootVolume represents the volume metadata to boot from. The original RootVolume struct is defined in the v1alpha1 but it's not best practice to use it directly here so we define a new one that should stay in sync with the original one.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RootVolume()No args constructor for use in serializationRootVolume(String availabilityZone, String volumeType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RootVolumeBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAvailabilityZone()availabilityZone specifies the Cinder availability zone where the root volume will be created.StringgetVolumeType()volumeType specifies the type of the root volume that will be provisioned.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAvailabilityZone(String availabilityZone)availabilityZone specifies the Cinder availability zone where the root volume will be created.voidsetVolumeType(String volumeType)volumeType specifies the type of the root volume that will be provisioned.RootVolumeBuildertoBuilder()
-
-
-
Method Detail
-
getAvailabilityZone
public String getAvailabilityZone()
availabilityZone specifies the Cinder availability zone where the root volume will be created. If not specifified, the root volume will be created in the availability zone specified by the volume type in the cinder configuration. If the volume type (configured in the OpenStack cluster) does not specify an availability zone, the root volume will be created in the default availability zone specified in the cinder configuration. See https://docs.openstack.org/cinder/latest/admin/availability-zone-type.html for more details. If the OpenStack cluster is deployed with the cross_az_attach configuration option set to false, the root volume will have to be in the same availability zone as the VM (defined by OpenStackFailureDomain.AvailabilityZone). Availability zone names must NOT contain spaces otherwise it will lead to volume that belongs to this availability zone register failure, see kubernetes/cloud-provider-openstack#1379 for further information. The maximum length of availability zone name is 63 as per labels limits.
-
setAvailabilityZone
public void setAvailabilityZone(String availabilityZone)
availabilityZone specifies the Cinder availability zone where the root volume will be created. If not specifified, the root volume will be created in the availability zone specified by the volume type in the cinder configuration. If the volume type (configured in the OpenStack cluster) does not specify an availability zone, the root volume will be created in the default availability zone specified in the cinder configuration. See https://docs.openstack.org/cinder/latest/admin/availability-zone-type.html for more details. If the OpenStack cluster is deployed with the cross_az_attach configuration option set to false, the root volume will have to be in the same availability zone as the VM (defined by OpenStackFailureDomain.AvailabilityZone). Availability zone names must NOT contain spaces otherwise it will lead to volume that belongs to this availability zone register failure, see kubernetes/cloud-provider-openstack#1379 for further information. The maximum length of availability zone name is 63 as per labels limits.
-
getVolumeType
public String getVolumeType()
volumeType specifies the type of the root volume that will be provisioned. The maximum length of a volume type name is 255 characters, as per the OpenStack limit.
-
setVolumeType
public void setVolumeType(String volumeType)
volumeType specifies the type of the root volume that will be provisioned. The maximum length of a volume type name is 255 characters, as per the OpenStack limit.
-
edit
public RootVolumeBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<RootVolumeBuilder>
-
toBuilder
public RootVolumeBuilder toBuilder()
-
-