mirror of
https://github.com/outbackdingo/kubernetes.git
synced 2026-02-10 13:00:42 +00:00
Automatic merge from submit-queue (batch tested with PRs 64881, 64885). 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>. Fix output of `kubeadm migrate config` The output should always be valid kubeadmapi.MasterConfiguration YAML. The general problem was that we printed with fmt.Fprintf but it turns out some of the default values have `%`s in them so this caused Go to think we were missing values that we wanted substituted. We don't want to do any substitution here. Signed-off-by: Chuck Ha <ha.chuck@gmail.com> **What this PR does / why we need it**: This PR fixes a small bug that cause kubeadm migrate config to print YAML that was not valid. **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 kubernetes/kubeadm#904 ```release-note NONE ``` /cc @luxas @timothysc