Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check public DNS zone when reporting status
When reporting the "DNSReady" status condition on an IngressController, check the status conditions for both the public zone and the private zone of the associated DNSRecord. Before this commit, only the status condition for the private zone was used to compute the "DNSReady" status condition. If the operator failed to publish a DNS record in the public zone, this failure was not reported in the IngressController's status conditions or the "ingress" clusteroperator status conditions. Follow-up to commit 9f32923. This commit fixes OCPBUGS-15978. https://issues.redhat.com/browse/OCPBUGS-15978 * pkg/operator/controller/ingress/status.go (checkZoneInConfig): Use the new zonesMatch helper function to check both the public zone as well as the private zone. (zonesMatch): New function. Return a Boolean value indicating whether two DNS zones match, based on their respective ID or "Name" tags. * pkg/operator/controller/ingress/status_test.go (TestZoneInConfig): Verify that checkZoneInConfig checks the public zone as well as the private zone.
- Loading branch information