class Pyrite::Api::Core::V1::SecurityContext

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.

Defined in:

versions/v1.14/api/core/v1/security_context.cr

Constructors

Instance Method Summary

Constructor methods inherited from class Pyrite::Kubernetes::Spec

new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
new(pull : JSON::PullParser)
new

Constructor Detail

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

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.


def self.new(pull : JSON::PullParser) #

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.


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) #

Instance Method Detail

def allow_privilege_escalation : Bool? #

def allow_privilege_escalation=(allow_privilege_escalation : Bool?) #

def capabilities : Api::Core::V1::Capabilities? #

def capabilities=(capabilities : Api::Core::V1::Capabilities?) #

def privileged : Bool? #

def privileged=(privileged : Bool?) #

def proc_mount : String? #

def proc_mount=(proc_mount : String?) #

def read_only_root_filesystem : Bool? #

def read_only_root_filesystem=(read_only_root_filesystem : Bool?) #

def run_as_group : Int32? #

def run_as_group=(run_as_group : Int32?) #

def run_as_non_root : Bool? #

def run_as_non_root=(run_as_non_root : Bool?) #

def run_as_user : Int32? #

def run_as_user=(run_as_user : Int32?) #

def se_linux_options : Api::Core::V1::SELinuxOptions? #

def se_linux_options=(se_linux_options : Api::Core::V1::SELinuxOptions?) #