Merge pull request #101449 from CaoDonghui123/fix5

kubeadm: allow passing the flag --log-file if --config is passed
This commit is contained in:
Kubernetes Prow Robot 2021-06-21 20:43:57 -07:00 committed by GitHub
commit e78e692f33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,7 +568,7 @@ func isAllowedFlag(flagName string) bool {
kubeadmcmdoptions.KubeconfigDir,
kubeadmcmdoptions.UploadCerts,
kubeadmcmdoptions.Patches,
"print-join-command", "rootfs", "v")
"print-join-command", "rootfs", "v", "log-file")
if allowedFlags.Has(flagName) {
return true
}