diff --git a/api/v1alpha3/azuremachine_types.go b/api/v1alpha3/azuremachine_types.go index e9791b452ea..c00032da574 100644 --- a/api/v1alpha3/azuremachine_types.go +++ b/api/v1alpha3/azuremachine_types.go @@ -82,7 +82,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"` } diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml index 7b761a3ee6c..093f72afa75 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachines.yaml @@ -388,7 +388,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 diff --git a/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml b/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml index d7b485d544f..5abb4df45b7 100644 --- a/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml +++ b/config/crd/bases/infrastructure.cluster.x-k8s.io_azuremachinetemplates.yaml @@ -331,7 +331,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