Skip to content

Commit

Permalink
Merge pull request #431 from wking/platform-specific-solaris
Browse files Browse the repository at this point in the history
specs-go/config: Make Linux and Solaris omitempty
  • Loading branch information
Mrunal Patel committed May 9, 2016
2 parents 040712a + 5c2193f commit adea03f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions config.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,8 @@ _Note: For Solaris, uid and gid specify the uid and gid of the process inside th

* **`linux`** (object, optional) [Linux-specific configuration](config-linux.md).
This should only be set if **`platform.os`** is `linux`.
* **`solaris`** (object, optional) [Solaris-specific configuration](config-solaris.md).
This should only be set if **`platform.os`** is `solaris`.

### Example (Linux)

Expand Down
4 changes: 2 additions & 2 deletions specs-go/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ type Spec struct {
Annotations map[string]string `json:"annotations,omitempty"`

// Linux is platform specific configuration for Linux based containers.
Linux Linux `json:"linux" platform:"linux"`
Linux Linux `json:"linux" platform:"linux,omitempty"`
// Solaris is platform specific configuration for Solaris containers.
Solaris Solaris `json:"solaris" platform:"solaris"`
Solaris Solaris `json:"solaris" platform:"solaris,omitempty"`
}

// Process contains information to start a specific application inside the container.
Expand Down

0 comments on commit adea03f

Please sign in to comment.