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
6ad88bb1
Commit
6ad88bb1
authored
Jan 12, 2015
by
Brendan Burns
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear resourceVersion on errors.
parent
21b661ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
api.go
pkg/proxy/config/api.go
+4
-0
No files found.
pkg/proxy/config/api.go
View file @
6ad88bb1
...
@@ -127,9 +127,11 @@ func handleServicesWatch(resourceVersion *string, ch <-chan watch.Event, updates
...
@@ -127,9 +127,11 @@ func handleServicesWatch(resourceVersion *string, ch <-chan watch.Event, updates
service
=
obj
service
=
obj
case
*
api
.
Status
:
case
*
api
.
Status
:
glog
.
Warningf
(
"Got error status on WatchServices channel: %+v"
,
obj
)
glog
.
Warningf
(
"Got error status on WatchServices channel: %+v"
,
obj
)
*
resourceVersion
=
""
return
return
default
:
default
:
glog
.
Errorf
(
"Got unexpected object over WatchServices channel: %+v"
,
obj
)
glog
.
Errorf
(
"Got unexpected object over WatchServices channel: %+v"
,
obj
)
*
resourceVersion
=
""
return
return
}
}
...
@@ -196,9 +198,11 @@ func handleEndpointsWatch(resourceVersion *string, ch <-chan watch.Event, update
...
@@ -196,9 +198,11 @@ func handleEndpointsWatch(resourceVersion *string, ch <-chan watch.Event, update
endpoints
=
obj
endpoints
=
obj
case
*
api
.
Status
:
case
*
api
.
Status
:
glog
.
Warningf
(
"Got error status on WatchEndpoints channel: %+v"
,
obj
)
glog
.
Warningf
(
"Got error status on WatchEndpoints channel: %+v"
,
obj
)
*
resourceVersion
=
""
return
return
default
:
default
:
glog
.
Errorf
(
"Got unexpected object over WatchEndpoints channel: %+v"
,
obj
)
glog
.
Errorf
(
"Got unexpected object over WatchEndpoints channel: %+v"
,
obj
)
*
resourceVersion
=
""
return
return
}
}
*
resourceVersion
=
endpoints
.
ResourceVersion
*
resourceVersion
=
endpoints
.
ResourceVersion
...
...
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