Skip to content

Commit

Permalink
fix: Change references of regionBySubnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Rdpaula authored and ltellesfl committed Aug 4, 2023
1 parent a00da26 commit 8e0dff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/controlplane/kopscontrolplane_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 8e0dff1

Please sign in to comment.