Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ type AzureProviderSpecBuilder struct {
vmSize string
zone string
subnet string
image machinev1beta1.Image
}

// Build builds a new Azure machine config based on the configuration provided.
Expand Down Expand Up @@ -120,3 +121,9 @@ func (m AzureProviderSpecBuilder) WithSubnet(subnet string) AzureProviderSpecBui
m.subnet = subnet
return m
}

// WithImage sets the image for the Azure machine config builder.
func (m AzureProviderSpecBuilder) WithImage(image machinev1beta1.Image) AzureProviderSpecBuilder {
m.image = image
return m
}