If private hosted zone is used (it is not supported at the moment but it does not matter) the operator panics when trying to access nameservers. The private hosted zones do not have them. Improve the error handling so that operator does not crash and proper message is shown in logs.
If private hosted zone is used (it is not supported at the moment but it does not matter) the operator panics when trying to access nameservers. The private hosted zones do not have them. Improve the error handling so that operator does not crash and proper message is shown in logs.
This issue was observed for v0.1.0 tag, the affected code: https://github.com/Kuadrant/dns-operator/blob/515b614d70e569a408c2a3c8e262f18337a7abac/internal/provider/aws/aws.go#L167
Note that the private hosted zone can look like this:
In particular there is no DelegationSet nor NameServers there as it would for public zone, e.g.:
The error in policy-controller pod logs looks like:
This issue was created upon request in this slack thread: https://kubernetes.slack.com/archives/C05J0D0V525/p1710844895665569