@@ -127,7 +127,7 @@ func (c *Controller) processNextWorkItem() bool {
127
127
128
128
pvcNamespace , pvcName , err := cache .SplitMetaNamespaceKey (pvcKey .(string ))
129
129
if err != nil {
130
- utilruntime .HandleError (fmt .Errorf ("Error parsing PVC key %q: %v" , pvcKey , err ))
130
+ utilruntime .HandleError (fmt .Errorf ("error parsing PVC key %q: %v" , pvcKey , err ))
131
131
return true
132
132
}
133
133
@@ -233,7 +233,7 @@ func (c *Controller) askInformer(pvc *v1.PersistentVolumeClaim) (bool, error) {
233
233
234
234
pods , err := c .podLister .Pods (pvc .Namespace ).List (labels .Everything ())
235
235
if err != nil {
236
- return false , fmt .Errorf ("Cache -based list of pods failed while processing %s/%s: %s" , pvc .Namespace , pvc .Name , err .Error ())
236
+ return false , fmt .Errorf ("cache -based list of pods failed while processing %s/%s: %s" , pvc .Namespace , pvc .Name , err .Error ())
237
237
}
238
238
239
239
for _ , pod := range pods {
@@ -251,7 +251,7 @@ func (c *Controller) askAPIServer(pvc *v1.PersistentVolumeClaim) (bool, error) {
251
251
252
252
podsList , err := c .client .CoreV1 ().Pods (pvc .Namespace ).List (metav1.ListOptions {})
253
253
if err != nil {
254
- return false , fmt .Errorf ("Live list of pods failed: %s" , err .Error ())
254
+ return false , fmt .Errorf ("live list of pods failed: %s" , err .Error ())
255
255
}
256
256
257
257
for _ , pod := range podsList .Items {
@@ -288,7 +288,7 @@ func (c *Controller) pvcAddedUpdated(obj interface{}) {
288
288
}
289
289
key , err := cache .MetaNamespaceKeyFunc (pvc )
290
290
if err != nil {
291
- utilruntime .HandleError (fmt .Errorf ("Couldn 't get key for Persistent Volume Claim %#v: %v" , pvc , err ))
291
+ utilruntime .HandleError (fmt .Errorf ("couldn 't get key for Persistent Volume Claim %#v: %v" , pvc , err ))
292
292
return
293
293
}
294
294
klog .V (4 ).Infof ("Got event on PVC %s" , key )
@@ -322,12 +322,12 @@ func (*Controller) parsePod(obj interface{}) *v1.Pod {
322
322
if ! ok {
323
323
tombstone , ok := obj .(cache.DeletedFinalStateUnknown )
324
324
if ! ok {
325
- utilruntime .HandleError (fmt .Errorf ("Couldn 't get object from tombstone %#v" , obj ))
325
+ utilruntime .HandleError (fmt .Errorf ("couldn 't get object from tombstone %#v" , obj ))
326
326
return nil
327
327
}
328
328
pod , ok = tombstone .Obj .(* v1.Pod )
329
329
if ! ok {
330
- utilruntime .HandleError (fmt .Errorf ("Tombstone contained object that is not a Pod %#v" , obj ))
330
+ utilruntime .HandleError (fmt .Errorf ("tombstone contained object that is not a Pod %#v" , obj ))
331
331
return nil
332
332
}
333
333
}
0 commit comments