Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCPBUGS-32776: Fix IBM Public Cloud DNS Provider Update Logic
The IBM Public Cloud DNS provider (cis_provider.go) had a bug in `createOrUpdateDNSRecord` where it checked for the existence of a DNS record by filtering both DNS name and target. If the target was updated (e.g., due to a load balancer recreation), the logic would not match the existing DNS record. As a result, the function would attempt to create a new record, but fail because a record with that name already existed, as multiple DNS records with the same name are not allowed. The fix is to remove the filtering by target and rely solely on filtering by name, as the name is the only attribute that needs to be unique.
- Loading branch information