Commit 7d62a09
authored
feat: support smooth upgrade with checking csi sock (#10)
When the model CSI driver is deployed as a DaemonSet pod, newly created
pod may delete the sock file that the old pod was listening on. If the
new pod hasn't started properly yet, this causes a period of service
unavailability.
This change adds a check to verify if the sock file exists and is
listening, if it is, the new pod will exit with an error.
Signed-off-by: imeoer <[email protected]>1 parent f862f46 commit 7d62a09
1 file changed
+23
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
59 | 73 | | |
60 | 74 | | |
61 | 75 | | |
| |||
110 | 124 | | |
111 | 125 | | |
112 | 126 | | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
113 | 136 | | |
114 | 137 | | |
115 | 138 | | |
| |||
0 commit comments