mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-11-13 23:15:10 +00:00
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. kubeadm: Fix how kubeadm handles `.AuthorizationModes` and `.APIServerExtraArgs` **What this PR does / why we need it**: If _authorization-mode_ is configured as `--apiserver-extra-args` for kubeadm, than _authorization-mode_ argument gets duplicated in the static pod manifest file. ``` $ kubeadm alpha phase controlplane apiserver --apiserver-extra-args authorization-mode=AlwaysAllow $ grep authorization-mode /etc/kubernetes/manifests/kube-apiserver.yaml - --authorization-mode=AlwaysAllow - --authorization-mode=Node,RBAC ``` **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ``` /sig cluster-lifecycle /assign @fabriziopandini