class K8S::Api::Core::V1::PodSecurityContext
- K8S::Api::Core::V1::PodSecurityContext
- Reference
- Object
Overview
PodSecurityContext holds pod-level security attributes and common container settings. Some fields are also present in container.securityContext. Field values of container.securityContext take precedence over field values of PodSecurityContext.
Included Modules
- JSON::Serializable
- JSON::Serializable::Unmapped
- YAML::Serializable
- YAML::Serializable::Unmapped
Defined in:
versions/v1.11/api/core/v1/pod_security_context.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .new(pull : JSON::PullParser)
- .new(*, fs_group : Int32? = nil, run_as_group : Int32? = nil, run_as_non_root : Bool? = nil, run_as_user : Int32? = nil, se_linux_options : Api::Core::V1::SELinuxOptions? = nil, supplemental_groups : Array(Int32)? = nil, sysctls : Array(Api::Core::V1::Sysctl)? = nil)
Instance Method Summary
- #fs_group : Int32?
- #fs_group=(fs_group : Int32?)
- #run_as_group : Int32?
- #run_as_group=(run_as_group : Int32?)
- #run_as_non_root : Bool?
- #run_as_non_root=(run_as_non_root : Bool?)
- #run_as_user : Int32?
- #run_as_user=(run_as_user : Int32?)
- #se_linux_options : Api::Core::V1::SELinuxOptions?
- #se_linux_options=(se_linux_options : Api::Core::V1::SELinuxOptions?)
- #supplemental_groups : Array(Int32)?
- #supplemental_groups=(supplemental_groups : Array(Int32)?)
- #sysctls : Array(Api::Core::V1::Sysctl)?
- #sysctls=(sysctls : Array(Api::Core::V1::Sysctl)?)
Constructor Detail
def self.new(*, fs_group : Int32? = nil, run_as_group : Int32? = nil, run_as_non_root : Bool? = nil, run_as_user : Int32? = nil, se_linux_options : Api::Core::V1::SELinuxOptions? = nil, supplemental_groups : Array(Int32)? = nil, sysctls : Array(Api::Core::V1::Sysctl)? = nil)
#