kubespray/roles/kubernetes/preinstall
Slavi Pantaleev cc03ca62be
Avoid empty "supersede domain-name-servers" directives for dhclient.conf (#10948)
Fixes https://github.com/kubernetes-sigs/kubespray/issues/10947

This patch aims to be minimal and intentionally:

- does not change the generation logic for `supersede_domain` and `supersede_search`
- does not change how `nameserverentries` (for NetworkManager) is built

It seems like `nameserverentries` in the "Generate nameservers for resolvconf, including cluster DNS"
task is built the same way as `dhclient_supersede_nameserver_entries_list`.
However, `nameserverentries` in the "Generate nameservers for resolvconf, not including cluster DNS"
task (below) is built differently for some reason. It includes `configured_nameservers` as well.
Due to these differences, I have refrained from reusing the same building logic
(`dhclient_supersede_nameserver_entries_list`) for both.

If the `configured_nameservers` addition can be removed or made to apply
to dhclient as well, we could potentially build a single list and then
generate the `nameserverentries` and `supersede_nameserver` strings from it.
2024-08-06 03:38:51 -07:00
..
defaults Merge pull request #11131 from VannTen/design/modular_pkgs_install 2024-04-30 00:20:24 -07:00
files Add `enabled` to pkgs to handle ipvs 2024-04-29 21:22:23 +02:00
handlers Refactor "multi" handlers to use listen (#10542) 2023-11-08 12:28:30 +01:00
meta remove atomic support because reached end of live (#5783) 2020-03-17 14:31:27 -07:00
tasks Avoid empty "supersede domain-name-servers" directives for dhclient.conf (#10948) 2024-08-06 03:38:51 -07:00
templates ntp: add config to filter and set ntp interfaces (#11066) 2024-04-25 07:51:45 -07:00
vars Fix CentOS typo (#11161) 2024-05-05 19:52:18 -07:00