Skip to content

Commit

Permalink
override coredns version
Browse files Browse the repository at this point in the history
  • Loading branch information
networkop committed Mar 26, 2022
1 parent 28f3326 commit 9125c93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cmd/coredns.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
package main

import (
"fmt"

_ "github.com/coredns/coredns/core/plugin"
_ "github.com/ori-edge/k8s_gateway"

"github.com/coredns/caddy"
"github.com/coredns/coredns/core/dnsserver"
"github.com/coredns/coredns/coremain"
)
Expand All @@ -13,6 +16,8 @@ var dropPlugins = map[string]bool{
"k8s_external": true,
}

const pluginVersion = "0.2.4"

func init() {
var directives []string
var alreadyAdded bool
Expand All @@ -34,5 +39,7 @@ func init() {
}

func main() {
// extend CoreDNS version with plugin details
caddy.AppVersion = fmt.Sprintf("%s+k8s_gateway-%s", coremain.CoreVersion, pluginVersion)
coremain.Run()
}

0 comments on commit 9125c93

Please sign in to comment.