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
df4f26ef
Commit
df4f26ef
authored
Aug 15, 2018
by
morrislaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated cloud providers with todo comment if using DefaultLoadBalancerName
parent
4f8fe9d9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
0 deletions
+5
-0
aws.go
pkg/cloudprovider/providers/aws/aws.go
+1
-0
azure_loadbalancer.go
pkg/cloudprovider/providers/azure/azure_loadbalancer.go
+1
-0
fake.go
pkg/cloudprovider/providers/fake/fake.go
+1
-0
gce_loadbalancer.go
pkg/cloudprovider/providers/gce/gce_loadbalancer.go
+1
-0
openstack_loadbalancer.go
...oudprovider/providers/openstack/openstack_loadbalancer.go
+1
-0
No files found.
pkg/cloudprovider/providers/aws/aws.go
View file @
df4f26ef
...
@@ -3648,6 +3648,7 @@ func (c *Cloud) GetLoadBalancer(ctx context.Context, clusterName string, service
...
@@ -3648,6 +3648,7 @@ func (c *Cloud) GetLoadBalancer(ctx context.Context, clusterName string, service
// GetLoadBalancerName is an implementation of LoadBalancer.GetLoadBalancerName
// GetLoadBalancerName is an implementation of LoadBalancer.GetLoadBalancerName
func
(
c
*
Cloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
func
(
c
*
Cloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
// TODO: replace DefaultLoadBalancerName to generate more meaningful loadbalancer names.
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
}
}
...
...
pkg/cloudprovider/providers/azure/azure_loadbalancer.go
View file @
df4f26ef
...
@@ -189,6 +189,7 @@ func (az *Cloud) EnsureLoadBalancerDeleted(ctx context.Context, clusterName stri
...
@@ -189,6 +189,7 @@ func (az *Cloud) EnsureLoadBalancerDeleted(ctx context.Context, clusterName stri
// GetLoadBalancerName returns the LoadBalancer name.
// GetLoadBalancerName returns the LoadBalancer name.
func
(
az
*
Cloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
func
(
az
*
Cloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
// TODO: replace DefaultLoadBalancerName to generate more meaningful loadbalancer names.
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
}
}
...
...
pkg/cloudprovider/providers/fake/fake.go
View file @
df4f26ef
...
@@ -156,6 +156,7 @@ func (f *FakeCloud) GetLoadBalancer(ctx context.Context, clusterName string, ser
...
@@ -156,6 +156,7 @@ func (f *FakeCloud) GetLoadBalancer(ctx context.Context, clusterName string, ser
// GetLoadBalancerName is a stub implementation of LoadBalancer.GetLoadBalancerName.
// GetLoadBalancerName is a stub implementation of LoadBalancer.GetLoadBalancerName.
func
(
f
*
FakeCloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
func
(
f
*
FakeCloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
// TODO: replace DefaultLoadBalancerName to generate more meaningful loadbalancer names.
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
}
}
...
...
pkg/cloudprovider/providers/gce/gce_loadbalancer.go
View file @
df4f26ef
...
@@ -105,6 +105,7 @@ func (gce *GCECloud) GetLoadBalancer(ctx context.Context, clusterName string, sv
...
@@ -105,6 +105,7 @@ func (gce *GCECloud) GetLoadBalancer(ctx context.Context, clusterName string, sv
// GetLoadBalancerName is an implementation of LoadBalancer.GetLoadBalancerName.
// GetLoadBalancerName is an implementation of LoadBalancer.GetLoadBalancerName.
func
(
gce
*
GCECloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
svc
*
v1
.
Service
)
string
{
func
(
gce
*
GCECloud
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
svc
*
v1
.
Service
)
string
{
// TODO: replace DefaultLoadBalancerName to generate more meaningful loadbalancer names.
return
cloudprovider
.
DefaultLoadBalancerName
(
svc
)
return
cloudprovider
.
DefaultLoadBalancerName
(
svc
)
}
}
...
...
pkg/cloudprovider/providers/openstack/openstack_loadbalancer.go
View file @
df4f26ef
...
@@ -487,6 +487,7 @@ func (lbaas *LbaasV2) GetLoadBalancer(ctx context.Context, clusterName string, s
...
@@ -487,6 +487,7 @@ func (lbaas *LbaasV2) GetLoadBalancer(ctx context.Context, clusterName string, s
// GetLoadBalancerName is an implementation of LoadBalancer.GetLoadBalancerName.
// GetLoadBalancerName is an implementation of LoadBalancer.GetLoadBalancerName.
func
(
lbaas
*
LbaasV2
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
func
(
lbaas
*
LbaasV2
)
GetLoadBalancerName
(
ctx
context
.
Context
,
clusterName
string
,
service
*
v1
.
Service
)
string
{
// TODO: replace DefaultLoadBalancerName to generate more meaningful loadbalancer names.
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
return
cloudprovider
.
DefaultLoadBalancerName
(
service
)
}
}
...
...
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