class K8S::Api::Core::V1::PodSecurityContext

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

Defined in:

versions/v1.23/api/core/v1/pod_security_context.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]
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(Int32)? = nil, sysctls : Array(Api::Core::V1::Sysctl)? = nil, windows_options : Api::Core::V1::WindowsSecurityContextOptions? = nil) #

[View source]

Instance Method Detail

def fs_group : Int32? #

[View source]
def fs_group=(fs_group : Int32?) #

[View source]
def fs_group_change_policy : String? #

[View source]
def fs_group_change_policy=(fs_group_change_policy : String?) #

[View source]
def run_as_group : Int32? #

[View source]
def run_as_group=(run_as_group : Int32?) #

[View source]
def run_as_non_root : Bool? #

[View source]
def run_as_non_root=(run_as_non_root : Bool?) #

[View source]
def run_as_user : Int32? #

[View source]
def run_as_user=(run_as_user : Int32?) #

[View source]
def se_linux_options : Api::Core::V1::SELinuxOptions? #

[View source]
def se_linux_options=(se_linux_options : Api::Core::V1::SELinuxOptions?) #

[View source]
def seccomp_profile : Api::Core::V1::SeccompProfile? #

[View source]
def seccomp_profile=(seccomp_profile : Api::Core::V1::SeccompProfile?) #

[View source]
def supplemental_groups : Array(Int32)? #

[View source]
def supplemental_groups=(supplemental_groups : Array(Int32)?) #

[View source]
def sysctls : Array(Api::Core::V1::Sysctl)? #

[View source]
def sysctls=(sysctls : Array(Api::Core::V1::Sysctl)?) #

[View source]

[View source]
def windows_options=(windows_options : Api::Core::V1::WindowsSecurityContextOptions?) #

[View source]