Skip to content

Commit

Permalink
Merge pull request #27 from chrisohaver/lesslame
Browse files Browse the repository at this point in the history
Reduce lameduck to 5s
  • Loading branch information
rajansandeep authored Nov 12, 2019
2 parents 6b2f0c7 + 60454e4 commit aa9e54b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions migration/migrate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func TestMigrate(t *testing.T) {
expectedCorefile: `.:53 {
errors
health {
lameduck 12s
lameduck 5s
}
ready
kubernetes cluster.local in-addr.arpa ip6.arpa {
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestMigrate(t *testing.T) {
expectedCorefile: `.:53 {
errors
health {
lameduck 12s
lameduck 5s
}
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
Expand Down
4 changes: 2 additions & 2 deletions migration/versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ var Versions = map[string]release{
defaultConf: `.:53 {
errors
health {
lameduck 12s
lameduck 5s
}
kubernetes * *** {
pods insecure
Expand Down Expand Up @@ -132,7 +132,7 @@ var Versions = map[string]release{
"lameduck": {
status: newdefault,
add: func(c *corefile.Plugin) (*corefile.Plugin, error) {
return addOptionToPlugin(c, &corefile.Option{Name: "lameduck 12s"})
return addOptionToPlugin(c, &corefile.Option{Name: "lameduck 5s"})
},
downAction: removeOption,
},
Expand Down

0 comments on commit aa9e54b

Please sign in to comment.