Skip to content

Commit 59a8b98

Browse files
committed
Fix typo for WithOwnedV1beta1Conditions to WithOwnedV1Beta1Conditions
1 parent 6eabd27 commit 59a8b98

File tree

21 files changed

+32
-32
lines changed

21 files changed

+32
-32
lines changed

bootstrap/kubeadm/internal/controllers/kubeadmconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ func (r *KubeadmConfigReconciler) Reconcile(ctx context.Context, req ctrl.Reques
255255
}
256256
// Patch ObservedGeneration only if the reconciliation completed successfully
257257
patchOpts := []patch.Option{
258-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
258+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
259259
clusterv1.ReadyV1Beta1Condition,
260260
bootstrapv1.DataSecretAvailableV1Beta1Condition,
261261
bootstrapv1.CertificatesAvailableV1Beta1Condition,

controlplane/kubeadm/internal/control_plane.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ func (c *ControlPlane) PatchMachines(ctx context.Context) error {
330330
for i := range c.Machines {
331331
machine := c.Machines[i]
332332
if helper, ok := c.machinesPatchHelpers[machine.Name]; ok {
333-
if err := helper.Patch(ctx, machine, patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
333+
if err := helper.Patch(ctx, machine, patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
334334
controlplanev1.MachineAPIServerPodHealthyV1Beta1Condition,
335335
controlplanev1.MachineControllerManagerPodHealthyV1Beta1Condition,
336336
controlplanev1.MachineSchedulerPodHealthyV1Beta1Condition,

controlplane/kubeadm/internal/controllers/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ func patchKubeadmControlPlane(ctx context.Context, patchHelper *patch.Helper, kc
327327
// Also, if requested, we are adding additional options like e.g. Patch ObservedGeneration when issuing the
328328
// patch at the end of the reconcile loop.
329329
options = append(options,
330-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
330+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
331331
controlplanev1.MachinesCreatedV1Beta1Condition,
332332
clusterv1.ReadyV1Beta1Condition,
333333
controlplanev1.MachinesSpecUpToDateV1Beta1Condition,

controlplane/kubeadm/internal/controllers/remediation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func (r *KubeadmControlPlaneReconciler) reconcileUnhealthyMachines(ctx context.C
7777
conditions.Delete(m, clusterv1.MachineOwnerRemediatedCondition)
7878
}
7979

80-
if err := patchHelper.Patch(ctx, m, patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
80+
if err := patchHelper.Patch(ctx, m, patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
8181
clusterv1.MachineOwnerRemediatedV1Beta1Condition,
8282
}}, patch.WithOwnedConditions{Conditions: []string{
8383
clusterv1.MachineOwnerRemediatedCondition,
@@ -156,7 +156,7 @@ func (r *KubeadmControlPlaneReconciler) reconcileUnhealthyMachines(ctx context.C
156156
defer func() {
157157
// Always attempt to Patch the Machine conditions after each reconcileUnhealthyMachines.
158158
if err := patchHelper.Patch(ctx, machineToBeRemediated,
159-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
159+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
160160
clusterv1.MachineOwnerRemediatedV1Beta1Condition,
161161
}},
162162
patch.WithOwnedConditions{Conditions: []string{

exp/internal/controllers/machinepool_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ func (r *MachinePoolReconciler) Reconcile(ctx context.Context, req ctrl.Request)
206206
// Always attempt to patch the object and status after each reconciliation.
207207
// Patch ObservedGeneration only if the reconciliation completed successfully
208208
patchOpts := []patch.Option{
209-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
209+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
210210
clusterv1.ReadyV1Beta1Condition,
211211
clusterv1.BootstrapReadyV1Beta1Condition,
212212
clusterv1.InfrastructureReadyV1Beta1Condition,

exp/runtime/internal/controllers/extensionconfig_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func patchExtensionConfig(ctx context.Context, client client.Client, original, m
179179
}
180180

181181
options = append(options,
182-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
182+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
183183
runtimev1.RuntimeExtensionDiscoveredV1Beta1Condition,
184184
}},
185185
patch.WithOwnedConditions{Conditions: []string{

internal/controllers/cluster/cluster_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ func patchCluster(ctx context.Context, patchHelper *patch.Helper, cluster *clust
270270
// Also, if requested, we are adding additional options like e.g. Patch ObservedGeneration when issuing the
271271
// patch at the end of the reconcile loop.
272272
options = append(options,
273-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
273+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
274274
clusterv1.ReadyV1Beta1Condition,
275275
clusterv1.ControlPlaneReadyV1Beta1Condition,
276276
clusterv1.InfrastructureReadyV1Beta1Condition,

internal/controllers/clusterclass/clusterclass_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ func (r *Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (retres ct
136136
updateStatus(ctx, s)
137137

138138
patchOpts := []patch.Option{
139-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
139+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
140140
clusterv1.ClusterClassRefVersionsUpToDateV1Beta1Condition,
141141
clusterv1.ClusterClassVariablesReconciledV1Beta1Condition,
142142
}},

internal/controllers/machine/machine_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func patchMachine(ctx context.Context, patchHelper *patch.Helper, machine *clust
311311
// Also, if requested, we are adding additional options like e.g. Patch ObservedGeneration when issuing the
312312
// patch at the end of the reconcile loop.
313313
options = append(options,
314-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
314+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
315315
clusterv1.ReadyV1Beta1Condition,
316316
clusterv1.BootstrapReadyV1Beta1Condition,
317317
clusterv1.InfrastructureReadyV1Beta1Condition,

internal/controllers/machinedeployment/machinedeployment_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func patchMachineDeployment(ctx context.Context, patchHelper *patch.Helper, md *
210210

211211
// Patch the object, ignoring conflicts on the conditions owned by this controller.
212212
options = append(options,
213-
patch.WithOwnedV1beta1Conditions{Conditions: []clusterv1.ConditionType{
213+
patch.WithOwnedV1Beta1Conditions{Conditions: []clusterv1.ConditionType{
214214
clusterv1.ReadyV1Beta1Condition,
215215
clusterv1.MachineDeploymentAvailableV1Beta1Condition,
216216
}},

0 commit comments

Comments
 (0)