mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
Merge pull request #65584 from neolit123/token-output
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>. apiserver: do not print feature gates for glog v=0 **What this PR does / why we need it**: Demand verbosity level > 0 for glog Infof() calls when setting feature gates in pkg/util/feature_gate.go. Without this, regular calls to things like `kubeadm token generate` would also print `feature_gate.go:230] feature gates: &{map[]}`. **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#953 **Special notes for your reviewer**: i doubt there is a particular reason to not use verbosity level here? is `v=1` sufficient here? /area apiserver /area kubeadm /kind cleanup /cc @kubernetes/sig-cluster-lifecycle-pr-reviews /cc @kubernetes/sig-api-machinery-pr-reviews **Release note**: ```release-note NONE ```
This commit is contained in:
commit
f0dcdd7622
@ -191,7 +191,7 @@ func (f *featureGate) Set(value string) error {
|
||||
f.known.Store(known)
|
||||
f.enabled.Store(enabled)
|
||||
|
||||
glog.Infof("feature gates: %v", enabled)
|
||||
glog.V(1).Infof("feature gates: %v", enabled)
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -227,7 +227,7 @@ func (f *featureGate) SetFromMap(m map[string]bool) error {
|
||||
f.known.Store(known)
|
||||
f.enabled.Store(enabled)
|
||||
|
||||
glog.Infof("feature gates: %v", f.enabled)
|
||||
glog.V(1).Infof("feature gates: %v", f.enabled)
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user