Commit graph

65 commits

Author SHA1 Message Date
Miek Gieben
6b56a9c921
Tag version 1.3.1 (#2458)
Tag the 1.3.1 version.

Signed-off-by: Miek Gieben <miek@miek.nl>
2019-01-13 14:18:46 +00:00
Miek Gieben
c8f0e94026
Release 1.3.0 (#2399)
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-12-15 15:49:37 +00:00
Miek Gieben
9abbf4a4a0 map bool -> map struct{} (#2386)
This clear out the remaining map[x]bool usage and moves the bool to an
empty struct.

Two note worthy other changes:

* EnableChaos in the server is now also exported to make it show up in
  the documentation.
* The auto plugin is left as is, because there the boolean is
  explicitaly set to false to signal 'to-be-deleted' and the key is left
  as-is.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-12-10 02:17:15 -08:00
Miek Gieben
756749c5ca
Bump version to 1.2.6 (#2271)
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-11-04 18:06:20 +00:00
Miek Gieben
2456416444
logging: unify pkg/log and plugin/log (#2245)
Default to using pkg/log for all logging and use a fixed time prefix
which is RFC3339Millli (doesn't exist in time, so we just extended
RFC3339), i.e. Nano might be pushing it.

Logs go from:

2018/10/30 19:14:55 [INFO] CoreDNS-1.2.5
2018/10/30 19:14:55 [INFO] linux/amd64, go1.11,

to:

2018-10-30T19:10:07.547Z [INFO] CoreDNS-1.2.5
2018-10-30T19:10:07.547Z [INFO] linux/amd64, go1.11,

Which includes the timezone - which oddly the std log package doesn't
natively do.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-31 21:32:23 +00:00
Miek Gieben
204537b324
Bump version 1.2.5 (#2235)
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-24 20:54:37 +01:00
Miek Gieben
7343c7012f
Release: bump version to 1.2.4 (#2211)
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-17 22:53:01 +01:00
Miek Gieben
8cc8afa96a
Bump version to 1.2.3 (#2200)
Signed-off-by: Miek Gieben <miek@miek.nl>
2018-10-16 07:36:40 +01:00
Miek Gieben
eb51e8bac9
Bump version to 1.2.2 (#2067)
* Bump version to 1.2.2

Release 1.2.2

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

* Fix filename to what we upload

With ls dir/* the pathname returned are diff. then we with ls dir, fix
how curl is called.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-29 07:51:45 +01:00
Miek Gieben
554da015e7
release: up version to 1.2.1 (#2057)
up the version and add the man-pages.

Signed-off-by: Miek Gieben <miek@miek.nl>
2018-08-27 19:54:10 +01:00
Karsten Weiss
6d8a078704 Typo fixes (#2031) 2018-08-14 08:55:55 -07:00
Miek Gieben
2306721c23 Up release to 1.2.0 (#1958)
Automatically submitted.
2018-07-10 11:28:29 +00:00
Miek Gieben
41c724780f
remove deprecated code (#1888)
This removes:
* reverse plugin from plugin.cfg
* https_google option from proxy
* the -log flag
2018-06-20 11:35:07 +01:00
Miek Gieben
f78f30231d Release 1.1.4 2018-06-19 17:57:35 +01:00
Miek Gieben
2758a756dd
Implement deprecation notice for 1.1.4 (#1833)
* Implement deprecation notice for 1.1.4

This still allows all the config to be parsed, but noops it:

* -log; always set the log to stdout; no matter what.
* https_google; removed from the proxy implementation.
* reverse plugin: set to deprecated.

* Whole of reverse can go

* Remove test for deprecated plugin
2018-05-24 14:30:01 +01:00
Miek Gieben
b0fd575c65 Release 1.1.3 2018-05-24 08:00:16 +01:00
Silver
59dbcd32ea Signal handling breaks parent code (#1763) (#1764) 2018-05-03 08:57:38 +02:00
Miek Gieben
82d3195f2f
pkg/log usage in coremain as well (#1751) 2018-04-27 21:50:24 +01:00
Miek Gieben
582f91f3f3 Release 1.1.2 2018-04-23 13:44:33 +01:00
Miek Gieben
231c2c0ef3 Release 1.1.1 2018-03-25 17:22:09 +01:00
Miek Gieben
c8d9150079 Release 1.1.0 2018-03-13 14:46:16 +00:00
Miek Gieben
455040c143
doc: some function/vars/const/package level updates (#1558)
* doc: some function/vars/const/package level updates

Various update that stood out while reading godoc.org for CoreDNS.

* Fix some misspellings as well
2018-02-23 15:02:05 +00:00
Miek Gieben
83b5eadb4e Release 1.0.6 2018-02-22 09:07:59 +00:00
Miek Gieben
b89480b33f
Golint: make golint happy (#1433)
CoreVersion needs to be documented for golint, but we can't use too much
text because we grep this file for the coredns version.
2018-01-25 21:58:46 +00:00
Miek Gieben
aeacbf6e24
move flag blacklisting to main (#1431)
* move flag blacklisting to main

Doing it in init() is the wrong place or something else changed. Doing
it in main() makes it easy to see *when* this happens.

* keep trapsignals
2018-01-25 21:40:40 +00:00
Miek Gieben
ea95a2003a Release 1.0.5 2018-01-25 19:45:35 +00:00
Miek Gieben
482f9c4f14 Release is 1.0.5 2018-01-25 19:37:15 +00:00
Tobias Schmidt
b707438534 Add coredns_build_info metric (#1418)
In order to track the rollout status of CoreDNS versions, add the common
build_info metric.
2018-01-23 20:10:55 +00:00
Ruslan Drozhdzh
d4bf076ccf Emit InstanceStartupEvent after starting server (#1410) 2018-01-21 19:28:21 +00:00
Miek Gieben
62d9298401
Up version to 1.0.4 (#1404)
Due to the one-off nature of releases 1.0.4 we need to manually bump
the version in master.
2018-01-18 20:41:44 +00:00
Yong Tang
9d87b953a0 Enhancement of external plugin enabling (#1392)
This fix is an enhancement of external plugin enabling.
Previously, it was already able to build a customerized
coredns with plugins enabled selectively, without changing
coredns source code. However, all default plugins are
actually bundled because of the import rule:
```
"github.com/coredns/coredns/coremain"
```

The issue is best described with the following:
```
root@localhost:/go/src/github.com/coredns/coredns/sample# cat sample.go
package main

import (
        _ "github.com/coredns/forward"

        "github.com/coredns/coredns/coremain"
        "github.com/coredns/coredns/core/dnsserver"
)

var directives = []string{
        "forward",
        "startup",
        "shutdown",
}

func init() {
        dnsserver.Directives = directives
}

func main() {
        coremain.Run()
}
root@localhost:/go/src/github.com/coredns/coredns/sample#
root@localhost:/go/src/github.com/coredns/coredns/sample# go build -v sample.go
root@localhost:/go/src/github.com/coredns/coredns/sample# ./sample -plugins
root@localhost:/go/src/github.com/coredns/coredns/sample# ./sample -plugins
Server types:
  dns

Caddyfile loaders:
  flag
  default

Other plugins:
  dns.auto
  dns.autopath
  dns.bind
  dns.cache
  dns.chaos
  dns.debug
  dns.dnssec
  dns.dnstap
  dns.erratic
  dns.errors
  dns.etcd
  dns.federation
  dns.file
  dns.forward
  dns.health
  dns.hosts
  dns.kubernetes
  dns.loadbalance
  dns.log
  dns.nsid
  dns.pprof
  dns.prometheus
  dns.proxy
  dns.reverse
  dns.rewrite
  dns.root
  dns.route53
  dns.secondary
  dns.template
....
```

This fix moves zplugins.go to a different package/directory so that
it is possible to "only import plugins as needed".

The following is the new output after this fix:
```
root@localhost:/go/src/github.com/coredns/coredns/sample# ./sample -plugins
Server types:
  dns

Caddyfile loaders:
  flag
  default

Other plugins:
  dns.forward
  dns.prometheus
  shutdown
  startup

root@localhost:/go/src/github.com/coredns/coredns/sample#
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2018-01-15 21:54:10 +00:00
Miek Gieben
dc6c40740f Release 1.0.3 2018-01-10 19:47:55 +00:00
Miek Gieben
bce7f5fbec Release 1.0.2 2017-12-31 09:14:49 +00:00
Miek Gieben
99e163c375 Release 1.0.1 2017-12-11 16:49:43 +00:00
John Belamaric
a04eeb9c73 Release 1.0.0 2017-12-01 23:25:25 +00:00
Miek Gieben
d272e525b5 Release 0.9.10 2017-11-03 20:32:35 +00:00
Miek Gieben
4d6e9c3833 Release 0.9.9 2017-10-18 10:20:41 +00:00
Miek Gieben
1b60688dc8 Release 011 2017-09-10 19:26:47 +01:00
Yong Tang
c0d435d4e8 Fix log output of the version string. (#910)
Split version string into two, before:
```
2017/08/12 19:43:08 [INFO] CoreDNS-010
linux/amd64, go1.8.3, a6d2d7b5
CoreDNS-010
linux/amd64, go1.8.3, a6d2d7b5
```
After:
```
root@9bd51ffc39aa:/go/src/github.com/coredns/coredns# ./coredns
.:53
2017/08/12 19:12:59 [INFO] CoreDNS-010
2017/08/12 19:12:59 [INFO] linux/amd64, go1.8, a6d2d7b
CoreDNS-010
linux/amd64, go1.8, a6d2d7b
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-12 20:59:28 +01:00
Yong Tang
a09f208c51 Add git commit to the version output. (#900)
Now the output would be:
```
 ./coredns -version
CoreDNS-010
linux/amd64, go1.8, 241e3db
```
In case the local file has been modified, then the output would be (with --dirty):
```
 ./coredns -version
CoreDNS-010
linux/amd64, go1.8, 241e3db-dirty
```

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
2017-08-11 17:47:37 +01:00
John Belamaric
cf92a66573 Release 010 2017-07-25 11:11:41 -04:00
Miek Gieben
81315b0b3b Release 009 2017-07-17 14:49:39 +00:00
Ning Xie
817f3960b8 fix hard code about server type (#759) 2017-06-28 02:05:54 -07:00
Miek Gieben
9e463e0bca core: errors on junk in the command line (#744)
We would silently ignore anything that we couldn't parse on the command
line, this change make this an error.

Fixes #743
2017-06-20 12:01:10 -07:00
John Belamaric
5942f5dd5b Release 008 2017-06-14 17:47:04 -04:00
Miek Gieben
0d72efbbf9 core: -log bolean flag to enable logging (#726)
* core: -log bolean flag to enable logging

Change to -log flag to a boolean that defaults false and when true
logs to stdout.

* And bool here
2017-06-09 14:09:16 +01:00
Miek Gieben
024f56682d middleware/chaos: fix version (#669)
* middleware/chaos: fix version

Move the version setting into a init function so it is done early. Then
tweak the setup code for chaos a bit to correctly pick this version up.
Add an integration test to pick this up in the toplevel test/ directory.

Fixes #667

* Update tests
2017-05-22 08:09:35 -04:00
Miek Gieben
edcc0356b7 Release 007 2017-05-03 19:37:27 +01:00
Miek Gieben
703f516112 Release 006 2017-02-22 21:22:11 +00:00
Yong Tang
81af74aad0 Fix import path github.com/miekg/coredns -> github.com/coredns/coredns (#547)
This fix fixes import path from
`github.com/miekg/coredns`
->
`github.com/coredns/coredns`
2017-02-22 06:51:47 +00:00