Skip to content

Commit

Permalink
Linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ellistarn committed Oct 22, 2021
1 parent f088c82 commit bec0f9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cloudprovider/aws/apis/v1alpha1/provider_defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down
2 changes: 1 addition & 1 deletion pkg/cloudprovider/aws/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit bec0f9f

Please sign in to comment.