Merge pull request #8233 from csrwng/connect_adm_ctrl

Admission control to prevent exec on privileged pods
This commit is contained in:
Derek Carr
2015-05-21 14:35:28 -04:00
25 changed files with 587 additions and 108 deletions

View File

@@ -246,3 +246,18 @@ type StorageMetadata interface {
// PATCH) can respond with.
ProducesMIMETypes(verb string) []string
}
// ConnectRequest is an object passed to admission control for Connect operations
type ConnectRequest struct {
// Name is the name of the object on which the connect request was made
Name string
// Options is the options object passed to the connect request. See the NewConnectOptions method on Connecter
Options runtime.Object
// ResourcePath is the path for the resource in the REST server (ie. "pods/proxy")
ResourcePath string
}
// IsAnAPIObject makes ConnectRequest a runtime.Object
func (*ConnectRequest) IsAnAPIObject() {}