Skip to content

Commit

Permalink
Merge pull request #4448 from sbs2001/register_packet_in_builder
Browse files Browse the repository at this point in the history
Register packet provider in all builder
  • Loading branch information
k8s-ci-robot authored Nov 16, 2021
2 parents a159564 + 9c77ac3 commit b9822e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cluster-autoscaler/cloudprovider/builder/builder_all.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build !gce,!aws,!azure,!kubemark,!alicloud,!magnum,!digitalocean,!clusterapi,!huaweicloud,!ionoscloud,!linode,!hetzner,!bizflycloud,!brightbox
// +build !gce,!aws,!azure,!kubemark,!alicloud,!magnum,!digitalocean,!clusterapi,!huaweicloud,!ionoscloud,!linode,!hetzner,!bizflycloud,!brightbox,!packet

/*
Copyright 2018 The Kubernetes Authors.
Expand Down Expand Up @@ -60,6 +60,7 @@ var AvailableCloudProviders = []string{
cloudprovider.LinodeProviderName,
cloudprovider.BizflyCloudProviderName,
cloudprovider.BrightboxProviderName,
cloudprovider.PacketProviderName,
}

// DefaultCloudProvider is GCE.
Expand Down Expand Up @@ -95,7 +96,7 @@ func buildCloudProvider(opts config.AutoscalingOptions, do cloudprovider.NodeGro
return ovhcloud.BuildOVHcloud(opts, do, rl)
case cloudprovider.HetznerProviderName:
return hetzner.BuildHetzner(opts, do, rl)
case packet.ProviderName:
case cloudprovider.PacketProviderName:
return packet.BuildPacket(opts, do, rl)
case cloudprovider.ClusterAPIProviderName:
return clusterapi.BuildClusterAPI(opts, do, rl)
Expand Down
2 changes: 2 additions & 0 deletions cluster-autoscaler/cloudprovider/cloud_provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ const (
OVHcloudProviderName = "ovhcloud"
// LinodeProviderName gets the provider name of linode
LinodeProviderName = "linode"
// PacketProviderName gets the provider name of packet
PacketProviderName = "packet"
)

// CloudProvider contains configuration info and functions for interacting with
Expand Down

0 comments on commit b9822e6

Please sign in to comment.