Commit 3d2d99c6 authored by Alex Mohr's avatar Alex Mohr

Merge pull request #12007 from brendandburns/stdin

Auto commit by PR queue bot
parents d072cf80 51757f65
......@@ -12540,6 +12540,14 @@
"securityContext": {
"$ref": "v1.SecurityContext",
"description": "security options the pod should run with; see http://releases.k8s.io/HEAD/docs/design/security_context.md"
},
"stdin": {
"type": "boolean",
"description": "Whether this container should allocate a buffer for stdin in the container runtime; default is false"
},
"tty": {
"type": "boolean",
"description": "Whether this container should allocate a TTY for itself, also requires 'stdin' to be true; default is false"
}
}
},
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -204,6 +204,8 @@ func deepCopy_api_Container(in Container, out *Container, c *conversion.Cloner)
} else {
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.TTY = in.TTY
return nil
}
......
......@@ -726,6 +726,11 @@ type Container struct {
ImagePullPolicy PullPolicy `json:"imagePullPolicy"`
// Optional: SecurityContext defines the security options the pod should be run with
SecurityContext *SecurityContext `json:"securityContext,omitempty"`
// Variables for interactive containers, these have very specialized use-cases (e.g. debugging)
// and shouldn't be used for general purpose containers.
Stdin bool `json:"stdin,omitempty" description:"Whether this container should allocate a buffer for stdin in the container runtime; default is false"`
TTY bool `json:"tty,omitempty" description:"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true; default is false"`
}
// Handler defines a specific action that should be taken
......
......@@ -221,6 +221,8 @@ func convert_api_Container_To_v1_Container(in *api.Container, out *Container, s
} else {
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.TTY = in.TTY
return nil
}
......@@ -2486,6 +2488,8 @@ func convert_v1_Container_To_api_Container(in *Container, out *api.Container, s
} else {
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.TTY = in.TTY
return nil
}
......
......@@ -217,6 +217,8 @@ func deepCopy_v1_Container(in Container, out *Container, c *conversion.Cloner) e
} else {
out.SecurityContext = nil
}
out.Stdin = in.Stdin
out.TTY = in.TTY
return nil
}
......
......@@ -704,6 +704,11 @@ type Container struct {
ImagePullPolicy PullPolicy `json:"imagePullPolicy,omitempty" description:"image pull policy; one of Always, Never, IfNotPresent; defaults to Always if :latest tag is specified, or IfNotPresent otherwise; cannot be updated; see http://releases.k8s.io/HEAD/docs/user-guide/images.md#updating-images"`
// Optional: SecurityContext defines the security options the pod should be run with
SecurityContext *SecurityContext `json:"securityContext,omitempty" description:"security options the pod should run with; see http://releases.k8s.io/HEAD/docs/design/security_context.md"`
// Variables for interactive containers, these have very specialized use-cases (e.g. debugging)
// and shouldn't be used for general purpose containers.
Stdin bool `json:"stdin,omitempty" description:"Whether this container should allocate a buffer for stdin in the container runtime; default is false"`
TTY bool `json:"tty,omitempty" description:"Whether this container should allocate a TTY for itself, also requires 'stdin' to be true; default is false"`
}
// Handler defines a specific action that should be taken
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment