Remove --auth-anonymous if kube_api_anonymous_auth is undefined. (#12353)

Remove --auth-anonymous if kube_api_anonymous_auth in undefined, to avoid
compatibility errors with other arguments of the kube-apiserver, such as
--authentication-config when anonymous field is configured.
This commit is contained in:
Psycho Mantys
2025-07-27 00:20:27 -03:00
committed by GitHub
parent 96c39ae7fd
commit 5b1334102b
3 changed files with 7 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ ping_access_ip: true
# Setting this value to false will fail
# For details, read this comment https://github.com/kubernetes-sigs/kubespray/pull/11016#issuecomment-2004985001
# if kube_api_anonymous_auth: "{{ undef() }}", remove --anonymous-auth argument
kube_api_anonymous_auth: true
# Default value, but will be set to true automatically if detected