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
SPLAT-1385: introduce TagIDs field to vSphere providerSpec #1697
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 |
---|---|---|
|
@@ -51,6 +51,12 @@ type VSphereMachineProviderSpec struct { | |
// This parameter will be ignored if 'LinkedClone' CloneMode is set. | ||
// +optional | ||
DiskGiB int32 `json:"diskGiB,omitempty"` | ||
// tagIDs is an optional set of tags to add to an instance. Specified tagIDs | ||
// must use URN-notation instead of display names. A maximum of 10 tag IDs may be specified. | ||
// +kubebuilder:validation:Pattern:="^(urn):(vmomi):(InventoryServiceTag):([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}):([^:]+)$" | ||
// +kubebuilder:example=urn:vmomi:InventoryServiceTag:5736bf56-49f5-4667-b38c-b97e09dc9578:GLOBAL | ||
// +optional | ||
TagIDs []string `json:"tagIDs,omitempty"` | ||
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. Is there a limit to the number of tags that can be applied? 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 isn't a hard limit upstream but excessive tags could cause latency in machine reconciliation. We could impose an arbitrary maximum. 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 isn't a hard limit, but there is performance hit if we allow too many tags to be reconciled and attached. For now, setting a 10 tag limit. |
||
// Snapshot is the name of the snapshot from which the VM was cloned | ||
// +optional | ||
Snapshot string `json:"snapshot"` | ||
|
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.
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.
How is this handled in the upstream CAPV?
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 mirrors the CAPV API.