Skip to content

handle .scope postfix when parsing cgroup#263

Merged
pavolloffay merged 1 commit intomainfrom
scoped_container_id
Feb 14, 2021
Merged

handle .scope postfix when parsing cgroup#263
pavolloffay merged 1 commit intomainfrom
scoped_container_id

Conversation

@davexroth
Copy link
Copy Markdown
Contributor

Description

While parsing /proc/self/cgroup to obtain the containerId, it's possible there is a .scope postfix, such as crio-736665661f3cf3ec691b2feeb2a1ec78918c0ef65381160bbb04f4c298169679.scope which breaks our current parser.

Testing

Tested in openshift and gke clusters

Checklist:

  • [X ] My changes generate no new warnings
  • [X ] I have added tests that prove my fix is effective or that my feature works
  • [X ] Any dependent changes have been merged and published in downstream modules

@pavolloffay pavolloffay merged commit c1c40f4 into main Feb 14, 2021
@pavolloffay pavolloffay deleted the scoped_container_id branch February 14, 2021 17:20
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.

2 participants