Skip to content

Commit

Permalink
K8s-9263: Fix HostId and ProviderID methods
Browse files Browse the repository at this point in the history
  • Loading branch information
gizquierdo-s11 committed Jan 31, 2024
1 parent 61fedcc commit ee37702
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pkg/cloudprovider/provider/vultr/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,14 @@ func (v *vultrPhysicalMachine) ProviderID() string {
return "vultr://" + v.instance.ID
}

func (v *vultrVirtualMachine) HostID() string {
return v.ID()
}

func (v *vultrPhysicalMachine) HostID() string {
return v.ID()
}

func (v *vultrVirtualMachine) Addresses() map[string]v1.NodeAddressType {
addresses := map[string]v1.NodeAddressType{}
addresses[v.instance.MainIP] = v1.NodeExternalIP
Expand Down

0 comments on commit ee37702

Please sign in to comment.