mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #93919 from azush26/modify-format
Modify the warning message format from "%d" to "%v" in shared_informer.go.
This commit is contained in:
commit
d1590e70e8
@ -485,13 +485,13 @@ func (s *sharedIndexInformer) AddEventHandlerWithResyncPeriod(handler ResourceEv
|
|||||||
|
|
||||||
if resyncPeriod > 0 {
|
if resyncPeriod > 0 {
|
||||||
if resyncPeriod < minimumResyncPeriod {
|
if resyncPeriod < minimumResyncPeriod {
|
||||||
klog.Warningf("resyncPeriod %d is too small. Changing it to the minimum allowed value of %d", resyncPeriod, minimumResyncPeriod)
|
klog.Warningf("resyncPeriod %v is too small. Changing it to the minimum allowed value of %v", resyncPeriod, minimumResyncPeriod)
|
||||||
resyncPeriod = minimumResyncPeriod
|
resyncPeriod = minimumResyncPeriod
|
||||||
}
|
}
|
||||||
|
|
||||||
if resyncPeriod < s.resyncCheckPeriod {
|
if resyncPeriod < s.resyncCheckPeriod {
|
||||||
if s.started {
|
if s.started {
|
||||||
klog.Warningf("resyncPeriod %d is smaller than resyncCheckPeriod %d and the informer has already started. Changing it to %d", resyncPeriod, s.resyncCheckPeriod, s.resyncCheckPeriod)
|
klog.Warningf("resyncPeriod %v is smaller than resyncCheckPeriod %v and the informer has already started. Changing it to %v", resyncPeriod, s.resyncCheckPeriod, s.resyncCheckPeriod)
|
||||||
resyncPeriod = s.resyncCheckPeriod
|
resyncPeriod = s.resyncCheckPeriod
|
||||||
} else {
|
} else {
|
||||||
// if the event handler's resyncPeriod is smaller than the current resyncCheckPeriod, update
|
// if the event handler's resyncPeriod is smaller than the current resyncCheckPeriod, update
|
||||||
|
Loading…
Reference in New Issue
Block a user