class Pyrite::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.

Defined in:

versions/v1.14/api/core/v1/pod_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) #

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.


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

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.


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? = nil, sysctls : Array? = nil) #

Instance Method Detail

def fs_group : Int32? #

def fs_group=(fs_group : Int32?) #

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

def supplemental_groups : Array(Int32)? #

def supplemental_groups=(supplemental_groups : Array(Int32)?) #

def sysctls : Array(Api::Core::V1::Sysctl)? #

def sysctls=(sysctls : Array(Api::Core::V1::Sysctl)?) #