Skip to content

Commit 7490aae

Browse files
committed
ran lint
1 parent 339cd89 commit 7490aae

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

api/core/v1beta2/machinepool_types.go

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -64,36 +64,35 @@ const (
6464
).
6565
*/
6666

67-
6867
// MachinePoolTemplateSpec describes the data needed to create
6968
// the machines in a MachinePool.
7069
type MachinePoolTemplateSpec struct {
7170
// metadata is the standard object's metadata.
7271
// Labels and annotations here are propagated to the pool's machines.
7372
// +optional
7473
ObjectMeta `json:"metadata,omitempty"`
75-
74+
7675
// infrastructureRef is a required reference to a custom resource
7776
// offered by an infrastructure provider.
7877
// The custom resource is applied to all machines in the pool.
7978
// +required
80-
InfrastructureRef corev1.ObjectReference `json:"infrastructureRef"`
79+
InfrastructureRef corev1.ObjectReference `json:"infrastructureRef,omitempty"`
8180

8281
// bootstrap is a reference to a local struct which encapsulates
8382
// fields to configure the Machine’s bootstrapping mechanism.
8483
// The configuration applies to all machines in the pool.
8584
// +required
86-
Bootstrap Bootstrap `json:"bootstrap,omitempty"`
85+
Bootstrap *Bootstrap `json:"bootstrap,omitempty"`
8786

8887
// version defines the desired Kubernetes version.
8988
// This field is meant to be optionally used by bootstrap providers.
9089
// The version is applied to all machines in the pool.
9190
// +optional
9291
// +kubebuilder:validation:MinLength=1
9392
// +kubebuilder:validation:MaxLength=256
94-
Version *string `json:"version,omitempty"`
93+
Version string `json:"version,omitempty"`
9594

96-
// readinessGates specifies additional conditions to include when evaluating Machine Ready condition
95+
// readinessGates specifies additional conditions to include when evaluating Machine Ready condition
9796
// for all machines in the pool.
9897
//
9998
// This field can be used e.g. by Cluster API control plane providers to extend the semantic of the
@@ -115,7 +114,7 @@ type MachinePoolTemplateSpec struct {
115114
// deletion contains configuration options for Machine deletion.
116115
// Configuration is applied to all machines in the pool.
117116
// +optional
118-
Deletion *MachineDeletionSpec `json:"deletion,omitempty"`
117+
Deletion MachineDeletionSpec `json:"deletion,omitzero,omitempty"`
119118
}
120119

121120
// MachinePoolSpec defines the desired state of MachinePool.

0 commit comments

Comments
 (0)