@@ -21,7 +21,6 @@ import (
2121 "k8s.io/apimachinery/pkg/runtime/schema"
2222
2323 capg "sigs.k8s.io/cluster-api-provider-gcp/api/v1beta1"
24- clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
2524)
2625
2726// Constants block.
@@ -50,11 +49,6 @@ type GCPMachinePoolSpec struct {
5049 // // +optional
5150 // AliasIPRanges []infrav1.AliasIPRange `json:"aliasIPRanges,omitempty"`
5251
53- // Not meaningful for MachinePool
54- // // ProviderID is the unique identifier as specified by the cloud provider.
55- // // +optional
56- // ProviderID *string `json:"providerID,omitempty"`
57-
5852 // ImageFamily is the full reference to a valid image family to be used for this machine.
5953 // +optional
6054 ImageFamily * string `json:"imageFamily,omitempty"`
@@ -184,45 +178,7 @@ type GCPMachinePoolStatus struct {
184178
185179 // Conditions defines current service state of the GCPMachinePool.
186180 // +optional
187- Conditions clusterv1.Conditions `json:"conditions,omitempty"`
188-
189- // FailureReason will be set in the event that there is a terminal problem
190- // reconciling the MachinePool and will contain a succinct value suitable
191- // for machine interpretation.
192- //
193- // This field should not be set for transitive errors that a controller
194- // faces that are expected to be fixed automatically over
195- // time (like service outages), but instead indicate that something is
196- // fundamentally wrong with the MachinePool's spec or the configuration of
197- // the controller, and that manual intervention is required. Examples
198- // of terminal errors would be invalid combinations of settings in the
199- // spec, values that are unsupported by the controller, or the
200- // responsible controller itself being critically misconfigured.
201- //
202- // Any transient errors that occur during the reconciliation of MachinePools
203- // can be added as events to the MachinePool object and/or logged in the
204- // controller's output.
205- // +optional
206- FailureReason * string `json:"failureReason,omitempty"`
207-
208- // FailureMessage will be set in the event that there is a terminal problem
209- // reconciling the MachinePool and will contain a more verbose string suitable
210- // for logging and human consumption.
211- //
212- // This field should not be set for transitive errors that a controller
213- // faces that are expected to be fixed automatically over
214- // time (like service outages), but instead indicate that something is
215- // fundamentally wrong with the MachinePool's spec or the configuration of
216- // the controller, and that manual intervention is required. Examples
217- // of terminal errors would be invalid combinations of settings in the
218- // spec, values that are unsupported by the controller, or the
219- // responsible controller itself being critically misconfigured.
220- //
221- // Any transient errors that occur during the reconciliation of MachinePools
222- // can be added as events to the MachinePool object and/or logged in the
223- // controller's output.
224- // +optional
225- FailureMessage * string `json:"failureMessage,omitempty"`
181+ Conditions []metav1.Condition `json:"conditions,omitempty"`
226182}
227183
228184// +kubebuilder:object:root=true
@@ -255,16 +211,6 @@ func init() {
255211 SchemeBuilder .Register (& GCPMachinePool {}, & GCPMachinePoolList {})
256212}
257213
258- // GetConditions returns the observations of the operational state of the GCPMachinePool resource.
259- func (r * GCPMachinePool ) GetConditions () clusterv1.Conditions {
260- return r .Status .Conditions
261- }
262-
263- // SetConditions sets the underlying service state of the GCPMachinePool to the predescribed clusterv1.Conditions.
264- func (r * GCPMachinePool ) SetConditions (conditions clusterv1.Conditions ) {
265- r .Status .Conditions = conditions
266- }
267-
268214// GetObjectKind will return the ObjectKind of an GCPMachinePool.
269215func (r * GCPMachinePool ) GetObjectKind () schema.ObjectKind {
270216 return & r .TypeMeta
0 commit comments