【kubernetes/k8s源码分析】 k8s csi plugin attacher源码分析

    接着

 

func (p *csiPlugin) NewAttacher() (volume.Attacher, error) {
	k8s := p.host.GetKubeClient()
	if k8s == nil {
		klog.Error(log("unable to get kubernetes client from host"))
		return nil, errors.New("unable to get Kubernetes client")
	}

	return &csiAttacher{
		plugin:        p,
		k8s:           k8s,
		waitSleepTime: 1 * time.Second,
	}, nil
}

 

上一篇:Unable to load DLL 'XXX.dll': The specified module could not be found.


下一篇:chrome新版浏览器Unable to preventDefault inside passive event listener due to... 暂时解决方案