Skip to content

Commit 7df1c6a

Browse files
committed
review fixes
1 parent b6333ab commit 7df1c6a

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ linters-settings:
8686
limitations under the License.
8787
importas:
8888
alias:
89-
- pkg: "sigs.k8s.io/cluster-api/api/v1beta1"
89+
- pkg: "sigs.k8s.io/cluster-api/api/core/v1beta1"
9090
alias: clusterv1beta1
9191
- pkg: "sigs.k8s.io/cluster-api/util/conditions"
9292
#pkg: "sigs.k8s.io/cluster-api/util/deprecated/v1beta1/conditions"

pkg/controllers/machinesync/machine_sync_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ func (r *MachineSyncReconciler) fetchCAPIInfraMachine(ctx context.Context, name,
10591059
}
10601060

10611061
// doesCAPIInfraMachineExist checks if the Cluster API Infrastructure Machine exists. It uses the infrastructureRef of the Cluster API Machine with fallback to the name of the MAPI Machine.
1062-
func (r *MachineSyncReconciler) doesCAPIInfraMachineExist(ctx context.Context, capiMachine *clusterv1.Machine, mapiMachine *mapiv1beta1.Machine) (bool, error) {
1062+
func (r *MachineSyncReconciler) doesCAPIInfraMachineExist(ctx context.Context, capiMachine *clusterv1beta1.Machine, mapiMachine *mapiv1beta1.Machine) (bool, error) {
10631063
namespace := r.CAPINamespace
10641064
name := mapiMachine.Name
10651065

pkg/controllers/machinesync/machine_sync_controller_unit_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ import (
2323
corev1 "k8s.io/api/core/v1"
2424
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2525
awsv1 "sigs.k8s.io/cluster-api-provider-aws/v2/api/v1beta2"
26-
clusterv1 "sigs.k8s.io/cluster-api/api/v1beta1"
26+
clusterv1beta1 "sigs.k8s.io/cluster-api/api/core/v1beta1"
2727
"sigs.k8s.io/controller-runtime/pkg/client"
2828
"sigs.k8s.io/controller-runtime/pkg/client/fake"
2929
)
3030

3131
// Unit tests for fetchCAPIInfraResources because reconciling deletion depends on it.
3232
var _ = Describe("Unit tests for fetchCAPIInfraResources", func() {
3333
var reconciler *MachineSyncReconciler
34-
var capiMachine *clusterv1.Machine
34+
var capiMachine *clusterv1beta1.Machine
3535

3636
BeforeEach(func() {
37-
capiMachine = &clusterv1.Machine{
37+
capiMachine = &clusterv1beta1.Machine{
3838
ObjectMeta: metav1.ObjectMeta{
3939
Name: "test-machine",
4040
Namespace: "test-namespace",
4141
},
42-
Spec: clusterv1.MachineSpec{
42+
Spec: clusterv1beta1.MachineSpec{
4343
ClusterName: "test-cluster",
4444
InfrastructureRef: corev1.ObjectReference{
4545
Kind: "AWSMachine",

0 commit comments

Comments
 (0)