diff --git a/cmd/coredns.go b/cmd/coredns.go index ec19b46..b81a634 100644 --- a/cmd/coredns.go +++ b/cmd/coredns.go @@ -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" ) @@ -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 @@ -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() }