Introduce terminationMessagePath to Container, and update conversion code

to assign the default path.

Move default setting for terminationMessagePath to conversion
from validation. Addressed other comments.
This commit is contained in:
Dawn Chen
2014-11-05 11:08:26 -08:00
parent 5342bb4306
commit 8ffbced280
7 changed files with 39 additions and 3 deletions

View File

@@ -222,6 +222,8 @@ type Container struct {
VolumeMounts []VolumeMount `yaml:"volumeMounts,omitempty" json:"volumeMounts,omitempty"`
LivenessProbe *LivenessProbe `yaml:"livenessProbe,omitempty" json:"livenessProbe,omitempty"`
Lifecycle *Lifecycle `yaml:"lifecycle,omitempty" json:"lifecycle,omitempty"`
// Optional: Defaults to /dev/termination-log
TerminationMessagePath string `yaml:"terminationMessagePath,omitempty" json:"terminationMessagePath,omitempty"`
// Optional: Default to false.
Privileged bool `json:"privileged,omitempty" yaml:"privileged,omitempty"`
// Optional: Policy for pulling images for this container