-
Notifications
You must be signed in to change notification settings - Fork 592
OSASINFRA-3179: openstack failureDomain: Add RootVolume type #1496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -340,6 +340,14 @@ type RootVolume struct { | |
| // +kubebuilder:validation:Pattern=`^[^ ]*$` | ||
| // +optional | ||
| AvailabilityZone string `json:"availabilityZone,omitempty"` | ||
|
|
||
| // volumeType specifies the type of the root volume that will be provisioned. | ||
| // If not specifified, the root volume will be created as the type in the machine template. | ||
| // The maximum length of a volume type name is 255 characters, as per the OpenStack limit. | ||
| // +kubebuilder:validation:MinLength=1 | ||
| // +kubebuilder:validation:MaxLength=255 | ||
| // +optional | ||
| VolumeType string `json:"volumeType,omitempty"` | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are there definitely no character limitations on this? Are there any examples of valid volume types we can include in the godoc to give the user an idea of a correct value?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There are no documented character limitations. Volume types are typically created by the OpenStack infrastructure administrators, and we are a tenant payload. This means that in practice, OpenShift administrators put here ready-made volume types that their OpenStack administrators make available to them. For instance, as an admin of my cloud I just did this: $ openstack volume type create '432,+?^%$_ ù\f ~`helluva name'
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| description | None |
| id | ab3c8647-1bca-4ab8-89dd-f1ce1453ec3e |
| is_public | True |
| name | 432,+?^%$_ ù\f ~`helluva name |
+-------------+--------------------------------------+
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, in that case I guess there's not a lot we can do |
||
| } | ||
|
|
||
| // ControlPlaneMachineSetStatus represents the status of the ControlPlaneMachineSet CRD. | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This corresponds exactly with our machinev1alpha1 API:
https://github.com/openshift/api/blob/master/machine/v1alpha1/types_openstack.go#L358