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.crConstructors
-
.new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
SecurityContext holds security configuration that will be applied to a container.
-
.new(pull : JSON::PullParser)
SecurityContext holds security configuration that will be applied to a container.
- .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 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?)
Constructor methods inherited from class Pyrite::Kubernetes::Spec
new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)new(pull : JSON::PullParser) new
Constructor Detail
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.
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.