Skip to content

Commit

Permalink
more cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob committed Oct 13, 2021
1 parent 88dfc1c commit 9fbac76
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion pkg/cloudprovider/registry/fake.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,12 @@ limitations under the License.
package registry

import (
"context"

"github.com/awslabs/karpenter/pkg/cloudprovider"
"github.com/awslabs/karpenter/pkg/cloudprovider/fake"
)

func newCloudProvider() cloudprovider.CloudProvider {
func newCloudProvider(context.Context, cloudprovider.Options) cloudprovider.CloudProvider {
return &fake.CloudProvider{}
}
4 changes: 2 additions & 2 deletions pkg/cloudprovider/registry/register.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ import (

"github.com/awslabs/karpenter/pkg/apis/provisioning/v1alpha4"
"github.com/awslabs/karpenter/pkg/cloudprovider"
v1 "k8s.io/api/core/v1"
"k8s.io/api/core/v1"
)

func NewCloudProvider(ctx context.Context, options cloudprovider.Options) cloudprovider.CloudProvider {
cloudProvider := newCloudProvider()
cloudProvider := newCloudProvider(ctx, options)
RegisterOrDie(ctx, cloudProvider)
return cloudProvider
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/functional/functional.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,4 @@ func HasAnyPrefix(s string, prefixes ...string) bool {
}
}
return false
}
}

0 comments on commit 9fbac76

Please sign in to comment.