@@ -126,7 +126,7 @@ var ExpKeyFunc = func(obj interface{}) (string, error) {
126
126
if e , ok := obj .(* ControlleeExpectations ); ok {
127
127
return e .key , nil
128
128
}
129
- return "" , fmt .Errorf ("Could not find key for obj %#v" , obj )
129
+ return "" , fmt .Errorf ("could not find key for obj %#v" , obj )
130
130
}
131
131
132
132
// ControllerExpectationsInterface is an interface that allows users to set and wait on expectations.
@@ -291,7 +291,7 @@ var UIDSetKeyFunc = func(obj interface{}) (string, error) {
291
291
if u , ok := obj .(* UIDSet ); ok {
292
292
return u .key , nil
293
293
}
294
- return "" , fmt .Errorf ("Could not find key for obj %#v" , obj )
294
+ return "" , fmt .Errorf ("could not find key for obj %#v" , obj )
295
295
}
296
296
297
297
// UIDSet holds a key and a set of UIDs. Used by the
@@ -627,7 +627,7 @@ func (f *FakePodControl) CreatePods(namespace string, spec *v1.PodTemplateSpec,
627
627
defer f .Unlock ()
628
628
f .CreateCallCount ++
629
629
if f .CreateLimit != 0 && f .CreateCallCount > f .CreateLimit {
630
- return fmt .Errorf ("Not creating pod, limit %d already reached (create call %d)" , f .CreateLimit , f .CreateCallCount )
630
+ return fmt .Errorf ("not creating pod, limit %d already reached (create call %d)" , f .CreateLimit , f .CreateCallCount )
631
631
}
632
632
f .Templates = append (f .Templates , * spec )
633
633
if f .Err != nil {
@@ -641,7 +641,7 @@ func (f *FakePodControl) CreatePodsWithControllerRef(namespace string, spec *v1.
641
641
defer f .Unlock ()
642
642
f .CreateCallCount ++
643
643
if f .CreateLimit != 0 && f .CreateCallCount > f .CreateLimit {
644
- return fmt .Errorf ("Not creating pod, limit %d already reached (create call %d)" , f .CreateLimit , f .CreateCallCount )
644
+ return fmt .Errorf ("not creating pod, limit %d already reached (create call %d)" , f .CreateLimit , f .CreateCallCount )
645
645
}
646
646
f .Templates = append (f .Templates , * spec )
647
647
f .ControllerRefs = append (f .ControllerRefs , * controllerRef )
@@ -656,7 +656,7 @@ func (f *FakePodControl) CreatePodsOnNode(nodeName, namespace string, template *
656
656
defer f .Unlock ()
657
657
f .CreateCallCount ++
658
658
if f .CreateLimit != 0 && f .CreateCallCount > f .CreateLimit {
659
- return fmt .Errorf ("Not creating pod, limit %d already reached (create call %d)" , f .CreateLimit , f .CreateCallCount )
659
+ return fmt .Errorf ("not creating pod, limit %d already reached (create call %d)" , f .CreateLimit , f .CreateCallCount )
660
660
}
661
661
f .Templates = append (f .Templates , * template )
662
662
f .ControllerRefs = append (f .ControllerRefs , * controllerRef )
@@ -920,7 +920,7 @@ func AddOrUpdateTaintOnNode(c clientset.Interface, nodeName string, taints ...*v
920
920
for _ , taint := range taints {
921
921
curNewNode , ok , err := taintutils .AddOrUpdateTaint (oldNodeCopy , taint )
922
922
if err != nil {
923
- return fmt .Errorf ("Failed to update taint of node! " )
923
+ return fmt .Errorf ("failed to update taint of node" )
924
924
}
925
925
updated = updated || ok
926
926
newNode = curNewNode
@@ -977,7 +977,7 @@ func RemoveTaintOffNode(c clientset.Interface, nodeName string, node *v1.Node, t
977
977
for _ , taint := range taints {
978
978
curNewNode , ok , err := taintutils .RemoveTaint (oldNodeCopy , taint )
979
979
if err != nil {
980
- return fmt .Errorf ("Failed to remove taint of node! " )
980
+ return fmt .Errorf ("failed to remove taint of node" )
981
981
}
982
982
updated = updated || ok
983
983
newNode = curNewNode
@@ -1021,7 +1021,7 @@ func WaitForCacheSync(controllerName string, stopCh <-chan struct{}, cacheSyncs
1021
1021
klog .Infof ("Waiting for caches to sync for %s controller" , controllerName )
1022
1022
1023
1023
if ! cache .WaitForCacheSync (stopCh , cacheSyncs ... ) {
1024
- utilruntime .HandleError (fmt .Errorf ("Unable to sync caches for %s controller" , controllerName ))
1024
+ utilruntime .HandleError (fmt .Errorf ("unable to sync caches for %s controller" , controllerName ))
1025
1025
return false
1026
1026
}
1027
1027
0 commit comments