struct
Kubernetes::PolicyRule
- Kubernetes::PolicyRule
- Struct
- Value
- Object
Overview
PolicyRule holds information that describes a policy rule, but does not contain information about who the rule applies to or which namespace the rule applies to.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_rbac_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.
-
#non_resource_ur_ls : Array(String) | Nil
NonResourceURLs is a set of partial urls that a user should have access to.
-
#non_resource_ur_ls=(non_resource_ur_ls : Array(String) | Nil)
NonResourceURLs is a set of partial urls that a user should have access to.
-
#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
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule.
-
#verbs=(verbs : Array(String) | Nil)
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule.
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. "" represents the core API group and "*" represents all API groups.
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. "" represents the core API group and "*" represents all API groups.
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
NonResourceURLs is a set of partial urls that a user should have access to. *s are allowed, but only as the full, final step in the path Since non-resource URLs are not namespaced, this field is only applicable for ClusterRoles referenced from a ClusterRoleBinding. Rules can either apply to API resources (such as "pods" or "secrets") or non-resource URL paths (such as "/api"), but not both.
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
ResourceNames is an optional white list of names that the rule applies to. An empty set means that everything is allowed.
Resources is a list of resources this rule applies to. '*' represents all resources.
Resources is a list of resources this rule applies to. '*' represents all resources.
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.
Verbs is a list of Verbs that apply to ALL the ResourceKinds contained in this rule. '*' represents all verbs.