mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
Merge pull request #12007 from brendandburns/stdin
Auto commit by PR queue bot
This commit is contained in:
commit
3d2d99c6fd
@ -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"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user