Commit 8ddef456 authored by Paul Morie's avatar Paul Morie

Fix issue 10587; update SecurityContext godoc

parent 9d1a48d5
...@@ -12777,7 +12777,7 @@ ...@@ -12777,7 +12777,7 @@
"properties": { "properties": {
"capabilities": { "capabilities": {
"$ref": "v1.Capabilities", "$ref": "v1.Capabilities",
"description": "the linux capabilites that should be added or removed; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context" "description": "the linux kernel capabilites that should be added or removed; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context"
}, },
"privileged": { "privileged": {
"type": "boolean", "type": "boolean",
......
...@@ -2011,17 +2011,12 @@ type ComponentStatusList struct { ...@@ -2011,17 +2011,12 @@ type ComponentStatusList struct {
Items []ComponentStatus `json:"items" description:"list of component status objects"` Items []ComponentStatus `json:"items" description:"list of component status objects"`
} }
// SecurityContext holds security configuration that will be applied to a container. SecurityContext // SecurityContext holds security configuration that will be applied to a container.
// contains duplication of some existing fields from the Container resource. These duplicate fields
// will be populated based on the Container configuration if they are not set. Defining them on
// both the Container AND the SecurityContext will result in an error.
type SecurityContext struct { type SecurityContext struct {
// Capabilities are the capabilities to add/drop when running the container // Capabilities are the capabilities to add/drop when running the container
// Must match Container.Capabilities or be unset. Will be defaulted to Container.Capabilities if left unset Capabilities *Capabilities `json:"capabilities,omitempty" description:"the linux kernel capabilites that should be added or removed; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context"`
Capabilities *Capabilities `json:"capabilities,omitempty" description:"the linux capabilites that should be added or removed; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context"`
// Run the container in privileged mode // Run the container in privileged mode
// Must match Container.Privileged or be unset. Will be defaulted to Container.Privileged if left unset
Privileged *bool `json:"privileged,omitempty" description:"run the container in privileged mode; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context"` Privileged *bool `json:"privileged,omitempty" description:"run the container in privileged mode; see http://releases.k8s.io/HEAD/docs/design/security_context.md#security-context"`
// SELinuxOptions are the labels to be applied to the container // SELinuxOptions are the labels to be applied to the container
......
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