From bec0f9f90b4339cbc267451802a4ef825bed4e34 Mon Sep 17 00:00:00 2001 From: Ellis Tarn Date: Fri, 22 Oct 2021 16:43:37 -0700 Subject: [PATCH] Linter issue --- pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go | 2 +- pkg/cloudprovider/aws/suite_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go b/pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go index 005b8b125aa6..8cba3f4dcba1 100644 --- a/pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go +++ b/pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go @@ -34,7 +34,7 @@ func (c *Constraints) Default(ctx context.Context) { } func (c *Constraints) defaultCapacityTypes() { - if functional.ContainsString(c.Consolidate().Requirements.GetLabels(),CapacityTypeLabel) { + if functional.ContainsString(c.Consolidate().Requirements.GetLabels(), CapacityTypeLabel) { return } c.Requirements = append(c.Requirements, v1.NodeSelectorRequirement{ diff --git a/pkg/cloudprovider/aws/suite_test.go b/pkg/cloudprovider/aws/suite_test.go index 0c053789f712..240c68bfa177 100644 --- a/pkg/cloudprovider/aws/suite_test.go +++ b/pkg/cloudprovider/aws/suite_test.go @@ -348,7 +348,7 @@ var _ = Describe("Allocation", func() { Expect(err).ToNot(HaveOccurred()) Expect(constraints.SecurityGroupSelector).To(Equal(map[string]string{"kubernetes.io/cluster/test-cluster": "*"})) }) - FIt("should default requirements", func() { + It("should default requirements", func() { provisioner.SetDefaults(ctx) Expect(provisioner.Spec.Requirements.GetLabelValues(v1alpha1.CapacityTypeLabel)).To(ConsistOf(v1alpha1.CapacityTypeOnDemand)) Expect(provisioner.Spec.Requirements.GetLabelValues(v1.LabelArchStable)).To(ConsistOf(v1alpha5.ArchitectureAmd64))