aboutsummaryrefslogtreecommitdiff
path: root/plugin/kubernetes (follow)
AgeCommit message (Collapse)AuthorFilesLines
2020-06-15plugin/kubernetes: fix tombstone unwrapping (#3924)Gravatar Chris O'Haver 4-83/+163
* fix tombstone unwrapping Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-06-12weight for SRV records should be at least 1 (#3931)Gravatar Yang Bo 1-1/+6
Automatically submitted.
2020-05-29k8s_external can now resolve CNAME returned by AWS ELB/NLB (#3916)Gravatar Michael Kashin 1-1/+6
Automatically submitted.
2020-05-15plugin/kubernetes: handle tombstones in default processor (#3890)Gravatar Chris O'Haver 4-25/+45
* handle deletion tombstones in default processor Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * fix terminating pod exclusion Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-05-14plugin/kubernetes: Handle endpoint tombstones (#3887)Gravatar Chris O'Haver 2-13/+31
* check for nil Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * handle tombstone Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * move casting to caller. add comments. Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * more sanding Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * more scrubbing Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * move object unwraping to switch cases Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * oops remove debug Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove cruft Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-05-06plugin/kubernetes: Mention remote IP requirement for autopath and metadata ↵Gravatar Chris O'Haver 1-9/+16
in README (#3876) * mention remote IP requirement for autopath and metadata Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * remove whitespace Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-05-05always add client metadata (#3874)Gravatar Chris O'Haver 2-32/+32
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-05-04plugin/kubernetes: Don't panic with metadata enabled and pods mode not ↵Gravatar Chris O'Haver 2-4/+37
verified (#3869) * prevent panic in podWithIP Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * add unit test, correct existing unit test Signed-off-by: Chris O'Haver <cohaver@infoblox.com> * unit tests make more sense this way Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-04-14remove ignored option at kubernetes plugin (#3737)Gravatar Zou Nengren 1-5/+0
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
2020-03-31Update more metrics names (#3799)Gravatar Ben Kochie 2-9/+7
The subsystem of a metric must be it's plugin name. "dns" is reserved for the core. Use a const convention to avoid copy-paste mistakes in naming. Fix dns64 and acl plugin. Signed-off-by: Ben Kochie <superq@gmail.com>
2020-03-30Update k8s.io/[api|apimachinery|client-go] to v0.18.0 (#3796)Gravatar Yong Tang 11-50/+65
* Update k8s.io/[api|apimachinery|client-go] to v0.18.0 This PR updates k8s.io/[api|apimachinery|client-go] to v0.18.0 This PR closes 3791 This PR closes 3792 This PR closes 3793 Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix test failures Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix failed tests Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Fix test failure Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2020-03-30remove federation (#3794)Gravatar Zou Nengren 3-37/+0
Signed-off-by: zounengren <zounengren@cmss.chinamobile.com>
2020-03-05Update README.md (#3721)Gravatar Miek Gieben 1-1/+1
Signed-off-by: imba-tjd <imba-tjd@users.noreply.github.com>
2020-02-21return all records with matching ip (#3687)Gravatar Chris O'Haver 2-24/+50
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2020-01-31plugin/kubernetes: fix metadata (#3642)Gravatar Chris O'Haver 5-9/+9
Automatically submitted.
2020-01-30presubmit: check import path ordering (#3636)Gravatar Miek Gieben 2-12/+5
Add a test for this as well as it's annoying to point out in every code review. Fix all the import paths that are flagged by this new test. Fixes: #3634 Signed-off-by: Miek Gieben <miek@miek.nl>
2020-01-03Resolve TXT records via CNAME (#3557)Gravatar Jonathan Nagy 1-1/+1
* Add test case for TXT lookup via CNAME Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com> * Return HostType of explicit TXT records Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com> * Adapt TXT method lookup to allow lookup via CNAME Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com> * Implement lookup of TXT records via CNAME Signed-off-by: Jonathan Nagy <nagytech@users.noreply.github.com>
2019-12-29doc: fix generated manual pages (#3571)Gravatar Miek Gieben 1-1/+1
Went over all generated manual pages and fixed some markdown issues, mostly escaping "_" to avoid underlining entire paragraphs. Some textual fixes in route53 and other cloud DNS plugins. Regenerated the markdown with mmark. Signed-off-by: Miek Gieben <miek@miek.nl>
2019-12-19Bump kubernetes plugin schema version (#3554)Gravatar Antonio Ojea 2-2/+2
The Kubernetes DNS specification schema version was updated to 1.1.0 in order to support IPv6 Signed-off-by: Antonio Ojea <antonio.ojea.garcia@gmail.com>
2019-12-18bump k8s releated library (#3552)Gravatar Zou Nengren 1-6/+0
Signed-off-by: zouyee <zounengren@cmss.chinamobile.com>
2019-11-29Move to CODEOWNERS (#3489)Gravatar Miek Gieben 1-14/+0
* Move to CODEOWNERS No change in who own what; just a move to CODEOWNERS. This allows dreck cleanups. Added .dreck.yaml for alias and exec. Fixes: #3486 Signed-off-by: Miek Gieben <miek@miek.nl> * stickler bot Signed-off-by: Miek Gieben <miek@miek.nl> * sort the file Signed-off-by: Miek Gieben <miek@miek.nl>
2019-10-08Directive -> plugin (#3363)Gravatar Miek Gieben 1-2/+2
Caught my eye, we name things directive still, esp when talking about the prometheus *plugin*. Rename everything that needs to be plugin to 'plugin'. Also make sure Metrics is a H2 section (not H1). Signed-off-by: Miek Gieben <miek@miek.nl>
2019-10-07kubernetes: brush up README, rename metric (#3360)Gravatar Miek Gieben 3-35/+34
Other latency metrics have `_duration` in the name change this metric to be in sync with the other ones. Signed-off-by: Miek Gieben <miek@miek.nl>
2019-10-04Measure and expose DNS programming latency from Kubernetes plugin. (#3171)Gravatar janluk 10-37/+328
For now metric is measure only for headless services. Informer has been slighlty refactored, so the code can measure latency without storing extra fields on Endpoint struct. Signed-off-by: Janek Łukaszewicz <janluk@google.com> Suggestions from code review Co-Authored-By: Chris O'Haver <cohaver@infoblox.com>
2019-09-27cleanup code by lint (#3312)Gravatar Guangming Wang 1-2/+1
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-09-26fix mis-spelling (#3310)Gravatar xieyanker 2-2/+2
Signed-off-by: xieyanker <xjsisnice@gmail.com>
2019-09-23cleanup: remove redundant return statement (#3297)Gravatar Guangming Wang 6-6/+5
Signed-off-by: Guangming Wang <guangming.wang@daocloud.io>
2019-09-20all: simply registering plugins (#3287)Gravatar Miek Gieben 1-6/+1
Abstract the caddy call and make it simpler. See #3261 for some part of the discussion. Go from: ~~~ go func init() { caddy.RegisterPlugin("any", caddy.Plugin{ ServerType: "dns", Action: setup, }) } ~~~ To: ~~~ go func init() { plugin.Register("any", setup) } ~~~ This requires some external documents in coredns.io to be updated as well; the old way still works, so it's backwards compatible. Signed-off-by: Miek Gieben <miek@miek.nl>
2019-09-08dont duplicate service recrod for every port (#3240)Gravatar Chris O'Haver 1-6/+7
2019-09-08Fixing the top-level description (#3246)Gravatar Cricket Liu 1-1/+1
2019-09-05plugin/kubernetes: Handle multiple local IPs and bind (#3208)Gravatar Chris O'Haver 7-50/+83
* use all local IPs * mult/bind ips * gofmt + boundIPs fix * fix no matching endpoint case * don't duplicate NS records in answer * fix answer dedup * fix comment * add multi local ip test case
2019-08-28fix the-the mistake (#3216)Gravatar 陈谭军 1-1/+1
2019-08-24go report card fixes (#3182)Gravatar Miek Gieben 1-1/+1
Went over the list at https://goreportcard.com/report/github.com/coredns/coredns and removed/fix some code to make it slightly happier. Signed-off-by: Miek Gieben <miek@miek.nl>
2019-08-23plugin/k8s_external/kubernetes: handle NS records (#3160)Gravatar Chris O'Haver 6-70/+180
* fix external ns records * use k8s service name for ns record * update test, add func comment * expand nsAddrs() test cases * support local ipv6 ip * use less confusing pod ip in test
2019-08-22fix wrong spells in parse_test.go (#3173)Gravatar AllenZMC 1-1/+1
2019-08-21typo fixes (#3169)Gravatar Chris O'Haver 4-5/+5
* spelling fixes * its/it's
2019-08-19Change the ToEndpoints method comment to replace the Service with Endpoints ↵Gravatar Xigang Wang 1-1/+1
(#3146)
2019-08-18Move federation plugin to github.com/coredns/federation (#3139)Gravatar Yong Tang 2-52/+2
* Remove federation Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Rebuild and point to github.com/coredns/federation Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Export `localNodeName` => `LocalNodeName`, to be used by federation (until deprecation) Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Remove plugin/kubernetes/federation.go (=> kubernetes/federation repo) Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update github.com/coredns/federation Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * sticker-ci fix Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-08-16fix mis-spelling in object.go (#3134)Gravatar AllenZMC 1-1/+1
2019-08-15fix typos in kubernetes.go (#3132)Gravatar AllenZMC 1-1/+1
2019-08-13Update parse.go (#3122)Gravatar AllenZMC 1-1/+1
2019-08-12fix NXDOMAIN/NODATA fallthough case (#3118)Gravatar Chris O'Haver 2-1/+27
2019-08-09plugin/kubernetes: Don't do a zone transfer for NS requests (#3098)Gravatar Chris O'Haver 2-2/+10
* fix switch order * remove fallthough * add test * fix test * distingush nxdomain/nodata for at least first subdomain of zone * restore fallthough; reorder switch cases
2019-08-01Fixes races in test and klog (#3079)Gravatar Miek Gieben 1-3/+3
Various fixes to make things less flaky: * kubernetes: put klog.SetOutput in the setup function, not in the init function to see if that helps * file: make z.Expired a boolean instead of a pointer to a boolean * test: fix TestSecondaryZoneTransfer test, which wasn't actually testing in the right way. It's more right now, but may still be racy (race introduced because a file's lazy loading of zones) Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-30plugin/kubernetes: remove some of the klog setup (#3054)Gravatar Miek Gieben 1-13/+1
I don't believe this is actually needed (anymore). The: os.Stderr = os.Stdout is a crazy hack that def. needs to go. Signed-off-by: Miek Gieben <miek@miek.nl>
2019-07-03ISSUE-2911 (#2923)Gravatar Anshul Sharma 5-135/+16
- Remove resyncperiod from Kubernetes plugin
2019-07-03Update Caddy to 1.0.1, and update import path (#2961)Gravatar Yong Tang 5-5/+5
* Update Caddy to 1.0.1, and update import path This fix updates caddy to 1.0.1 and also updates the import path to github.com/caddyserver/caddy This fix fixes 2959 Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Also update plugin.cfg Signed-off-by: Yong Tang <yong.tang.github@outlook.com> * Update and bump zplugin.go Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2019-07-02plugins: set upstream unconditionally (#2956)Gravatar Miek Gieben 3-27/+6
`upstream` is not needed as a setting; just set if unconditionally and remove all documentation and tests for it. At some point we want remove the hanlding for `upstream` as well and error out on seeing it. Signed-off-by: Miek Gieben <miek@miek.nl>
2019-06-25Run gofmt -s and golint on the codebase (#2918)Gravatar Miek Gieben 1-5/+5
* Run gofmt -s and golint on the codebase Run golint and fix everythign it flagged (except the context arg ordering), mostly edits in the rewrite plugin. Signed-off-by: Miek Gieben <miek@miek.nl> * ... and ofcourse the test as well Signed-off-by: Miek Gieben <miek@miek.nl>
2019-06-10Fix lowercase presummit (#2876)Gravatar Yong Tang 1-1/+1
While running make encountered the following error: ``` $ docker run -i -t --rm -v $PWD:/v --net=host -w /v golang:1.12 make ... ... ** presubmit/test-lowercase plugin/kubernetes/metadata_test.go: t.Errorf("case %d expected metadata %v and got %v", i, tc.Md, md) ** presubmit/test-lowercase: please start with an upper case letter when using t.Error*() Makefile:62: recipe for target 'presubmit' failed make: *** [presubmit] Error 1 ``` Signed-off-by: Yong Tang <yong.tang.github@outlook.com>