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

[PR #249/d224752c backport][stable-1] Minor fixes to nsenter connection plugin #251

Conversation

patchback[bot]
Copy link

@patchback patchback bot commented Dec 9, 2021

This is a backport of PR #249 as merged into main (d224752).

SUMMARY

Two fixes to the nsenter connection plugin:

  • Ensure the nsenter_pid option is retrieved in _connect instead of __init__ to prevent a crasher due to bad initialization order
  • Replace the use of --all-namespaces with specific namespaces to support compatibility with Busybox nsenter (used on for example, Alpine containers)
ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME

nsenter connection plugin

ADDITIONAL INFORMATION

N/A

* Minor fixes to nsenter connection plugin

- Ensure the nsoption_pid option is retrieved in _connect instead of
  __init__ to prevent a crasher due to initialization order
- Replace the use of --all-namespaces with specific namespaces to
  support compatibility with Busybox nsenter (for example, Alpine)

* minor tidy

* Fix PEP8 violation

* Changelog fragment

* Update changelogs/fragments/249-nsenter-fixes.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Jeff Goldschrafe <jeff.goldschrafe@flatiron.com>
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit d224752)
@felixfontein felixfontein merged commit 9e3c50a into stable-1 Dec 9, 2021
@felixfontein felixfontein deleted the patchback/backports/stable-1/d224752cf1957c64af4962671b357922293a141c/pr-249 branch December 9, 2021 05:01
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