struct
Kubernetes::ResourceRule
- Kubernetes::ResourceRule
- Struct
- Value
- Object
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
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_authorization_v1.crConstructors
- .new(ctx : YAML::ParseContext, node : YAML::Nodes::Node)
- .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)
Macro Summary
-
field(name, type = nil, **options, &block)
Helper macro for defining fields with automatic camelCase conversion
Instance Method Summary
-
#api_groups : Array(String) | Nil
APIGroups is the name of the APIGroup that contains the resources.
-
#api_groups=(api_groups : Array(String) | Nil)
APIGroups is the name of the APIGroup that contains the resources.
-
#resource_names : Array(String) | Nil
ResourceNames is an optional white list of names that the rule applies to.
-
#resource_names=(resource_names : Array(String) | Nil)
ResourceNames is an optional white list of names that the rule applies to.
-
#resources : Array(String) | Nil
Resources is a list of resources this rule applies to.
-
#resources=(resources : Array(String) | Nil)
Resources is a list of resources this rule applies to.
-
#verbs : Array(String) | Nil
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.
-
#verbs=(verbs : Array(String) | Nil)
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
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.
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.
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.
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.
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.
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.
Verb is a list of kubernetes resource API verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.