Skip to content

Commit 54860f1

Browse files
committed
gofmt all files
1 parent 7a5987b commit 54860f1

File tree

7 files changed

+15
-15
lines changed

7 files changed

+15
-15
lines changed

apis/core/v1alpha1/annotations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const (
8282
// ACK service controller.
8383
AnnotationReadOnly = AnnotationPrefix + "read-only"
8484
// AnnotationAdoptionPolicy is an annotation whose value is the identifier for whether
85-
// we will attempt adoption only (value = adopt-only) or attempt a create if resource
85+
// we will attempt adoption only (value = adopt-only) or attempt a create if resource
8686
// is not found (value adopt-or-create).
8787
//
8888
// NOTE (michaelhtm): Currently create-or-adopt is not supported

pkg/condition/condition.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var (
2929
NotManagedReason = "This resource already exists but is not managed by ACK. " +
3030
"To bring the resource under ACK management, you should explicitly adopt " +
3131
"the resource by enabling the ResourceAdoption feature gate and populating " +
32-
"the `services.k8s.aws/adoption-policy` and `services.k8s.aws/adoption-fields` " +
32+
"the `services.k8s.aws/adoption-policy` and `services.k8s.aws/adoption-fields` " +
3333
"annotations."
3434
UnknownSyncedMessage = "Unable to determine if desired resource state matches latest observed state"
3535
NotSyncedMessage = "Resource not synced"

pkg/runtime/adoption_reconciler.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -620,12 +620,12 @@ func NewAdoptionReconcilerWithClient(
620620
) acktypes.AdoptedResourceReconciler {
621621
return &adoptionReconciler{
622622
reconciler: reconciler{
623-
sc: sc,
624-
log: log.WithName("adopted-reconciler"),
625-
cfg: cfg,
626-
metrics: metrics,
627-
cache: cache,
628-
kc: kc,
623+
sc: sc,
624+
log: log.WithName("adopted-reconciler"),
625+
cfg: cfg,
626+
metrics: metrics,
627+
cache: cache,
628+
kc: kc,
629629
ackResourceCache: ackResourceCache,
630630
},
631631
}

pkg/runtime/field_export_reconciler_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ import (
4141

4242
apimachineryruntimemock "github.com/aws-controllers-k8s/runtime/mocks/apimachinery/pkg/runtime"
4343
k8srtschemamocks "github.com/aws-controllers-k8s/runtime/mocks/apimachinery/pkg/runtime/schema"
44-
ctrlrtclientmock "github.com/aws-controllers-k8s/runtime/mocks/controller-runtime/pkg/client"
4544
ctrlrtcachemock "github.com/aws-controllers-k8s/runtime/mocks/controller-runtime/pkg/cache"
45+
ctrlrtclientmock "github.com/aws-controllers-k8s/runtime/mocks/controller-runtime/pkg/client"
4646
mocks "github.com/aws-controllers-k8s/runtime/mocks/pkg/types"
4747
)
4848

@@ -595,7 +595,7 @@ func assertPatchedSecretWithKey(expected bool, t *testing.T, ctx context.Context
595595
return bytes.Equal(val, []byte("test-book-name"))
596596
})
597597
if expected {
598-
kc.AssertCalled(t, "Patch", withoutCancelContextMatcher, dataMatcher, mock.Anything)
598+
kc.AssertCalled(t, "Patch", withoutCancelContextMatcher, dataMatcher, mock.Anything)
599599
} else {
600600
kc.AssertNotCalled(t, "Patch", withoutCancelContextMatcher, dataMatcher, mock.Anything)
601601
}

pkg/runtime/service_controller.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,9 +331,9 @@ func NewServiceController(
331331
) acktypes.ServiceController {
332332
return &serviceController{
333333
ServiceControllerMetadata: acktypes.ServiceControllerMetadata{
334-
VersionInfo: versionInfo,
335-
ServiceAlias: svcAlias,
336-
ServiceAPIGroup: svcAPIGroup,
334+
VersionInfo: versionInfo,
335+
ServiceAlias: svcAlias,
336+
ServiceAPIGroup: svcAPIGroup,
337337
},
338338
metrics: ackmetrics.NewMetrics(svcAlias),
339339
}

pkg/runtime/util_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestIsForcedAdoption(t *testing.T) {
9292
res = &mocks.AWSResource{}
9393
res.On("MetaObject").Return(&metav1.ObjectMeta{
9494
Annotations: map[string]string{
95-
ackv1alpha1.AnnotationAdopted: "true",
95+
ackv1alpha1.AnnotationAdopted: "true",
9696
},
9797
})
9898
require.False(ackrt.NeedAdoption(res))

pkg/types/aws_resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,5 @@ type AWSResource interface {
5050
DeepCopy() AWSResource
5151
// PopulateResourceFromAnnotation will set the Spec or Status field that user
5252
// provided from annotations
53-
PopulateResourceFromAnnotation(fields map[string]string) error
53+
PopulateResourceFromAnnotation(fields map[string]string) error
5454
}

0 commit comments

Comments
 (0)