Skip to content

Commit 4d18a52

Browse files
author
Mrunal Patel
committed
Merge pull request #132 from LK4D4/fix_uid_map_naming
Return golint-compliant naming for mappings
2 parents 4459fb5 + 31485fa commit 4d18a52

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

config_linux.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ type Linux struct {
2020
// User specifies linux specific user and group information for the container's
2121
// main process.
2222
type User struct {
23-
// Uid is the user id.
24-
Uid int32 `json:"uid"`
25-
// Gid is the group id.
26-
Gid int32 `json:"gid"`
23+
// UID is the user id.
24+
UID int32 `json:"uid"`
25+
// GID is the group id.
26+
GID int32 `json:"gid"`
2727
// AdditionalGids are additional group ids set for the container's process.
2828
AdditionalGids []int32 `json:"additionalGids"`
2929
}

runtime_config_linux.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ type LinuxRuntimeSpec struct {
1010
}
1111

1212
type LinuxRuntime struct {
13-
// UidMapping specifies user mappings for supporting user namespaces on linux.
14-
UidMappings []IDMapping `json:"uidMappings"`
15-
// UidMapping specifies group mappings for supporting user namespaces on linux.
16-
GidMappings []IDMapping `json:"gidMappings"`
13+
// UIDMapping specifies user mappings for supporting user namespaces on linux.
14+
UIDMappings []IDMapping `json:"uidMappings"`
15+
// GIDMapping specifies group mappings for supporting user namespaces on linux.
16+
GIDMappings []IDMapping `json:"gidMappings"`
1717
// Rlimits specifies rlimit options to apply to the container's process.
1818
Rlimits []Rlimit `json:"rlimits"`
1919
// Sysctl are a set of key value pairs that are set for the container on start

0 commit comments

Comments
 (0)