diff --git a/controllers/controlplane/kopscontrolplane_controller.go b/controllers/controlplane/kopscontrolplane_controller.go index 09f5c1f..a0da490 100644 --- a/controllers/controlplane/kopscontrolplane_controller.go +++ b/controllers/controlplane/kopscontrolplane_controller.go @@ -763,7 +763,7 @@ func (r *KopsControlPlaneReconciler) reconcileKopsMachinePool(ctx context.Contex // GetASGByName returns the existing ASG or nothing if it doesn't exist. func GetASGByName(kopsMachinePool *infrastructurev1alpha1.KopsMachinePool, kopsControlPlane *controlplanev1alpha1.KopsControlPlane, creds *aws.Credentials) (*asgTypes.AutoScalingGroup, error) { ctx := context.TODO() - region, err := regionBySubnet(kopsControlPlane) + region, err := RegionBySubnet(kopsControlPlane) if err != nil { return nil, err } diff --git a/controllers/controlplane/kopscontrolplane_controller_test.go b/controllers/controlplane/kopscontrolplane_controller_test.go index ead36c7..1042508 100644 --- a/controllers/controlplane/kopscontrolplane_controller_test.go +++ b/controllers/controlplane/kopscontrolplane_controller_test.go @@ -1255,7 +1255,7 @@ func TestGetRegionBySubnet(t *testing.T) { for _, tc := range testCases { kcp := &controlplanev1alpha1.KopsControlPlane{} kcp.Spec.KopsClusterSpec.Subnets = tc.input - region, err := regionBySubnet(kcp) + region, err := RegionBySubnet(kcp) t.Run(tc.description, func(t *testing.T) { if tc.expectedError {