File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
testutils/resourcebuilder/machine/v1beta1 Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ type VSphereProviderSpecBuilder struct {
42
42
failureDomainName string
43
43
infrastructure * configv1.Infrastructure
44
44
ippool bool
45
+ tags []string
45
46
}
46
47
47
48
// Build builds a new VSphere machine config based on the configuration provided.
@@ -122,6 +123,7 @@ func (v VSphereProviderSpecBuilder) Build() *machinev1beta1.VSphereMachineProvid
122
123
Network : machinev1beta1.NetworkSpec {
123
124
Devices : networkDevices ,
124
125
},
126
+ TagIDs : v .tags ,
125
127
Workspace : workspace ,
126
128
NumCPUs : 4 ,
127
129
Template : template ,
@@ -164,6 +166,12 @@ func (v VSphereProviderSpecBuilder) WithTemplate(template string) VSphereProvide
164
166
return v
165
167
}
166
168
169
+ // WithTags sets the tags for the VSphere machine config builder.
170
+ func (v VSphereProviderSpecBuilder ) WithTags (tags []string ) VSphereProviderSpecBuilder {
171
+ v .tags = tags
172
+ return v
173
+ }
174
+
167
175
// WithZone sets the zone for the VSphere machine config builder.
168
176
func (v VSphereProviderSpecBuilder ) WithZone (zone string ) VSphereProviderSpecBuilder {
169
177
v .failureDomainName = zone
You can’t perform that action at this time.
0 commit comments