Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kube OVN
Commits
ae23d3df
Commit
ae23d3df
authored
3 years ago
by
zhangzujian
Browse files
Options
Download
Email Patches
Plain Diff
fix LB: skip service without cluster IP
parent
9eb2ebc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pkg/controller/endpoint.go
+1
-1
pkg/controller/endpoint.go
with
1 addition
and
1 deletion
+1
-1
pkg/controller/endpoint.go
+
1
-
1
View file @
ae23d3df
...
...
@@ -119,7 +119,7 @@ func (c *Controller) handleUpdateEndpoint(key string) error {
if
len
(
clusterIPs
)
==
0
&&
svc
.
Spec
.
ClusterIP
!=
""
&&
svc
.
Spec
.
ClusterIP
!=
v1
.
ClusterIPNone
{
clusterIPs
=
[]
string
{
svc
.
Spec
.
ClusterIP
}
}
if
len
(
clusterIPs
)
==
0
{
if
len
(
clusterIPs
)
==
0
||
clusterIPs
[
0
]
==
v1
.
ClusterIPNone
{
return
nil
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help