Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use reflect.DeepEqual for CoreDNS config comparison
Since k0s uses a PDB for CoreDNS, the simple double equals equality check wasn't appropriate to check if the CoreDNS configuration has changed. The struct now contains a pointer which is always different for newly constructed structs. This caused a useless manifest regeneration every ten seconds. Fixes: c802ffd ("Add a PodDisruptionBudget for CoreDNS") Signed-off-by: Tom Wieczorek <[email protected]>
- Loading branch information