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

Use CONTAINER_NAME if set #1223

Merged
merged 1 commit into from
Feb 5, 2022
Merged

Use CONTAINER_NAME if set #1223

merged 1 commit into from
Feb 5, 2022

Conversation

ewhamilton
Copy link
Contributor

@ewhamilton ewhamilton commented Feb 4, 2022

Change Overview

Use CONTAINER_NAME if set instead of attempting to parse /proc/self/cgroup.

Supports cgroups v2 systems such as Docker Desktop for Mac 4.3+.

Approach of CONTAINER_NAME has been used successfully for K10. To maintain independence of Kanister from K10 in workflows that do not set CONTAINER_NAME, this change detects being in a container if either CONTAINER_NAME set or if detected from /proc/self/cgroup.

Pull request type

Please check the type of change your PR introduces:

  • 🐹 Trivial/Minor

Issues

Test Plan

Support cgroups v2 systems such as Docker Desktop for Mac 4.3+.
Copy link
Contributor

@miquella miquella left a comment

Choose a reason for hiding this comment

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

LGTM 👍 Will let @pavannd1 weigh in though.

@mergify mergify bot merged commit 0c2ea06 into master Feb 5, 2022
@mergify mergify bot deleted the ewhamilton-patch-1 branch February 5, 2022 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants