Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optionally avoid sleeping in entrypoint.sh #83

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

zeeke
Copy link
Member

@zeeke zeeke commented Feb 2, 2024

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:

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/
Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
@zeeke
Copy link
Member Author

zeeke commented Feb 6, 2024

addressing the same comments as here:

Copy link
Collaborator

@SchSeba SchSeba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM nice work :)

@SchSeba SchSeba merged commit c7d4f7b into k8snetworkplumbingwg:master Feb 12, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants