Skip to content

Commit 0da9349

Browse files
fix lint
1 parent a43898f commit 0da9349

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

controllers/managedcloudprofile_controller_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -997,7 +997,7 @@ var _ = Describe("The ManagedCloudProfile reconciler", func() {
997997
}
998998
Expect(k8sClient.Create(ctx, mcp)).To(Succeed())
999999

1000-
reconciler := &controllers.Reconciler{
1000+
r := &controllers.Reconciler{
10011001
Client: k8sClient,
10021002
OCISourceFactory: &fakeFactory{},
10031003
RegistryProviderFunc: func(registry string) (controllers.RegistryClient, error) {
@@ -1007,7 +1007,7 @@ var _ = Describe("The ManagedCloudProfile reconciler", func() {
10071007
},
10081008
}
10091009
req := ctrl.Request{NamespacedName: client.ObjectKey{Name: mcp.Name}}
1010-
_, err = reconciler.Reconcile(ctx, req)
1010+
_, err = r.Reconcile(ctx, req)
10111011
Expect(err).ToNot(HaveOccurred())
10121012

10131013
// Raw tag must still be present in spec.machineImages because the Shoot protects it.
@@ -1122,7 +1122,7 @@ var _ = Describe("The ManagedCloudProfile reconciler", func() {
11221122
}
11231123
Expect(k8sClient.Create(ctx, mcp)).To(Succeed())
11241124

1125-
reconciler := &controllers.Reconciler{
1125+
r := &controllers.Reconciler{
11261126
Client: k8sClient,
11271127
OCISourceFactory: &fakeFactory{},
11281128
RegistryProviderFunc: func(registry string) (controllers.RegistryClient, error) {
@@ -1133,7 +1133,7 @@ var _ = Describe("The ManagedCloudProfile reconciler", func() {
11331133
},
11341134
}
11351135
req := ctrl.Request{NamespacedName: client.ObjectKey{Name: mcp.Name}}
1136-
_, err = reconciler.Reconcile(ctx, req)
1136+
_, err = r.Reconcile(ctx, req)
11371137
Expect(err).ToNot(HaveOccurred())
11381138

11391139
// Old flavor must be gone; new flavor and clean version entry must remain.
@@ -1254,7 +1254,7 @@ var _ = Describe("The ManagedCloudProfile reconciler", func() {
12541254
}
12551255
Expect(k8sClient.Create(ctx, mcp)).To(Succeed())
12561256

1257-
reconciler := &controllers.Reconciler{
1257+
r := &controllers.Reconciler{
12581258
Client: k8sClient,
12591259
OCISourceFactory: &fakeFactory{},
12601260
RegistryProviderFunc: func(registry string) (controllers.RegistryClient, error) {
@@ -1264,7 +1264,7 @@ var _ = Describe("The ManagedCloudProfile reconciler", func() {
12641264
},
12651265
}
12661266
req := ctrl.Request{NamespacedName: client.ObjectKey{Name: mcp.Name}}
1267-
_, err = reconciler.Reconcile(ctx, req)
1267+
_, err = r.Reconcile(ctx, req)
12681268
Expect(err).ToNot(HaveOccurred())
12691269

12701270
// Both raw tag and clean version must be removed from spec.machineImages.

0 commit comments

Comments
 (0)