Ⅰ. Issue Description
For compatibility with the two versions of kubernetes CRI, we have maintained two pieces of code temporarily. Now it is time to optimize it. Actually, we have to maintain two pieces of code to some extent, but we can extract the common part to reduce redundancy. It is necessary even will take a lot of effort.
Ⅱ. Describe what happened
as above
Ⅲ. Describe what you expected to happen
reduce the code redundancy
Ⅳ. How to reproduce it (as minimally and precisely as possible)
None
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
- pouch version (use
pouch version):
- OS (e.g. from /etc/os-release):
- Kernel (e.g.
uname -a):
- Install tools:
- Others: