class K8S::Api::Core::V1::SecurityContext
- K8S::Api::Core::V1::SecurityContext
 - Reference
 - Object
 
Overview
SecurityContext holds security configuration that will be applied to a container. Some fields are present in both SecurityContext and PodSecurityContext. When both are set, the values in SecurityContext take precedence.
Included Modules
- JSON::Serializable
 - YAML::Serializable
 
Defined in:
versions/v1.21/api/core/v1/security_context.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
 - .new(pull : JSON::PullParser)
 - .new(*, allow_privilege_escalation : Bool? = nil, capabilities : Api::Core::V1::Capabilities? = nil, privileged : Bool? = nil, proc_mount : String? = nil, read_only_root_filesystem : Bool? = 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, seccomp_profile : Api::Core::V1::SeccompProfile? = nil, windows_options : Api::Core::V1::WindowsSecurityContextOptions? = nil)
 
Instance Method Summary
- #allow_privilege_escalation : Bool?
 - #allow_privilege_escalation=(allow_privilege_escalation : Bool?)
 - #capabilities : Api::Core::V1::Capabilities?
 - #capabilities=(capabilities : Api::Core::V1::Capabilities?)
 - #privileged : Bool?
 - #privileged=(privileged : Bool?)
 - #proc_mount : String?
 - #proc_mount=(proc_mount : String?)
 - #read_only_root_filesystem : Bool?
 - #read_only_root_filesystem=(read_only_root_filesystem : Bool?)
 - #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?)
 - #seccomp_profile : Api::Core::V1::SeccompProfile?
 - #seccomp_profile=(seccomp_profile : Api::Core::V1::SeccompProfile?)
 - #windows_options : Api::Core::V1::WindowsSecurityContextOptions?
 - #windows_options=(windows_options : Api::Core::V1::WindowsSecurityContextOptions?)
 
Constructor Detail
        
        def self.new(*, allow_privilege_escalation : Bool? = nil, capabilities : Api::Core::V1::Capabilities? = nil, privileged : Bool? = nil, proc_mount : String? = nil, read_only_root_filesystem : Bool? = 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, seccomp_profile : Api::Core::V1::SeccompProfile? = nil, windows_options : Api::Core::V1::WindowsSecurityContextOptions? = nil)
        #
      
      
      Instance Method Detail
        
        def windows_options=(windows_options : Api::Core::V1::WindowsSecurityContextOptions?)
        #