kubernetes: Add useragent (#6484)

In kubernetes' audit logs you'll see:

"userAgent":"coredns/v0.0.0 (linux/amd64) kubernetes/$Format"

This change adds a userAgent to the requests made by CoreDNS against the kubernetes API:

"userAgent":"CoreDNS/v1.11.1 git_commit:ae2bbc29be1aaae0b3ded5d188968a6c97bb3144 (linux/amd64/go1.22)"

Signed-off-by: Manuel Rüger <manuel@rueg.eu>
This commit is contained in:
Manuel Rüger
2024-08-26 22:45:39 +02:00
committed by GitHub
parent bb1e1b08d8
commit ebbbb453be
3 changed files with 6 additions and 2 deletions

View File

@@ -3,6 +3,6 @@ package coremain
// Various CoreDNS constants.
const (
CoreVersion = "1.11.3"
coreName = "CoreDNS"
CoreName = "CoreDNS"
serverType = "dns"
)