struct Kubernetes::ResourceRule

Overview

ResourceRule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.

Included Modules

Defined in:

generated/models/io_k8s_api_authorization_v1.cr

Constructors

Macro Summary

Instance Method Summary

Constructor Detail

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

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

def self.new(*, __pull_for_json_serializable pull : ::JSON::PullParser) #

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

Macro Detail

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

Helper macro for defining fields with automatic camelCase conversion


Instance Method Detail

def api_groups : Array(String) | Nil #

APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.


def api_groups=(api_groups : Array(String) | Nil) #

APIGroups is the name of the APIGroup that contains the resources. If multiple API groups are specified, any action requested against one of the enumerated resources in any API group will be allowed. "*" means all.


def resource_names : Array(String) | Nil #

ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.


def resource_names=(resource_names : Array(String) | Nil) #

ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.


def resources : Array(String) | Nil #

Resources is a list of resources this rule applies to. "" means all in the specified apiGroups. "/foo" represents the subresource 'foo' for all resources in the specified apiGroups.


def resources=(resources : Array(String) | Nil) #

Resources is a list of resources this rule applies to. "" means all in the specified apiGroups. "/foo" represents the subresource 'foo' for all resources in the specified apiGroups.


def verbs : Array(String) | Nil #

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


def verbs=(verbs : Array(String) | Nil) #

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