mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 04:33:26 +00:00
fix error string should not be capitalized
This commit is contained in:
parent
c9e14c85f5
commit
e580a9e5fa
@ -214,7 +214,7 @@ func startPersistentVolumeBinderController(ctx ControllerContext) (http.Handler,
|
|||||||
|
|
||||||
func startAttachDetachController(ctx ControllerContext) (http.Handler, bool, error) {
|
func startAttachDetachController(ctx ControllerContext) (http.Handler, bool, error) {
|
||||||
if ctx.ComponentConfig.AttachDetachController.ReconcilerSyncLoopPeriod.Duration < time.Second {
|
if ctx.ComponentConfig.AttachDetachController.ReconcilerSyncLoopPeriod.Duration < time.Second {
|
||||||
return nil, true, fmt.Errorf("Duration time must be greater than one second as set via command line option reconcile-sync-loop-period")
|
return nil, true, fmt.Errorf("duration time must be greater than one second as set via command line option reconcile-sync-loop-period")
|
||||||
}
|
}
|
||||||
csiClientConfig := ctx.ClientBuilder.ConfigOrDie("attachdetach-controller")
|
csiClientConfig := ctx.ClientBuilder.ConfigOrDie("attachdetach-controller")
|
||||||
// csiClient works with CRDs that support json only
|
// csiClient works with CRDs that support json only
|
||||||
@ -252,7 +252,7 @@ func startVolumeExpandController(ctx ControllerContext) (http.Handler, bool, err
|
|||||||
ProbeExpandableVolumePlugins(ctx.ComponentConfig.PersistentVolumeBinderController.VolumeConfiguration))
|
ProbeExpandableVolumePlugins(ctx.ComponentConfig.PersistentVolumeBinderController.VolumeConfiguration))
|
||||||
|
|
||||||
if expandControllerErr != nil {
|
if expandControllerErr != nil {
|
||||||
return nil, true, fmt.Errorf("Failed to start volume expand controller : %v", expandControllerErr)
|
return nil, true, fmt.Errorf("failed to start volume expand controller : %v", expandControllerErr)
|
||||||
}
|
}
|
||||||
go expandController.Run(ctx.Stop)
|
go expandController.Run(ctx.Stop)
|
||||||
return nil, true, nil
|
return nil, true, nil
|
||||||
@ -408,7 +408,7 @@ func startGarbageCollectorController(ctx ControllerContext) (http.Handler, bool,
|
|||||||
ctx.InformersStarted,
|
ctx.InformersStarted,
|
||||||
)
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, true, fmt.Errorf("Failed to start the generic garbage collector: %v", err)
|
return nil, true, fmt.Errorf("failed to start the generic garbage collector: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Start the garbage collector.
|
// Start the garbage collector.
|
||||||
|
@ -178,7 +178,7 @@ func AttemptToLoadRecycler(path string, config *volume.VolumeConfig) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err = volume.ValidateRecyclerPodTemplate(recyclerPod); err != nil {
|
if err = volume.ValidateRecyclerPodTemplate(recyclerPod); err != nil {
|
||||||
return fmt.Errorf("Pod specification (%v): %v", path, err)
|
return fmt.Errorf("pod specification (%v): %v", path, err)
|
||||||
}
|
}
|
||||||
config.RecyclerPodTemplate = recyclerPod
|
config.RecyclerPodTemplate = recyclerPod
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user