diff --git a/pkg/cloudprovider/registry/fake.go b/pkg/cloudprovider/registry/fake.go index 2870fbdb35b1..4b7a30911fc3 100644 --- a/pkg/cloudprovider/registry/fake.go +++ b/pkg/cloudprovider/registry/fake.go @@ -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{} } diff --git a/pkg/cloudprovider/registry/register.go b/pkg/cloudprovider/registry/register.go index 04fb33bc484e..846ac8d0ca1e 100644 --- a/pkg/cloudprovider/registry/register.go +++ b/pkg/cloudprovider/registry/register.go @@ -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 } diff --git a/pkg/utils/functional/functional.go b/pkg/utils/functional/functional.go index acbee33add17..ee6666ac0d56 100644 --- a/pkg/utils/functional/functional.go +++ b/pkg/utils/functional/functional.go @@ -107,4 +107,4 @@ func HasAnyPrefix(s string, prefixes ...string) bool { } } return false -} \ No newline at end of file +}