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

Skip incomplete container info for container start #570

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

mstemm
Copy link
Contributor

@mstemm mstemm commented Apr 2, 2019

In the container_started macro, ensure that the container metadata is
complete after either the container event (very unlikely) or after the
exec of the first process into the container (very likely now that
container metadata fetches are async).

When using these rules with older falco versions, this macro will still
work as the synchronous container metadata fetch will result in a
repository that isn't "incomplete".

@mstemm mstemm requested a review from mattpag April 2, 2019 16:27
@mstemm mstemm force-pushed the skip-incomplete-container-started branch 2 times, most recently from 2cc6c64 to be46944 Compare April 2, 2019 16:59
In the container_started macro, ensure that the container metadata is
complete after either the container event (very unlikely) or after the
exec of the first process into the container (very likely now that
container metadata fetches are async).

When using these rules with older falco versions, this macro will still
work as the synchronous container metadata fetch will result in a
repository that isn't "incomplete".
@mstemm mstemm force-pushed the skip-incomplete-container-started branch from be46944 to 5e438d8 Compare April 2, 2019 17:44
Some test trace files used for regression tests didn't have full
container info, and once we started looking for those fields, the tests
stopped working.

So update the traces, and event counts to match.
@mstemm mstemm merged commit 19327e0 into dev Apr 2, 2019
@mstemm mstemm deleted the skip-incomplete-container-started branch April 2, 2019 22:12
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