Commit Graph

2988 Commits

Author SHA1 Message Date
kayos@tcp.direct 27ae8586d8 smol 2022-01-20 19:31:54 -08:00
kayos@tcp.direct eb35fd20a7 maintain fork 2021-11-22 03:56:06 -08:00
kayos@tcp.direct 01979dc184 slim 2021-11-22 03:34:45 -08:00
kayos@tcp.direct 8050b88077 slim 2021-11-22 03:18:20 -08:00
OctoHuman 29f6d0a6b2
Docs: Add warning to use tls_servername (#4992)
Signed-off-by: OctoHuman <17958767+OctoHuman@users.noreply.github.com>
2021-11-22 08:49:13 +01:00
Miek Gieben a9d9d2b71e
plugin/bind: Point to MacOS bug (#4995)
Document this is a bug.

Closes: 4993

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-11-21 12:15:27 -05:00
gomakesix 71bb575b71
plugin/auto: Fix panic caused by config invalid reload value (#4986)
Automatically submitted.
2021-11-19 16:19:25 +00:00
xuweiwei e799a0f5c7
plugin/file: Fix print tree error (#4962)
Automatically submitted.
2021-11-19 16:18:31 +00:00
xuweiwei 5f900b86f5
cleanup some code (#4989)
Automatically submitted.
2021-11-19 16:15:58 +00:00
Hu Shuai c707a4e7c6
Fix small typos and grammar (#4988)
Signed-off-by: Hu Shuai <hus.fnst@fujitsu.com>
2021-11-18 08:39:45 -05:00
dependabot[bot] e004c93c80
build(deps): bump github.com/aws/aws-sdk-go from 1.41.19 to 1.42.4 (#4983) 2021-11-16 01:10:12 +08:00
xuweiwei 1029fea906
Fix a typo in plugin/health (#4982)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
2021-11-15 07:29:52 -05:00
coredns[bot] 92b0227592 auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-11-15 10:33:24 +00:00
Yong Tang 4c0eacb657
Update Project Lead's term (#4933) 2021-11-14 23:25:15 +08:00
Chris O'Haver 3288b111b2
Revert "Initial implementation of ForwardCRD plugin (#4512)" (#4981)
This reverts commit 2e6953c7db.
2021-11-12 13:19:16 -05:00
Christian Ang 2e6953c7db
Initial implementation of ForwardCRD plugin (#4512)
* Add forwardcrd plugin README.md

Co-authored-by: Aidan Obley <aobley@vmware.com>

Signed-off-by: Christian Ang <angc@vmware.com>

* Create forwardcrd plugin

- Place forwardcrd before forward plugin in plugin list. This will avoid
forward from preventing the forwardcrd plugin from handling any queries
in the case of having a default upstream forwarder in a server block (as
is the case in the default kubernetes Corefile).

Co-authored-by: Aidan Obley <aobley@vmware.com>

Signed-off-by: Christian Ang <angc@vmware.com>

* Add Forward CRD

Signed-off-by: Christian Ang <angc@vmware.com>

* Add NewWithConfig to forward plugin

- allows external packages to instanciate forward plugins

Co-authored-by: Aidan Obley <aobley@vmware.com>

Signed-off-by: Christian Ang <angc@vmware.com>

* ForwardCRD plugin handles requests for Forward CRs

- add a Kubernetes controller that can read Forward CRs
- instances of the forward plugin are created based on Forward CRs from
the Kubernetes controller
- DNS requests are handled by calling matching Forward plugin instances
based on zone name
- Defaults to the kube-system namespace to align with Corefile RBAC

Signed-off-by: Christian Ang <angc@vmware.com>

Use klog v2 in forwardcrd plugin

* Refactor forward setup to use NewWithConfig

Co-authored-by: Christian Ang <angc@vmware.com>

Signed-off-by: Edwin Xie <exie@vmware.com>

* Use ParseInt instead of Atoi

- to ensure that the bitsize is 32 for later casting to uint32

Signed-off-by: Christian Ang <angc@vmware.com>

* Add @christianang to CODEOWNERS for forwardcrd

Signed-off-by: Christian Ang <angc@vmware.com>

Co-authored-by: Edwin Xie <exie@vmware.com>
2021-11-12 11:22:34 -05:00
Miek Gieben 6953ab2b4f
Metrics: expand coredns_dns_responses_total with plugin label (#4914)
* Metrics: expand coredns_dns_responses_total with plugin label

This adds (somewhat hacky?) code to add a plugin label to the
coredns_dns_responses_total metric. It's completely obvlious to the
plugin as we just check who called the *recorder.WriteMsg method. We use
runtime.Caller( 1 2 3) to get multiple levels of callers, this should be
deep enough, but it depends on the dns.ResponseWriter wrapping that's
occuring.

README.md of metrics updates and test added in test/metrics_test.go to
check for the label being set.

I went through the plugin to see what metrics could be removed, but
actually didn't find any, the plugin push out metrics that make sense.

Due to the path fiddling to figure out the plugin name I doubt this
works (out-of-the-box) for external plugins, but I haven't tested that.

Signed-off-by: Miek Gieben <miek@miek.nl>

* better comment

Signed-off-by: Miek Gieben <miek@miek.nl>

* Metrics: expand coredns_dns_responses_total with plugin label

This adds (somewhat hacky?) code to add a plugin label to the
coredns_dns_responses_total metric. It's completely obvlious to the
plugin as we just check who called the *recorder.WriteMsg method. We use
runtime.Caller( 1 2 3) to get multiple levels of callers, this should be
deep enough, but it depends on the dns.ResponseWriter wrapping that's
occuring.

README.md of metrics updates and test added in test/metrics_test.go to
check for the label being set.

I went through the plugin to see what metrics could be removed, but
actually didn't find any, the plugin push out metrics that make sense.

Due to the path fiddling to figure out the plugin name I doubt this
works (out-of-the-box) for external plugins, but I haven't tested that.

Signed-off-by: Miek Gieben <miek@miek.nl>

* Update core/dnsserver/server.go

Co-authored-by: dilyevsky <ilyevsky@gmail.com>

* Use [3]string

Signed-off-by: Miek Gieben <miek@miek.nl>

* imports

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove dnstest changes

Signed-off-by: Miek Gieben <miek@miek.nl>

* revert

Signed-off-by: Miek Gieben <miek@miek.nl>

* Add some sleeps to make it less flaky

Signed-off-by: Miek Gieben <miek@miek.nl>

* Revert "Add some sleeps to make it less flaky"

This reverts commit b5c6655196e3ad570555f086832ceb1f48f6f2d5.

* Remove forward when not needed

Signed-off-by: Miek Gieben <miek@miek.nl>

* remove newline

Signed-off-by: Miek Gieben <miek@miek.nl>

Co-authored-by: dilyevsky <ilyevsky@gmail.com>
2021-11-12 16:07:05 +00:00
Chris O'Haver 29cae57932
plugin/loadbalance: More consistent shuffling (#4961)
* fix shuffling

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>

* shuffle each record once

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-11-12 16:00:20 +00:00
xww f6ffafe229
Fix a typo in plugin/geoip/README.md (#4978)
Signed-off-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>

Co-authored-by: xuweiwei <xuweiwei_yewu@cmss.chinamobile.com>
2021-11-10 21:20:40 -05:00
Humberto Leal 5739aca547
added northflank to adopters list (#4976) 2021-11-10 06:47:49 -08:00
Cyb3r Jak3 f2a6484614
Made it so Makefile will use existing CGO_ENABLED variable (#4975) 2021-11-09 22:12:52 -08:00
dependabot[bot] 06e3b2e859
build(deps): bump github.com/Azure/go-autorest/autorest/azure/auth (#4970)
Bumps [github.com/Azure/go-autorest/autorest/azure/auth](https://github.com/Azure/go-autorest) from 0.5.8 to 0.5.9.
- [Release notes](https://github.com/Azure/go-autorest/releases)
- [Changelog](https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/azure/auth/v0.5.8...autorest/azure/auth/v0.5.9)

---
updated-dependencies:
- dependency-name: github.com/Azure/go-autorest/autorest/azure/auth
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 06:51:48 -08:00
Matt Palmer e53bff9043
plugin/route53: Configurable AWS Endpoint (#4963)
Provide the ability to configure the AWS endpoint

Signed-off-by: Matthew Palmer <matthew.palmer@helpsystems.com>
2021-11-08 06:45:45 -08:00
dependabot[bot] 3f031b6b65
build(deps): bump google.golang.org/grpc from 1.41.0 to 1.42.0 (#4969)
Bumps [google.golang.org/grpc](https://github.com/grpc/grpc-go) from 1.41.0 to 1.42.0.
- [Release notes](https://github.com/grpc/grpc-go/releases)
- [Commits](https://github.com/grpc/grpc-go/compare/v1.41.0...v1.42.0)

---
updated-dependencies:
- dependency-name: google.golang.org/grpc
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 06:25:24 -08:00
dependabot[bot] b91f49a954
build(deps): bump github.com/Azure/go-autorest/autorest (#4968)
Bumps [github.com/Azure/go-autorest/autorest](https://github.com/Azure/go-autorest) from 0.11.21 to 0.11.22.
- [Release notes](https://github.com/Azure/go-autorest/releases)
- [Changelog](https://github.com/Azure/go-autorest/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Azure/go-autorest/compare/autorest/v0.11.21...autorest/v0.11.22)

---
updated-dependencies:
- dependency-name: github.com/Azure/go-autorest/autorest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 06:25:10 -08:00
dependabot[bot] 9b4a90d053
build(deps): bump github.com/aws/aws-sdk-go from 1.41.14 to 1.41.19 (#4967)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.41.14 to 1.41.19.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.41.14...v1.41.19)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-08 06:24:57 -08:00
ZhangJian He ac83f05338
coredns now need golang1.6 to compile (#4964) 2021-11-06 19:34:59 -07:00
dependabot[bot] f60fabc875
build(deps): bump google.golang.org/api from 0.59.0 to 0.60.0 (#4953)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.59.0 to 0.60.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.59.0...v0.60.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-01 09:15:05 -07:00
Hu Shuai 8a7f4df2a1
Fix a typo in plugin/transfer/README.md (#4946)
Signed-off-by: Hu Shuai <hus.fnst@cn.fujitsu.com>
2021-11-01 11:06:13 -04:00
dependabot[bot] 3510261efe
build(deps): bump k8s.io/client-go from 0.22.2 to 0.22.3 (#4951) 2021-11-01 07:03:36 -07:00
dependabot[bot] ed64fbd875
build(deps): bump github.com/aws/aws-sdk-go from 1.41.9 to 1.41.14 (#4950) 2021-11-01 07:03:02 -07:00
dependabot[bot] eb62aec562
build(deps): bump github.com/openzipkin/zipkin-go from 0.2.2 to 0.3.0 (#4949) 2021-11-01 07:02:39 -07:00
Pavol Lieskovský 5934c7e89e
plugin/metrics: support HTTPS qType in requests count metric label (#4934)
Automatically submitted.
2021-10-28 08:50:23 +00:00
Denis Tingaikin de21fb2436
plugin/k8s_external: fix SRV queries doesn't work with AWS ELB/NLB (#4929)
* fix for issue #4927

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* apply review comments

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* apply review comments

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
2021-10-27 09:59:21 -04:00
dependabot[bot] 6a6905c16c
build(deps): bump k8s.io/klog/v2 from 2.20.0 to 2.30.0 (#4938) 2021-10-25 17:59:35 -07:00
dependabot[bot] 334179f054
build(deps): bump github.com/aws/aws-sdk-go from 1.41.4 to 1.41.9 (#4937)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.41.4 to 1.41.9.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.41.4...v1.41.9)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 07:21:16 -07:00
dependabot[bot] 008868ab8f
build(deps): bump google.golang.org/api from 0.58.0 to 0.59.0 (#4936)
Bumps [google.golang.org/api](https://github.com/googleapis/google-api-go-client) from 0.58.0 to 0.59.0.
- [Release notes](https://github.com/googleapis/google-api-go-client/releases)
- [Changelog](https://github.com/googleapis/google-api-go-client/blob/master/CHANGES.md)
- [Commits](https://github.com/googleapis/google-api-go-client/compare/v0.58.0...v0.59.0)

---
updated-dependencies:
- dependency-name: google.golang.org/api
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 07:21:02 -07:00
dependabot[bot] 41645e9e2d
build(deps): bump github.com/prometheus/common from 0.31.1 to 0.32.1 (#4935)
Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.31.1 to 0.32.1.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](https://github.com/prometheus/common/compare/v0.31.1...v0.32.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-25 07:20:28 -07:00
Wu Shuang 4a7565ff63
plugin/pkg/cache: fix data race (#4932) 2021-10-23 20:17:47 -07:00
dependabot[bot] 2a3f7c93d6
build(deps): bump github.com/aws/aws-sdk-go from 1.40.59 to 1.41.4 (#4924)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.59 to 1.41.4.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.40.59...v1.41.4)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 09:54:12 -07:00
dependabot[bot] 7d235c9638
build(deps): bump go.etcd.io/etcd/client/v3 from 3.5.0 to 3.5.1 (#4925)
Bumps [go.etcd.io/etcd/client/v3](https://github.com/etcd-io/etcd) from 3.5.0 to 3.5.1.
- [Release notes](https://github.com/etcd-io/etcd/releases)
- [Changelog](https://github.com/etcd-io/etcd/blob/main/CHANGELOG-3.5.md)
- [Commits](https://github.com/etcd-io/etcd/compare/v3.5.0...v3.5.1)

---
updated-dependencies:
- dependency-name: go.etcd.io/etcd/client/v3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-18 09:53:50 -07:00
Zou Nengren 5191959bd7
cleanup deprecated package io/ioutil (#4920)
Signed-off-by: zounengren <zouyee1989@gmail.com>
2021-10-13 09:30:31 +02:00
dependabot[bot] 44fcca0e0d
build(deps): bump github.com/aws/aws-sdk-go from 1.40.54 to 1.40.59 (#4919)
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.40.54 to 1.40.59.
- [Release notes](https://github.com/aws/aws-sdk-go/releases)
- [Changelog](https://github.com/aws/aws-sdk-go/blob/main/CHANGELOG.md)
- [Commits](https://github.com/aws/aws-sdk-go/compare/v1.40.54...v1.40.59)

---
updated-dependencies:
- dependency-name: github.com/aws/aws-sdk-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-11 06:39:33 -07:00
coredns[bot] 5b65a58d48 auto go fmt
Signed-off-by: coredns[bot] <bot@bot.coredns.io>
2021-10-11 10:28:01 +00:00
Vector 0f5e7bdfb3
plugin/forward: Use new msg.Id for upstream queries (#4841)
* restore 1.8.3 question revert logic; add tests (#4840)

Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
Signed-off-by: Vector <815926354@qq.com>

* change origin message id

Signed-off-by: Vector <815926354@qq.com>
Signed-off-by: IIvyPy <815926354@qq.com>

* Revert "restore 1.8.3 question revert logic; add tests (#4840)"

This reverts commit 95e44d91d03452556f5a8af64371fcf5f0b642d0.

Signed-off-by: IIvyPy <815926354@qq.com>

Co-authored-by: Chris O'Haver <cohaver@infoblox.com>
2021-10-08 19:34:22 +02:00
Miek Gieben 2c575a3d89
notes fix (#4915)
* Notes require date that is quoted

Signed-off-by: Miek Gieben <miek@miek.nl>

* Fix

Signed-off-by: Miek Gieben <miek@miek.nl>
2021-10-08 13:32:43 -04:00
Johnny Bergström 9af2dc11f9
Enable HTTP/2 in grpc service (#4842)
Signed-off-by: Johnny Bergström <johnny@klaudify.se>
2021-10-08 15:56:33 +02:00
Chris O'Haver d95a82350b
Revert "fix: specifiy platform in docker build command (#4897)" (#4910)
This reverts commit 4e80ac5b28.
2021-10-07 09:14:45 -04:00
Yong Tang 13a9191efb
Update 1.8.6 release note and prepare for release (#4909)
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2021-10-06 20:04:34 -04:00
Chris O'Haver 31c5532380
bump version (#4895)
Signed-off-by: Chris O'Haver <cohaver@infoblox.com>
2021-10-06 16:54:34 -07:00