Skip to content

Commit 37c50fd

Browse files
committed
Bump Go toolchain to v1.24.2
1 parent 38c1db6 commit 37c50fd

File tree

112 files changed

+315
-401
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+315
-401
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
ARG ARCH
1919

2020
# Build the manager binary
21-
FROM golang:1.23 AS builder
21+
FROM golang:1.24 AS builder
2222
WORKDIR /workspace
2323

2424
# Run this with docker build --build_arg $(go env GOPROXY) to override the goproxy

Tiltfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def validate_auth():
173173

174174
tilt_helper_dockerfile_header = """
175175
# Tilt image
176-
FROM golang:1.23 AS tilt-helper
176+
FROM golang:1.24 AS tilt-helper
177177
# Support live reloading with Tilt
178178
RUN wget --output-document /restart.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/restart.sh && \
179179
wget --output-document /start.sh --quiet https://raw.githubusercontent.com/windmilleng/rerun-process-wrapper/master/start.sh && \

api/v1beta1/azurecluster_webhook_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
. "github.com/onsi/gomega"
@@ -109,7 +108,7 @@ func TestAzureCluster_ValidateCreate(t *testing.T) {
109108
for _, tc := range tests {
110109
t.Run(tc.name, func(t *testing.T) {
111110
g := NewWithT(t)
112-
_, err := (&AzureClusterWebhook{}).ValidateCreate(context.Background(), tc.cluster)
111+
_, err := (&AzureClusterWebhook{}).ValidateCreate(t.Context(), tc.cluster)
113112
if tc.wantErr {
114113
g.Expect(err).To(HaveOccurred())
115114
} else {
@@ -345,7 +344,7 @@ func TestAzureCluster_ValidateUpdate(t *testing.T) {
345344
t.Run(tc.name, func(t *testing.T) {
346345
t.Parallel()
347346
g := NewWithT(t)
348-
_, err := (&AzureClusterWebhook{}).ValidateUpdate(context.Background(), tc.oldCluster, tc.cluster)
347+
_, err := (&AzureClusterWebhook{}).ValidateUpdate(t.Context(), tc.oldCluster, tc.cluster)
349348
if tc.wantErr {
350349
g.Expect(err).To(HaveOccurred())
351350
} else {

api/v1beta1/azureclusteridentity_webhook_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
. "github.com/onsi/gomega"
@@ -84,7 +83,7 @@ func TestAzureClusterIdentity_ValidateCreate(t *testing.T) {
8483
for _, tc := range tests {
8584
t.Run(tc.name, func(t *testing.T) {
8685
g := NewWithT(t)
87-
_, err := (&azureClusterIdentityWebhook{}).ValidateCreate(context.Background(), tc.clusterIdentity)
86+
_, err := (&azureClusterIdentityWebhook{}).ValidateCreate(t.Context(), tc.clusterIdentity)
8887
if tc.wantErr {
8988
g.Expect(err).To(HaveOccurred())
9089
} else {
@@ -164,7 +163,7 @@ func TestAzureClusterIdentity_ValidateUpdate(t *testing.T) {
164163
for _, tc := range tests {
165164
t.Run(tc.name, func(t *testing.T) {
166165
g := NewWithT(t)
167-
_, err := (&azureClusterIdentityWebhook{}).ValidateUpdate(context.Background(), tc.oldClusterIdentity, tc.clusterIdentity)
166+
_, err := (&azureClusterIdentityWebhook{}).ValidateUpdate(t.Context(), tc.oldClusterIdentity, tc.clusterIdentity)
168167
if tc.wantErr {
169168
g.Expect(err).To(HaveOccurred())
170169
} else {

api/v1beta1/azureclustertemplate_webhook_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
. "github.com/onsi/gomega"
@@ -58,7 +57,7 @@ func TestValidateUpdate(t *testing.T) {
5857

5958
t.Run("template is immutable", func(t *testing.T) {
6059
g := NewWithT(t)
61-
_, err := (&azureClusterTemplateWebhook{}).ValidateUpdate(context.Background(), oldClusterTemplate, newClusterTemplate)
60+
_, err := (&azureClusterTemplateWebhook{}).ValidateUpdate(t.Context(), oldClusterTemplate, newClusterTemplate)
6261
g.Expect(err).To(HaveOccurred())
6362
})
6463
}

api/v1beta1/azuremachine_webhook_test.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ func TestAzureMachine_ValidateCreate(t *testing.T) {
253253
t.Run(tc.name, func(t *testing.T) {
254254
g := NewWithT(t)
255255
mw := &azureMachineWebhook{}
256-
_, err := mw.ValidateCreate(context.Background(), tc.machine)
256+
_, err := mw.ValidateCreate(t.Context(), tc.machine)
257257
if tc.wantErr {
258258
g.Expect(err).To(HaveOccurred())
259259
} else {
@@ -928,7 +928,7 @@ func TestAzureMachine_ValidateUpdate(t *testing.T) {
928928
t.Run(tc.name, func(t *testing.T) {
929929
g := NewWithT(t)
930930
mw := &azureMachineWebhook{}
931-
_, err := mw.ValidateUpdate(context.Background(), tc.oldMachine, tc.newMachine)
931+
_, err := mw.ValidateUpdate(t.Context(), tc.oldMachine, tc.newMachine)
932932
if tc.wantErr {
933933
g.Expect(err).To(HaveOccurred())
934934
} else {
@@ -980,17 +980,17 @@ func TestAzureMachine_Default(t *testing.T) {
980980
Client: mockClient,
981981
}
982982

983-
err := mw.Default(context.Background(), publicKeyExistTest.machine)
983+
err := mw.Default(t.Context(), publicKeyExistTest.machine)
984984
g.Expect(err).NotTo(HaveOccurred())
985985
g.Expect(publicKeyExistTest.machine.Spec.SSHPublicKey).To(Equal(existingPublicKey))
986986

987-
err = mw.Default(context.Background(), publicKeyNotExistTest.machine)
987+
err = mw.Default(t.Context(), publicKeyNotExistTest.machine)
988988
g.Expect(err).NotTo(HaveOccurred())
989989
g.Expect(publicKeyNotExistTest.machine.Spec.SSHPublicKey).To(Not(BeEmpty()))
990990

991991
for _, possibleCachingType := range armcompute.PossibleCachingTypesValues() {
992992
cacheTypeSpecifiedTest := test{machine: &AzureMachine{ObjectMeta: testObjectMeta, Spec: AzureMachineSpec{OSDisk: OSDisk{CachingType: string(possibleCachingType)}}}}
993-
err = mw.Default(context.Background(), cacheTypeSpecifiedTest.machine)
993+
err = mw.Default(t.Context(), cacheTypeSpecifiedTest.machine)
994994
g.Expect(err).NotTo(HaveOccurred())
995995
g.Expect(cacheTypeSpecifiedTest.machine.Spec.OSDisk.CachingType).To(Equal(string(possibleCachingType)))
996996
}

api/v1beta1/azuremachinetemplate_webhook_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
"github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/compute/armcompute/v5"
@@ -248,7 +247,7 @@ func TestAzureMachineTemplate_ValidateCreate(t *testing.T) {
248247
t.Run(test.name, func(t *testing.T) {
249248
t.Parallel()
250249
g := NewWithT(t)
251-
ctx := context.Background()
250+
ctx := t.Context()
252251
_, err := (&azureMachineTemplateWebhook{}).ValidateCreate(ctx, test.machineTemplate)
253252
if test.wantErr {
254253
g.Expect(err).To(HaveOccurred())
@@ -547,7 +546,7 @@ func TestAzureMachineTemplate_ValidateUpdate(t *testing.T) {
547546
for _, amt := range tests {
548547
t.Run(amt.name, func(t *testing.T) {
549548
g := NewWithT(t)
550-
ctx := admission.NewContextWithRequest(context.Background(), admission.Request{AdmissionRequest: admissionv1.AdmissionRequest{DryRun: ptr.To(true)}})
549+
ctx := admission.NewContextWithRequest(t.Context(), admission.Request{AdmissionRequest: admissionv1.AdmissionRequest{DryRun: ptr.To(true)}})
551550
_, err := (&azureMachineTemplateWebhook{}).ValidateUpdate(ctx, amt.oldTemplate, amt.template)
552551
if amt.wantErr {
553552
g.Expect(err).To(HaveOccurred())
@@ -561,7 +560,7 @@ func TestAzureMachineTemplate_ValidateUpdate(t *testing.T) {
561560
t.Run(amt.name, func(t *testing.T) {
562561
t.Parallel()
563562
g := NewWithT(t)
564-
ctx := admission.NewContextWithRequest(context.Background(), admission.Request{AdmissionRequest: admissionv1.AdmissionRequest{DryRun: ptr.To(false)}})
563+
ctx := admission.NewContextWithRequest(t.Context(), admission.Request{AdmissionRequest: admissionv1.AdmissionRequest{DryRun: ptr.To(false)}})
565564
_, err := (&azureMachineTemplateWebhook{}).ValidateUpdate(ctx, amt.oldTemplate, amt.template)
566565
if amt.wantErr {
567566
g.Expect(err).To(HaveOccurred())

api/v1beta1/azuremanagedcluster_webhook_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
. "github.com/onsi/gomega"
@@ -82,7 +81,7 @@ func TestAzureManagedCluster_ValidateUpdate(t *testing.T) {
8281
for _, tc := range tests {
8382
t.Run(tc.name, func(t *testing.T) {
8483
g := NewWithT(t)
85-
_, err := (&azureManagedClusterWebhook{}).ValidateUpdate(context.Background(), tc.oldAMC, tc.amc)
84+
_, err := (&azureManagedClusterWebhook{}).ValidateUpdate(t.Context(), tc.oldAMC, tc.amc)
8685
if tc.wantErr {
8786
g.Expect(err).To(HaveOccurred())
8887
} else {
@@ -125,7 +124,7 @@ func TestAzureManagedCluster_ValidateCreate(t *testing.T) {
125124
for _, tc := range tests {
126125
t.Run(tc.name, func(t *testing.T) {
127126
g := NewWithT(t)
128-
_, err := (&azureManagedClusterWebhook{}).ValidateCreate(context.Background(), tc.amc)
127+
_, err := (&azureManagedClusterWebhook{}).ValidateCreate(t.Context(), tc.amc)
129128
if tc.wantErr {
130129
g.Expect(err).To(HaveOccurred())
131130
} else {
@@ -155,7 +154,7 @@ func TestAzureManagedCluster_ValidateCreateFailure(t *testing.T) {
155154
utilfeature.SetFeatureGateDuringTest(t, feature.Gates, capifeature.MachinePool, *tc.featureGateEnabled)
156155
}
157156
g := NewWithT(t)
158-
_, err := (&azureManagedClusterWebhook{}).ValidateCreate(context.Background(), tc.amc)
157+
_, err := (&azureManagedClusterWebhook{}).ValidateCreate(t.Context(), tc.amc)
159158
if tc.expectError {
160159
g.Expect(err).To(HaveOccurred())
161160
} else {

api/v1beta1/azuremanagedcontrolplane_webhook_test.go

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
. "github.com/onsi/gomega"
@@ -61,7 +60,7 @@ func TestDefaultingWebhook(t *testing.T) {
6160
},
6261
}
6362
mcpw := &azureManagedControlPlaneWebhook{}
64-
err := mcpw.Default(context.Background(), amcp)
63+
err := mcpw.Default(t.Context(), amcp)
6564
g.Expect(err).NotTo(HaveOccurred())
6665
g.Expect(amcp.Spec.ResourceGroupName).To(Equal("fooCluster"))
6766
g.Expect(amcp.Spec.Version).To(Equal("v1.17.5"))
@@ -104,7 +103,7 @@ func TestDefaultingWebhook(t *testing.T) {
104103
}
105104
amcp.Spec.EnablePreviewFeatures = ptr.To(true)
106105

107-
err = mcpw.Default(context.Background(), amcp)
106+
err = mcpw.Default(t.Context(), amcp)
108107
g.Expect(err).NotTo(HaveOccurred())
109108
g.Expect(*amcp.Spec.NetworkPlugin).To(Equal(netPlug))
110109
g.Expect(*amcp.Spec.NetworkPolicy).To(Equal(netPol))
@@ -160,7 +159,7 @@ func TestDefaultingWebhook(t *testing.T) {
160159
SSHPublicKey: ptr.To(""),
161160
},
162161
}
163-
err = mcpw.Default(context.Background(), amcp)
162+
err = mcpw.Default(t.Context(), amcp)
164163
g.Expect(err).NotTo(HaveOccurred())
165164
g.Expect(amcp.Spec.VirtualNetwork.CIDRBlock).To(Equal(defaultAKSVnetCIDRForOverlay))
166165
g.Expect(amcp.Spec.VirtualNetwork.Subnet.CIDRBlock).To(Equal(defaultAKSNodeSubnetCIDRForOverlay))
@@ -1387,7 +1386,7 @@ func TestValidatingWebhook(t *testing.T) {
13871386
mcpw := &azureManagedControlPlaneWebhook{
13881387
Client: client,
13891388
}
1390-
_, err := mcpw.ValidateCreate(context.Background(), &tt.amcp)
1389+
_, err := mcpw.ValidateCreate(t.Context(), &tt.amcp)
13911390
if tt.expectErr {
13921391
g.Expect(err).To(HaveOccurred())
13931392
} else {
@@ -1637,7 +1636,7 @@ func TestAzureManagedControlPlane_ValidateCreate(t *testing.T) {
16371636
mcpw := &azureManagedControlPlaneWebhook{
16381637
Client: client,
16391638
}
1640-
_, err := mcpw.ValidateCreate(context.Background(), tc.amcp)
1639+
_, err := mcpw.ValidateCreate(t.Context(), tc.amcp)
16411640
if tc.wantErr {
16421641
g.Expect(err).To(HaveOccurred())
16431642
if tc.errorLen > 0 {
@@ -1674,7 +1673,7 @@ func TestAzureManagedControlPlane_ValidateCreateFailure(t *testing.T) {
16741673
mcpw := &azureManagedControlPlaneWebhook{
16751674
Client: client,
16761675
}
1677-
_, err := mcpw.ValidateCreate(context.Background(), tc.amcp)
1676+
_, err := mcpw.ValidateCreate(t.Context(), tc.amcp)
16781677
if tc.expectError {
16791678
g.Expect(err).To(HaveOccurred())
16801679
} else {
@@ -3184,7 +3183,7 @@ func TestAzureManagedControlPlane_ValidateUpdate(t *testing.T) {
31843183
mcpw := &azureManagedControlPlaneWebhook{
31853184
Client: client,
31863185
}
3187-
_, err := mcpw.ValidateUpdate(context.Background(), tc.oldAMCP, tc.amcp)
3186+
_, err := mcpw.ValidateUpdate(t.Context(), tc.oldAMCP, tc.amcp)
31883187
if tc.wantErr {
31893188
g.Expect(err).To(HaveOccurred())
31903189
} else {
@@ -3365,7 +3364,7 @@ func TestAzureManagedClusterSecurityProfileValidateCreate(t *testing.T) {
33653364
mcpw := &azureManagedControlPlaneWebhook{
33663365
Client: client,
33673366
}
3368-
_, err := mcpw.ValidateCreate(context.Background(), tc.amcp)
3367+
_, err := mcpw.ValidateCreate(t.Context(), tc.amcp)
33693368
if tc.wantErr != "" {
33703369
g.Expect(err).To(HaveOccurred())
33713370
g.Expect(err.Error()).To(Equal(tc.wantErr))
@@ -3866,7 +3865,7 @@ func TestAzureClusterSecurityProfileValidateUpdate(t *testing.T) {
38663865
mcpw := &azureManagedControlPlaneWebhook{
38673866
Client: client,
38683867
}
3869-
_, err := mcpw.ValidateUpdate(context.Background(), tc.oldAMCP, tc.amcp)
3868+
_, err := mcpw.ValidateUpdate(t.Context(), tc.oldAMCP, tc.amcp)
38703869
if tc.wantErr != "" {
38713870
g.Expect(err).To(HaveOccurred())
38723871
g.Expect(err.Error()).To(Equal(tc.wantErr))
@@ -4154,7 +4153,7 @@ func TestValidateAMCPVirtualNetwork(t *testing.T) {
41544153
t.Run(tc.name, func(t *testing.T) {
41554154
g := NewWithT(t)
41564155
mcpw := &azureManagedControlPlaneWebhook{}
4157-
err := mcpw.Default(context.Background(), tc.amcp)
4156+
err := mcpw.Default(t.Context(), tc.amcp)
41584157
g.Expect(err).NotTo(HaveOccurred())
41594158

41604159
errs := validateAMCPVirtualNetwork(tc.amcp.Spec.VirtualNetwork, field.NewPath("spec", "virtualNetwork"))

api/v1beta1/azuremanagedcontrolplanetemplate_webhook_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
. "github.com/onsi/gomega"
@@ -31,7 +30,7 @@ func TestControlPlaneTemplateDefaultingWebhook(t *testing.T) {
3130
t.Logf("Testing amcp defaulting webhook with no baseline")
3231
amcpt := getAzureManagedControlPlaneTemplate()
3332
mcptw := &azureManagedControlPlaneTemplateWebhook{}
34-
err := mcptw.Default(context.Background(), amcpt)
33+
err := mcptw.Default(t.Context(), amcpt)
3534
g.Expect(err).NotTo(HaveOccurred())
3635
g.Expect(*amcpt.Spec.Template.Spec.NetworkPlugin).To(Equal("azure"))
3736
g.Expect(*amcpt.Spec.Template.Spec.LoadBalancerSKU).To(Equal("Standard"))
@@ -54,7 +53,7 @@ func TestControlPlaneTemplateDefaultingWebhook(t *testing.T) {
5453
amcpt.Spec.Template.Spec.SKU.Tier = PaidManagedControlPlaneTier
5554
amcpt.Spec.Template.Spec.EnablePreviewFeatures = ptr.To(true)
5655

57-
err = mcptw.Default(context.Background(), amcpt)
56+
err = mcptw.Default(t.Context(), amcpt)
5857
g.Expect(err).NotTo(HaveOccurred())
5958
g.Expect(*amcpt.Spec.Template.Spec.NetworkPlugin).To(Equal(netPlug))
6059
g.Expect(*amcpt.Spec.Template.Spec.LoadBalancerSKU).To(Equal(lbSKU))
@@ -274,7 +273,7 @@ func TestControlPlaneTemplateUpdateWebhook(t *testing.T) {
274273
t.Run(tc.name, func(t *testing.T) {
275274
g := NewWithT(t)
276275
cpw := &azureManagedControlPlaneTemplateWebhook{}
277-
_, err := cpw.ValidateUpdate(context.Background(), tc.oldControlPlaneTemplate, tc.controlPlaneTemplate)
276+
_, err := cpw.ValidateUpdate(t.Context(), tc.oldControlPlaneTemplate, tc.controlPlaneTemplate)
278277
if tc.wantErr {
279278
g.Expect(err).To(HaveOccurred())
280279
} else {

api/v1beta1/azuremanagedmachinepool_webhook_test.go

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ limitations under the License.
1717
package v1beta1
1818

1919
import (
20-
"context"
2120
"testing"
2221

2322
asocontainerservicev1 "github.com/Azure/azure-service-operator/v2/api/containerservice/v1api20231001"
@@ -55,7 +54,7 @@ func TestAzureManagedMachinePoolDefaultingWebhook(t *testing.T) {
5554
mw := &azureManagedMachinePoolWebhook{
5655
Client: client,
5756
}
58-
err := mw.Default(context.Background(), ammp)
57+
err := mw.Default(t.Context(), ammp)
5958
g.Expect(err).NotTo(HaveOccurred())
6059
g.Expect(ammp.Labels).NotTo(BeNil())
6160
val, ok := ammp.Labels[LabelAgentPoolMode]
@@ -66,21 +65,21 @@ func TestAzureManagedMachinePoolDefaultingWebhook(t *testing.T) {
6665
t.Logf("Testing ammp defaulting webhook with empty string name specified in Spec")
6766
emptyName := ""
6867
ammp.Spec.Name = &emptyName
69-
err = mw.Default(context.Background(), ammp)
68+
err = mw.Default(t.Context(), ammp)
7069
g.Expect(err).NotTo(HaveOccurred())
7170
g.Expect(*ammp.Spec.Name).To(Equal("fooname"))
7271

7372
t.Logf("Testing ammp defaulting webhook with normal name specified in Spec")
7473
normalName := "barname"
7574
ammp.Spec.Name = &normalName
76-
err = mw.Default(context.Background(), ammp)
75+
err = mw.Default(t.Context(), ammp)
7776
g.Expect(err).NotTo(HaveOccurred())
7877
g.Expect(*ammp.Spec.Name).To(Equal("barname"))
7978

8079
t.Logf("Testing ammp defaulting webhook with normal OsDiskType specified in Spec")
8180
normalOsDiskType := "Ephemeral"
8281
ammp.Spec.OsDiskType = &normalOsDiskType
83-
err = mw.Default(context.Background(), ammp)
82+
err = mw.Default(t.Context(), ammp)
8483
g.Expect(err).NotTo(HaveOccurred())
8584
g.Expect(*ammp.Spec.OsDiskType).To(Equal("Ephemeral"))
8685
}
@@ -642,7 +641,7 @@ func TestAzureManagedMachinePoolUpdatingWebhook(t *testing.T) {
642641
mw := &azureManagedMachinePoolWebhook{
643642
Client: client,
644643
}
645-
_, err := mw.ValidateUpdate(context.Background(), tc.old, tc.new)
644+
_, err := mw.ValidateUpdate(t.Context(), tc.old, tc.new)
646645
if tc.wantErr {
647646
g.Expect(err).To(HaveOccurred())
648647
} else {
@@ -1293,7 +1292,7 @@ func TestAzureManagedMachinePool_ValidateCreate(t *testing.T) {
12931292
mw := &azureManagedMachinePoolWebhook{
12941293
Client: client,
12951294
}
1296-
_, err := mw.ValidateCreate(context.Background(), tc.ammp)
1295+
_, err := mw.ValidateCreate(t.Context(), tc.ammp)
12971296
if tc.wantErr {
12981297
g.Expect(err).To(HaveOccurred())
12991298
g.Expect(err).To(HaveLen(tc.errorLen))
@@ -1325,7 +1324,7 @@ func TestAzureManagedMachinePool_ValidateCreateFailure(t *testing.T) {
13251324
}
13261325
g := NewWithT(t)
13271326
mw := &azureManagedMachinePoolWebhook{}
1328-
_, err := mw.ValidateCreate(context.Background(), tc.ammp)
1327+
_, err := mw.ValidateCreate(t.Context(), tc.ammp)
13291328
if tc.expectError {
13301329
g.Expect(err).To(HaveOccurred())
13311330
} else {

0 commit comments

Comments
 (0)