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

kubernetes: detect more 'pause' containers #3743

Merged
merged 2 commits into from
Jan 23, 2020
Merged

kubernetes: detect more 'pause' containers #3743

merged 2 commits into from
Jan 23, 2020

Conversation

bboreham
Copy link
Collaborator

Dockershim has added a label io.kubernetes.docker.type for at least four years, where the pause container is of type podsandbox. This should be more reliable than trying to keep up with everyone's name for the pause container.

I don't like the way we do this in two places (one probe, one app), but it seemed a bit complicated to unwind that right now.

I left in the old name-based code just in case; I don't think it is necessary any more.

Dockershim has added a label `io.kubernetes.docker.type` for at least
four years, where the pause container is of type `podsandbox`.  This
should be more reliable than trying to keep up with everyone's name
for the pause container.
@bboreham
Copy link
Collaborator Author

bboreham commented Jan 15, 2020

I added a unit test.

@bboreham bboreham merged commit 53297eb into master Jan 23, 2020
@bboreham bboreham deleted the more-pause branch January 23, 2020 14:43
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.

1 participant