diff --git a/pkg/kubeadm/cmd/cmd.go b/pkg/kubeadm/cmd/cmd.go index 04b51034ed..8fbebe62a9 100644 --- a/pkg/kubeadm/cmd/cmd.go +++ b/pkg/kubeadm/cmd/cmd.go @@ -77,6 +77,9 @@ func NewKubeadmCommand(f *cmdutil.Factory, in io.Reader, out, err io.Writer, env // be written to disc and write it all in one go at the end as we have a lot of // crapy little files written from different parts of this code; this could also // be useful for testing + // by having this model we can allow users to create some files before `kubeadm init` runs, e.g. PKI assets, we + // would then be able to look at files users has given an diff or validate if those are sane, we could also warn + // if any of the files had been deprecated s := new(kubeadmapi.KubeadmConfig) s.EnvParams = envParams