struct

Kubernetes::SubjectAccessReviewSpec

Inherits YAML::Serializable < JSON::Serializable < Kubernetes::Serializable < Struct < Value < Object

SubjectAccessReviewSpec is a description of the access request. Exactly one of resourceAttributes and nonResourceAttributes must be set

Constructors

new(pull : ::JSON::PullParser)
new(*, __pull_for_json_serializable pull : ::JSON::PullParser)
new(*, __context_for_yaml_serializable ctx : YAML::ParseContext, __node_for_yaml_serializable node : YAML::Nodes::Node)

Instance methods

extra

extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.

Source
extra=(extra : Hash(String, Array(String)) | Nil)

extra corresponds to the user.Info.GetExtra() method from the authenticator. Since that is input to the authorizer it needs a reflection here.

Source
groups

groups is the groups you're testing for.

Source
groups=(groups : Array(String) | Nil)

groups is the groups you're testing for.

Source
non_resource_attributes

nonResourceAttributes describes information for a non-resource access request

Source
non_resource_attributes=(non_resource_attributes : NonResourceAttributes | Nil)

nonResourceAttributes describes information for a non-resource access request

Source
resource_attributes

resourceAttributes describes information for a resource access request

Source
resource_attributes=(resource_attributes : ResourceAttributes | Nil)

resourceAttributes describes information for a resource access request

Source
uid

uid information about the requesting user.

Source
uid=(uid : String | Nil)

uid information about the requesting user.

Source
user

user is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups

Source
user=(user : String | Nil)

user is the user you're testing for. If you specify "User" but not "Groups", then is it interpreted as "What if User were not a member of any groups

Source

Macros

field(name, type = nil, **options, &block)

Helper macro for defining fields with automatic camelCase conversion

Source