Commit c622bd7
Kailun Qin
[Feature] Add SGX unix socket detection support
In the current implementation, a new kubelet instance deletes all the existing
unix sockets under /var/lib/kubelet/device-plugins when it starts. Besides, the
SGX unix socket can be accidentally removed during ops.
To this end, we're proposing in this patch a detection mechanism for SGX device
plugin that will monitor the deletion of SGX unix socket, re-start the device
plugin grpc server and re-register itself with kubelet instance upon such an
event.
Signed-off-by: Kailun Qin <kailun.qkl@antfin.com>1 parent b50f094 commit c622bd7
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments