diff options
author | 2019-06-01 08:39:52 +0100 | |
---|---|---|
committer | 2019-06-01 08:39:52 +0100 | |
commit | 3b3fb6f5835a673f96c458b14104165dec2fb9f2 (patch) | |
tree | 009c13d23ace5964dd512864a731f8a28afc7f42 /plugin/kubernetes/object/endpoint.go | |
parent | adc021d6ff5d286072609a09ed88ce7ee7026934 (diff) | |
download | coredns-3b3fb6f5835a673f96c458b14104165dec2fb9f2.tar.gz coredns-3b3fb6f5835a673f96c458b14104165dec2fb9f2.tar.zst coredns-3b3fb6f5835a673f96c458b14104165dec2fb9f2.zip |
plugin/kubernetes: skip deleting pods (#2853)
Don't add pods to our internal cache that are being deleted. This saves
a field in the struct as well.
Add (extra) comments about adding fields to the
object/{Pod,Service,Endpoint} structs.
Signed-off-by: Miek Gieben <miek@miek.nl>
Diffstat (limited to 'plugin/kubernetes/object/endpoint.go')
-rw-r--r-- | plugin/kubernetes/object/endpoint.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugin/kubernetes/object/endpoint.go b/plugin/kubernetes/object/endpoint.go index b8531f050..aa93b4ceb 100644 --- a/plugin/kubernetes/object/endpoint.go +++ b/plugin/kubernetes/object/endpoint.go @@ -7,6 +7,7 @@ import ( // Endpoints is a stripped down api.Endpoints with only the items we need for CoreDNS. type Endpoints struct { + // Don't add new fields to this struct without talking to the CoreDNS maintainers. Version string Name string Namespace string |