-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't override shareProcessNamespace unless annotation is explicitly set
By having a default of `false`, we would automatically set `shareProcessNamespace` to `false` when injecting the agent pod, regardless of what the main manifest had set. Instead, we should only set `shareProcessNamespace` if the annotation is explicitly set, and otherwise let the default from the main manifest stand. Fixes #436 (thanks @justinas-b for reporting it). I tested this by: * Before this patch: * Create a pod with `shareProcessNamespace: true` with injected agent * Verifying that the containers cannot see each other with `ps -ax` * After this patch: * Create a pod with `shareProcessNamespace: true` with injected agent and no annotation * Verifying that the containers *can* see each other with `ps -ax` * Create a pod with `shareProcessNamespace: true` with injected agent and annotation set to `'false'` * Verifying that the containers *cannot* see each other with `ps -ax`
- Loading branch information
Christopher Swenson
committed
Mar 17, 2023
1 parent
d705584
commit 0573487
Showing
5 changed files
with
25 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters