This pull request aims to add an option to change logic of dns host resolving.
In my scenario, when I scale the K8s cluster down then extra replicas will be deleted, and its dns records will be deleted too. With the given state of affairs, I need to update host list on every pod to evade errors:
but I think it's preferable in the situation to ignore a part of those hosts to improve reliability. In other words, I want to pass my own host resolve logic in DNSHostProvider. In my opinion, a constructor is the best way to achieve this.
This pull request aims to add an option to change logic of dns host resolving.
In my scenario, when I scale the K8s cluster down then extra replicas will be deleted, and its dns records will be deleted too. With the given state of affairs, I need to update host list on every pod to evade errors:
but I think it's preferable in the situation to ignore a part of those hosts to improve reliability. In other words, I want to pass my own host resolve logic in DNSHostProvider. In my opinion, a constructor is the best way to achieve this.