struct

Kubernetes::ResourceAttributes

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

ResourceAttributes includes the authorization attributes available for resource requests to the Authorizer interface

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

field_selector

fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.

Source
field_selector=(field_selector : FieldSelectorAttributes | Nil)

fieldSelector describes the limitation on access based on field. It can only limit access, not broaden it.

Source
group

group is the API Group of the Resource. "*" means all.

Source
group=(group : String | Nil)

group is the API Group of the Resource. "*" means all.

Source
label_selector

labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.

Source
label_selector=(label_selector : LabelSelectorAttributes | Nil)

labelSelector describes the limitation on access based on labels. It can only limit access, not broaden it.

Source
name

name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.

Source
name=(name : String | Nil)

name is the name of the resource being requested for a "get" or deleted for a "delete". "" (empty) means all.

Source
namespace

namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview

Source
namespace=(namespace : String | Nil)

namespace is the namespace of the action being requested. Currently, there is no distinction between no namespace and all namespaces "" (empty) is defaulted for LocalSubjectAccessReviews "" (empty) is empty for cluster-scoped resources "" (empty) means "all" for namespace scoped resources from a SubjectAccessReview or SelfSubjectAccessReview

Source
resource

resource is one of the existing resource types. "*" means all.

Source
resource=(resource : String | Nil)

resource is one of the existing resource types. "*" means all.

Source
subresource

subresource is one of the existing resource types. "" means none.

Source
subresource=(subresource : String | Nil)

subresource is one of the existing resource types. "" means none.

Source
verb

verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

Source
verb=(verb : String | Nil)

verb is a kubernetes resource API verb, like: get, list, watch, create, update, delete, proxy. "*" means all.

Source
version

version is the API Version of the Resource. "*" means all.

Source
version=(version : String | Nil)

version is the API Version of the Resource. "*" means all.

Source

Macros

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

Helper macro for defining fields with automatic camelCase conversion

Source