-
Notifications
You must be signed in to change notification settings - Fork 114
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
add support for build.privileged and service.cgroup #330
Conversation
types/types.go
Outdated
@@ -354,12 +356,12 @@ type ThrottleDevice struct { | |||
// ShellCommand is a string or list of string args. | |||
// | |||
// When marshaled to YAML, nil command fields will be omitted if `omitempty` | |||
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`) | |||
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `”`) |
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.
@ndeloof you're IDE again?
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `”`) | |
// is specified as a struct tag. Explicitly empty commands (i.e. `[]` or `''`) |
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.
😓 I thought I found the right option to prevent this.
types/types.go
Outdated
// will serialize to an empty array (`[]`). | ||
// | ||
// When marshaled to JSON, the `omitempty` struct must NOT be specified. | ||
// If the command field is nil, it will be serialized as `null`. | ||
// Explicitly empty commands (i.e. `[]` or `''`) will serialize to an empty | ||
// Explicitly empty commands (i.e. `[]` or `”`) will serialize to an empty |
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.
same?
// Explicitly empty commands (i.e. `[]` or `”`) will serialize to an empty | |
// Explicitly empty commands (i.e. `[]` or `''`) will serialize to an empty |
Signed-off-by: Nicolas De Loof <[email protected]>
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.
LGTM
No description provided.