k8snetworkplumbingwg / ib-sriov-cni

InfiniBand SR-IOV CNI
Other
40 stars 27 forks source link

Optionally avoid sleeping in entrypoint.sh #83

Closed zeeke closed 5 months ago

zeeke commented 5 months ago

Container image might be used as initcontainers in kubernetes Pods. In such scenarios, it's important for the image entrypoint to exits once the copy logic is completed. Otherwise, the pod would stuck in a PodInitializing phase.

Add Makefile rule image-test to check the integrity of the entrypoint.sh script.

https://kubernetes.io/docs/concepts/workloads/pods/init-containers/

refs:

zeeke commented 5 months ago

addressing the same comments as here: