kubespray/roles/kubernetes-apps/ansible
k8s-infra-cherrypick-robot cd26b379fe
Fix the pretty-printing of (core|nodelocal)dns (#11723)
When using
dns_upstream_forward_extra_opts:
  prefer_udp: "" # the option as no value so use empty string to just
                 # put the key

This is rendered in the dns configmap as ($ for end-of-line)

...
  prefer_udp $
...

Note the trailing space.
This triggers https://github.com/kubernetes/kubernetes/issues/36222,
which makes the configmap hardly readable when editing them manually or
simply putting them in a yaml file for inspection.

Trim the concatenation of option + value to get rid of any trailing
space.

Co-authored-by: Max Gautier <mg@max.gautier.name>
2024-11-18 08:12:54 +00:00
..
defaults Make netchecker log levels configurable (#11334) 2024-07-28 23:57:56 -07:00
tasks Do not use ‘yes/no’ for boolean values (#11472) 2024-08-28 06:30:56 +01:00
templates Fix the pretty-printing of (core|nodelocal)dns (#11723) 2024-11-18 08:12:54 +00:00