plugin/k8s_external: Add support for PTR requests (#5435)
* Exclude External IP addresses from being added to the existing kubernetes' plugin IP->Service index * Add support for PTR requests on External IPs of Services to the k8s_external plugin Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
This commit is contained in:
parent
d903a963ee
commit
e80d696502
12 changed files with 163 additions and 44 deletions
|
@ -536,12 +536,13 @@ type APIConnServeTest struct {
|
|||
notSynced bool
|
||||
}
|
||||
|
||||
func (a APIConnServeTest) HasSynced() bool { return !a.notSynced }
|
||||
func (APIConnServeTest) Run() {}
|
||||
func (APIConnServeTest) Stop() error { return nil }
|
||||
func (APIConnServeTest) EpIndexReverse(string) []*object.Endpoints { return nil }
|
||||
func (APIConnServeTest) SvcIndexReverse(string) []*object.Service { return nil }
|
||||
func (APIConnServeTest) Modified(bool) int64 { return int64(3) }
|
||||
func (a APIConnServeTest) HasSynced() bool { return !a.notSynced }
|
||||
func (APIConnServeTest) Run() {}
|
||||
func (APIConnServeTest) Stop() error { return nil }
|
||||
func (APIConnServeTest) EpIndexReverse(string) []*object.Endpoints { return nil }
|
||||
func (APIConnServeTest) SvcIndexReverse(string) []*object.Service { return nil }
|
||||
func (APIConnServeTest) SvcExtIndexReverse(string) []*object.Service { return nil }
|
||||
func (APIConnServeTest) Modified(bool) int64 { return int64(3) }
|
||||
|
||||
func (APIConnServeTest) PodIndex(ip string) []*object.Pod {
|
||||
if ip != "10.240.0.1" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue