Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
bad135cd
Commit
bad135cd
authored
Nov 08, 2018
by
DavadDi
Committed by
corbot[bot]
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add opts.initPodCache to avoid panic (#2279)
Automatically submitted.
parent
ae7fbf31
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
plugin/kubernetes/autopath.go
plugin/kubernetes/autopath.go
+11
-0
No files found.
plugin/kubernetes/autopath.go
View file @
bad135cd
...
...
@@ -15,6 +15,17 @@ func (k *Kubernetes) AutoPath(state request.Request) []string {
return
nil
}
// cluster.local {
// autopath @kubernetes
// kubernetes {
// pods verified #
// }
// }
// if pods != verified will cause panic and return SERVFAIL, expect worked as normal without autopath function
if
!
k
.
opts
.
initPodCache
{
return
nil
}
ip
:=
state
.
IP
()
pod
:=
k
.
podWithIP
(
ip
)
...
...
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