Skip to content

Commit

Permalink
Merge pull request #6491 from elmiko/fix-clusterapi-provider-builder
Browse files Browse the repository at this point in the history
add informer argument to clusterapi provider builder
  • Loading branch information
k8s-ci-robot committed Mar 6, 2024
2 parents b5f86a4 + 130d3bf commit 9dc3b9e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider"
"k8s.io/autoscaler/cluster-autoscaler/cloudprovider/clusterapi"
"k8s.io/autoscaler/cluster-autoscaler/config"
"k8s.io/client-go/informers"
)

// AvailableCloudProviders supported by the cloud provider builder.
Expand All @@ -33,7 +34,7 @@ var AvailableCloudProviders = []string{
// DefaultCloudProvider for machineapi-only build.
const DefaultCloudProvider = cloudprovider.ClusterAPIProviderName

func buildCloudProvider(opts config.AutoscalingOptions, do cloudprovider.NodeGroupDiscoveryOptions, rl *cloudprovider.ResourceLimiter) cloudprovider.CloudProvider {
func buildCloudProvider(opts config.AutoscalingOptions, do cloudprovider.NodeGroupDiscoveryOptions, rl *cloudprovider.ResourceLimiter, _ informers.SharedInformerFactory) cloudprovider.CloudProvider {
switch opts.CloudProviderName {
case cloudprovider.ClusterAPIProviderName:
return clusterapi.BuildClusterAPI(opts, do, rl)
Expand Down

0 comments on commit 9dc3b9e

Please sign in to comment.