dataDir returns pod metadata dir maintained by CRI plugin.
()
| 764 | |
| 765 | // dataDir returns pod metadata dir maintained by CRI plugin. |
| 766 | func (pCtx *podTCtx) dataDir() string { |
| 767 | t := pCtx.t |
| 768 | |
| 769 | cfg := criRuntimeInfo(t, pCtx.rSvc) |
| 770 | rootDir := cfg["rootDir"].(string) |
| 771 | return filepath.Join(rootDir, "sandboxes", pCtx.id) |
| 772 | } |
| 773 | |
| 774 | // imageVolumeDir returns the image volume directory for this pod. |
| 775 | func (pCtx *podTCtx) imageVolumeDir() string { |
no test coverage detected