Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7bc205fc
Commit
7bc205fc
authored
May 31, 2017
by
realfake
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement *ByProviderID methods
parent
fc748662
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
azure_instances.go
pkg/cloudprovider/providers/azure/azure_instances.go
+12
-3
No files found.
pkg/cloudprovider/providers/azure/azure_instances.go
View file @
7bc205fc
...
@@ -17,7 +17,6 @@ limitations under the License.
...
@@ -17,7 +17,6 @@ limitations under the License.
package
azure
package
azure
import
(
import
(
"errors"
"fmt"
"fmt"
"k8s.io/kubernetes/pkg/api/v1"
"k8s.io/kubernetes/pkg/api/v1"
...
@@ -44,7 +43,12 @@ func (az *Cloud) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error) {
...
@@ -44,7 +43,12 @@ func (az *Cloud) NodeAddresses(name types.NodeName) ([]v1.NodeAddress, error) {
// This method will not be called from the node that is requesting this ID. i.e. metadata service
// This method will not be called from the node that is requesting this ID. i.e. metadata service
// and other local methods cannot be used here
// and other local methods cannot be used here
func
(
az
*
Cloud
)
NodeAddressesByProviderID
(
providerID
string
)
([]
v1
.
NodeAddress
,
error
)
{
func
(
az
*
Cloud
)
NodeAddressesByProviderID
(
providerID
string
)
([]
v1
.
NodeAddress
,
error
)
{
return
[]
v1
.
NodeAddress
{},
errors
.
New
(
"unimplemented"
)
name
,
err
:=
splitProviderID
(
providerID
)
if
err
!=
nil
{
return
nil
,
err
}
return
az
.
NodeAddresses
(
name
)
}
}
// ExternalID returns the cloud provider ID of the specified instance (deprecated).
// ExternalID returns the cloud provider ID of the specified instance (deprecated).
...
@@ -68,7 +72,12 @@ func (az *Cloud) InstanceID(name types.NodeName) (string, error) {
...
@@ -68,7 +72,12 @@ func (az *Cloud) InstanceID(name types.NodeName) (string, error) {
// This method will not be called from the node that is requesting this ID. i.e. metadata service
// This method will not be called from the node that is requesting this ID. i.e. metadata service
// and other local methods cannot be used here
// and other local methods cannot be used here
func
(
az
*
Cloud
)
InstanceTypeByProviderID
(
providerID
string
)
(
string
,
error
)
{
func
(
az
*
Cloud
)
InstanceTypeByProviderID
(
providerID
string
)
(
string
,
error
)
{
return
""
,
errors
.
New
(
"unimplemented"
)
name
,
err
:=
splitProviderID
(
providerID
)
if
err
!=
nil
{
return
""
,
err
}
return
az
.
InstanceID
(
name
)
}
}
// InstanceType returns the type of the specified instance.
// InstanceType returns the type of the specified instance.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment