-
Notifications
You must be signed in to change notification settings - Fork 21
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
WIP: Add support for pinned sb implementation #135
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mrunalp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
||
impl Pod for PinnedSandbox {} | ||
impl PinnedSandbox { | ||
pub fn new(pinner: &str) -> Result<PinnedSandbox> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@saschagrunert We want to be able to setup a PinnedSandbox::new and then use it in the Sandbox but that doesn't work so we may need to use trait objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, yes it might be the better approach to use trait objects here. 👍
let mut args = Vec::new(); | ||
args.push("-d"); | ||
args.push(&self.namespaces_dir); | ||
args.push("-f"); | ||
args.push(&sd.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let mut args = Vec::new(); | |
args.push("-d"); | |
args.push(&self.namespaces_dir); | |
args.push("-f"); | |
args.push(&sd.id); | |
let mut args = vec!["-d", &self.namespaces_dir, "-f", &sd.id]; |
if linux_namespaces.contains(LinuxNamespaces::UTS) { | ||
args.push("-u"); | ||
} | ||
let output = Command::new(&self.pinner_path).args(&args[..]).output().await?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let output = Command::new(&self.pinner_path).args(&args[..]).output().await?; | |
let output = Command::new(&self.pinner_path).args(args).output().await?; |
@mrunalp: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Mrunal Patel mrunalp@gmail.com
What type of PR is this?
/kind feature
What this PR does / why we need it:
Which issue(s) this PR fixes:
None
Special notes for your reviewer:
Does this PR introduce a user-facing change?