Skip to content

Commit

Permalink
Merge pull request #1697 from rvanderp3/SPLAT-1281
Browse files Browse the repository at this point in the history
SPLAT-1385: introduce TagIDs field to vSphere providerSpec
  • Loading branch information
openshift-merge-bot[bot] committed Jan 15, 2024
2 parents 412e126 + 56958b4 commit 0793e91
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 0 deletions.
6 changes: 6 additions & 0 deletions machine/v1beta1/types_vsphereprovider.go
Expand Up @@ -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"`
// Snapshot is the name of the snapshot from which the VM was cloned
// +optional
Snapshot string `json:"snapshot"`
Expand Down
5 changes: 5 additions & 0 deletions machine/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions machine/v1beta1/zz_generated.swagger_doc_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 15 additions & 0 deletions openapi/generated_openapi/zz_generated.openapi.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions openapi/openapi.json
Expand Up @@ -22047,6 +22047,14 @@
"type": "string",
"default": ""
},
"tagIDs": {
"description": "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.",
"type": "array",
"items": {
"type": "string",
"default": ""
}
},
"template": {
"description": "Template is the name, inventory path, or instance UUID of the template used to clone new machines.",
"type": "string",
Expand Down

0 comments on commit 0793e91

Please sign in to comment.