gardener / external-dns-management

Environment to manage external DNS entries for a kubernetes cluster
Apache License 2.0
81 stars 67 forks source link

Fix panic if source object referenced by a DNSAnnotation object has no annotations #363

Closed MartinWeindel closed 6 months ago

MartinWeindel commented 6 months ago

What this PR does / why we need it: This PR fixes a panic ""assignment to entry in nil map" (assignment to entry in nil map)", if a DNS source object like a service or ingress object has no own annotations, but is referenced by a DNSAnnotation object.

Which issue(s) this PR fixes: Fixes #

Special notes for your reviewer:

Release note:

Fix panic if source object referenced by a DNSAnnotation object has no annotations in its metadata.