Skip to content

Commit

Permalink
Switch maxPrice to a number
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelSpeed committed Jun 23, 2020
1 parent 1040ee8 commit 9e423ff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/v1alpha3/azuremachine_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ type AzureMachineSpec struct {
type SpotVMOptions struct {
// MaxPrice defines the maximum price the user is willing to pay for Spot VM instances
// +optional
// +kubebuilder:validation:pattern="^[0-9]+(\.[0-9]+)?$"
// +kubebuilder:validation:Type=number
MaxPrice *string `json:"maxPrice,omitempty"`
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ spec:
maxPrice:
description: MaxPrice defines the maximum price the user is willing
to pay for Spot VM instances
type: string
type: number
type: object
sshPublicKey:
type: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ spec:
maxPrice:
description: MaxPrice defines the maximum price the user
is willing to pay for Spot VM instances
type: string
type: number
type: object
sshPublicKey:
type: string
Expand Down

0 comments on commit 9e423ff

Please sign in to comment.