// PodInfo contains one entry for every container with available info.
typePodInfomap[string]ContainerStatus
typeRestartPolicyAlwaysstruct{}
// RestartPolicy describes how the container should be restarted.
// Only one of the following restart policies may be specified.
// If none of the following policies is specified, the default one
// is RestartPolicyAlways.
typeRestartPolicystring
// TODO(dchen1107): Define what kinds of failures should restart.
// TODO(dchen1107): Decide whether to support policy knobs, and, if so, which ones.
typeRestartPolicyOnFailurestruct{}
typeRestartPolicyNeverstruct{}
typeRestartPolicystruct{
// Only one of the following restart policies may be specified.
// If none of the following policies is specified, the default one
// is RestartPolicyAlways.
Always*RestartPolicyAlways`json:"always,omitempty" description:"always restart the container after termination"`
OnFailure*RestartPolicyOnFailure`json:"onFailure,omitempty" description:"restart the container if it fails for any reason, but not if it succeeds (exit 0)"`
Never*RestartPolicyNever`json:"never,omitempty" description:"never restart the container"`
}
const(
RestartPolicyAlwaysRestartPolicy="Always"
RestartPolicyOnFailureRestartPolicy="OnFailure"
RestartPolicyNeverRestartPolicy="Never"
)
// DNSPolicy defines how a pod's DNS will be configured.