k8gb-io / coredns-crd-plugin

CoreDNS plugin to use DNSEndpoint custom resource.
Apache License 2.0
21 stars 7 forks source link

Replace deprecated Normalize() call #22

Closed somaritane closed 2 years ago

somaritane commented 2 years ago

Replace deprecated plugin.Normalize() call with plugin.OriginsFromArgsOrServerBlock(), following the deprecation warning in the logs:

k8gb-coredns-f658bf78-lcv4d coredns [WARNING] An external plugin (/home/runner/work/coredns-crd-plugin/coredns-crd-plugin/setup.go line 84) is using the deprecated function Normalize. 
This will be removed in a future versions of CoreDNS. 
The plugin should be updated to use OriginsFromArgsOrServerBlock or NormalizeExact instead.

See https://github.com/coredns/coredns/pull/4648 for more information. Signed-off-by: Timofey Ilinykh timofey.ilinykh@absa.africa