mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Use better error var name in kube-proxy code (#72849)
* Use better error var name in kube-proxy code Signed-off-by: hchiramm <hchiramm@redhat.com> * Unexport ErrReadOnlySysFS error variable Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
3ed638b233
commit
a2daf66a0d
@@ -211,7 +211,7 @@ func startPersistentVolumeBinderController(ctx ControllerContext) (http.Handler,
|
||||
|
||||
func startAttachDetachController(ctx ControllerContext) (http.Handler, bool, error) {
|
||||
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")
|
||||
// csiClient works with CRDs that support json only
|
||||
|
||||
Reference in New Issue
Block a user