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

Allow updating pids limit #1423

Merged
merged 1 commit into from
Apr 28, 2017

Conversation

mlaventure
Copy link
Contributor

Signed-off-by: Kenfe-Mickael Laventure [email protected]

@dqminh
Copy link
Contributor

dqminh commented Apr 27, 2017

LGTM

Approved with PullApprove

update.go Outdated
@@ -228,6 +235,13 @@ other options are ignored.
*pair.dest = uint64(v)
}
}
if val := context.String("pids-limit"); val != "" {
Copy link
Member

Choose a reason for hiding this comment

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

context.Int()?

update.go Outdated
@@ -108,6 +108,10 @@ other options are ignored.
Name: "memory-swap",
Usage: "Total memory usage (memory + swap); set '-1' to enable unlimited swap",
},
cli.StringFlag{
Copy link
Member

Choose a reason for hiding this comment

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

cli.IntFlag

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I want int64 though, it doesn't exist unfortunately hence why the others are using StringFlag

@crosbymichael
Copy link
Member

@mlaventure update test is broken

Signed-off-by: Kenfe-Mickael Laventure <[email protected]>
@mlaventure
Copy link
Contributor Author

ping @crosbymichael :)

@cyphar
Copy link
Member

cyphar commented Apr 28, 2017

LGTM

Approved with PullApprove

@crosbymichael
Copy link
Member

crosbymichael commented Apr 28, 2017

LGTM

Approved with PullApprove

@crosbymichael crosbymichael merged commit efb2bc3 into opencontainers:master Apr 28, 2017
@mlaventure mlaventure deleted the update-pids-limit branch May 1, 2017 14:44
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.

4 participants