You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: machine/v1beta1/types_gcpprovider.go
+16Lines changed: 16 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,14 @@ const (
25
25
RestartPolicyNeverGCPRestartPolicyType="Never"
26
26
)
27
27
28
+
// GCPProvisioningModelType is a type representing acceptable values for ProvisioningModel field in GCPMachineProviderSpec
29
+
typeGCPProvisioningModelTypestring
30
+
31
+
const (
32
+
// GCPSpotInstance enables the GCP instances as spot instances which provide significant cost savings but may be preempted by Google Cloud Platform when resources are needed elsewhere.
33
+
GCPSpotInstanceGCPProvisioningModelType="Spot"
34
+
)
35
+
28
36
// SecureBootPolicy represents the secure boot configuration for the GCP machine.
29
37
typeSecureBootPolicystring
30
38
@@ -129,6 +137,14 @@ type GCPMachineProviderSpec struct {
129
137
// preemptible indicates if created instance is preemptible.
130
138
// +optional
131
139
Preemptiblebool`json:"preemptible,omitempty"`
140
+
// provisioningModel is an optional field that determines the provisioning model for the GCP machine instance.
141
+
// Valid values are "Spot".
142
+
// When set to Spot, the instance runs as a Google Cloud Spot instance which provides significant cost savings but may be preempted by Google Cloud Platform when resources are needed elsewhere.
143
+
// When omitted, the machine will be provisioned as a standard on-demand instance.
144
+
// This field cannot be used together with the preemptible field.
Copy file name to clipboardExpand all lines: openapi/openapi.json
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22911,6 +22911,10 @@
22911
22911
"description": "projectID is the project in which the GCP machine provider will create the VM.",
22912
22912
"type": "string"
22913
22913
},
22914
+
"provisioningModel": {
22915
+
"description": "provisioningModel is an optional field that determines the provisioning model for the GCP machine instance. Valid values are \"Spot\". When set to Spot, the instance runs as a Google Cloud Spot instance which provides significant cost savings but may be preempted by Google Cloud Platform when resources are needed elsewhere. When omitted, the machine will be provisioned as a standard on-demand instance. This field cannot be used together with the preemptible field.",
22916
+
"type": "string"
22917
+
},
22914
22918
"region": {
22915
22919
"description": "region is the region in which the GCP machine provider will create the VM.",
0 commit comments