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
ed159319
Commit
ed159319
authored
Apr 27, 2016
by
Alex Robinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix DeletingLoadBalancer event generation.
Also patch up a log statement to log the service's namespace and name rather than potentially just logging `kind:"" apiVersion:""`.
parent
3b09c641
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
servicecontroller.go
pkg/controller/service/servicecontroller.go
+2
-2
No files found.
pkg/controller/service/servicecontroller.go
View file @
ed159319
...
@@ -232,7 +232,7 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, time.Durati
...
@@ -232,7 +232,7 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, time.Durati
namespacedName
.
Name
=
deltaService
.
Name
namespacedName
.
Name
=
deltaService
.
Name
cachedService
=
s
.
cache
.
getOrCreate
(
namespacedName
.
String
())
cachedService
=
s
.
cache
.
getOrCreate
(
namespacedName
.
String
())
}
}
glog
.
V
(
2
)
.
Infof
(
"Got new %s delta for service: %
+v"
,
delta
.
Type
,
deltaServic
e
)
glog
.
V
(
2
)
.
Infof
(
"Got new %s delta for service: %
v"
,
delta
.
Type
,
namespacedNam
e
)
// Ensure that no other goroutine will interfere with our processing of the
// Ensure that no other goroutine will interfere with our processing of the
// service.
// service.
...
@@ -249,7 +249,7 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, time.Durati
...
@@ -249,7 +249,7 @@ func (s *ServiceController) processDelta(delta *cache.Delta) (error, time.Durati
return
err
,
cachedService
.
nextRetryDelay
()
return
err
,
cachedService
.
nextRetryDelay
()
}
else
if
errors
.
IsNotFound
(
err
)
{
}
else
if
errors
.
IsNotFound
(
err
)
{
glog
.
V
(
2
)
.
Infof
(
"Service %v not found, ensuring load balancer is deleted"
,
namespacedName
)
glog
.
V
(
2
)
.
Infof
(
"Service %v not found, ensuring load balancer is deleted"
,
namespacedName
)
s
.
eventRecorder
.
Event
(
s
ervice
,
api
.
EventTypeNormal
,
"DeletingLoadBalancer"
,
"Deleting load balancer"
)
s
.
eventRecorder
.
Event
(
deltaS
ervice
,
api
.
EventTypeNormal
,
"DeletingLoadBalancer"
,
"Deleting load balancer"
)
err
:=
s
.
balancer
.
EnsureLoadBalancerDeleted
(
deltaService
)
err
:=
s
.
balancer
.
EnsureLoadBalancerDeleted
(
deltaService
)
if
err
!=
nil
{
if
err
!=
nil
{
message
:=
"Error deleting load balancer (will retry): "
+
err
.
Error
()
message
:=
"Error deleting load balancer (will retry): "
+
err
.
Error
()
...
...
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