File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6464 klog .Infof ("Inotify: %s created, restarting ..." , devicepluginapi .KubeletSocket )
6565 restart = true
6666 }
67+ if event .Name == deviceplugin .ServerSock && event .Op & fsnotify .Remove == fsnotify .Remove {
68+ klog .Infof ("Inotify: %s removed, restarting ..." , deviceplugin .ServerSock )
69+ restart = true
70+ }
6771
6872 case err := <- watcher .Errors :
6973 klog .Infof ("inotify: %s" , err )
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ const (
2121 // ResourceNameSGX is resource name registered to kubelet.
2222 ResourceNameSGX = vendor + "/sgx_epc_MiB"
2323
24- serverSock = devicepluginapi .DevicePluginPath + "/ sgx.sock"
24+ ServerSock = devicepluginapi .DevicePluginPath + "sgx.sock"
2525 envDisableHealthChecks = "DP_DISABLE_HEALTHCHECKS"
2626 allHealthChecks = "xids"
2727
@@ -42,7 +42,7 @@ func NewSGXDevicePlugin() (*SGXDevicePlugin, error) {
4242
4343 return & SGXDevicePlugin {
4444 devs : devs ,
45- socket : serverSock ,
45+ socket : ServerSock ,
4646
4747 stop : make (chan interface {}),
4848 health : make (chan * devicepluginapi.Device ),
You can’t perform that action at this time.
0 commit comments