Skip to content

Commit

Permalink
fix'--log-file only works if --logtostderr=false'
Browse files Browse the repository at this point in the history
  • Loading branch information
CaoDonghui123 committed Jun 22, 2021
1 parent f880187 commit 25f479c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/kubeadm/app/apis/kubeadm/validation/validation.go
Expand Up @@ -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
}
Expand Down

0 comments on commit 25f479c

Please sign in to comment.