How can I find the version of the 'sriov' cni plugin installed on a Kubernetes cluster?
I've tried the commands below but they fail.
/opt/cni/bin# ./sriov --version
{
"code": 4,
"msg": "required env variables [CNI_COMMAND] missing"
}
How can I find the version of the 'sriov' cni plugin installed on a Kubernetes cluster?
I've tried the commands below but they fail.
/opt/cni/bin# ./sriov --version
{
"code": 4,
"msg": "required env variables [CNI_COMMAND] missing"
}
The CNI Protocol parameters are passed to the plugins via OS environment variables.
CNI_COMMAND: indicates the desired operation; ADD, DEL, CHECK, GC, or VERSION. Refer: https://github.com/containernetworking/cni/blob/main/SPEC.md#version-probe-plugin-version-support
So the following command worked.
/opt/cni/bin# export CNI_COMMAND=VERSION; ./sriov --version
{"cniVersion":"1.0.0","supportedVersions":["0.1.0","0.2.0","0.3.0","0.3.1","0.4.0","1.0.0"]}