@@ -37,7 +37,6 @@ import (
37
37
clusterv1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1" //nolint:staticcheck
38
38
clusterv1 "sigs.k8s.io/cluster-api/api/core/v1beta2"
39
39
clusterv1util "sigs.k8s.io/cluster-api/util"
40
- "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/conditions"
41
40
v1beta1conditions "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/conditions" //nolint:staticcheck
42
41
v1beta2conditions "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/conditions/v1beta2"
43
42
v1beta1patch "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/patch"
@@ -99,6 +98,10 @@ func (r *IBMPowerVSImageReconciler) Reconcile(ctx context.Context, req ctrl.Requ
99
98
scopeParams .Zone = cluster .Spec .Zone
100
99
}
101
100
101
+ // if isPaused, requeue, err := paused.EnsurePausedCondition(ctx, r.Client, cluster, ibmPowerVSImage); err != nil || isPaused || requeue {
102
+ // return ctrl.Result{}, err
103
+ // }
104
+
102
105
// Create the scope
103
106
imageScope , err := scope .NewPowerVSImageScope (scopeParams )
104
107
if err != nil {
@@ -350,15 +353,15 @@ func patchIBMPowerVSImage(ctx context.Context, patchHelper *v1beta1patch.Helper,
350
353
}
351
354
352
355
// always update the readyCondition.
353
- conditions .SetSummary (ibmPowerVSImage ,
354
- conditions .WithConditions (
355
- infrav1 .ImageReadyCondition ,
356
+ v1beta1conditions .SetSummary (ibmPowerVSImage ,
357
+ v1beta1conditions .WithConditions (
358
+ infrav1 .InstanceReadyCondition ,
356
359
),
357
360
)
358
361
359
362
if err := v1beta2conditions .SetSummaryCondition (ibmPowerVSImage , ibmPowerVSImage , infrav1 .IBMPowerVSImageReadyV1Beta2Condition ,
360
363
v1beta2conditions.ForConditionTypes {
361
- infrav1 .IBMPowerVSImageReadyV1Beta2Condition ,
364
+ infrav1 .IBMPowerVSMachineInstanceReadyV1Beta2Condition ,
362
365
},
363
366
// Using a custom merge strategy to override reasons applied during merge.
364
367
v1beta2conditions.CustomMergeStrategy {
0 commit comments