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
 - YAML::Serializable
 
Defined in:
versions/v1.21/api/core/v1/pod_security_context.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
 - .new(pull : JSON::PullParser)
 - .new(*, fs_group : Int32? = nil, fs_group_change_policy : String? = 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, supplemental_groups : Array? = nil, sysctls : Array? = nil, windows_options : Api::Core::V1::WindowsSecurityContextOptions? = nil)
 
Instance Method Summary
- #fs_group : Int32?
 - #fs_group=(fs_group : Int32?)
 - #fs_group_change_policy : String?
 - #fs_group_change_policy=(fs_group_change_policy : String?)
 - #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?)
 - #supplemental_groups : Array(Int32)?
 - #supplemental_groups=(supplemental_groups : Array(Int32)?)
 - #sysctls : Array(Api::Core::V1::Sysctl)?
 - #sysctls=(sysctls : Array(Api::Core::V1::Sysctl)?)
 - #windows_options : Api::Core::V1::WindowsSecurityContextOptions?
 - #windows_options=(windows_options : Api::Core::V1::WindowsSecurityContextOptions?)
 
Constructor Detail
        
        def self.new(*, fs_group : Int32? = nil, fs_group_change_policy : String? = 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, supplemental_groups : Array? = nil, sysctls : Array? = nil, windows_options : Api::Core::V1::WindowsSecurityContextOptions? = nil)
        #
      
      
      Instance Method Detail
        
        def windows_options=(windows_options : Api::Core::V1::WindowsSecurityContextOptions?)
        #