struct
Kubernetes::PolicyRulesWithSubjects
- Kubernetes::PolicyRulesWithSubjects
- Struct
- Value
- Object
Overview
PolicyRulesWithSubjects prescribes a test that applies to a request to an apiserver. The test considers the subject making the request, the verb being requested, and the resource to be acted upon. This PolicyRulesWithSubjects matches a request if and only if both (a) at least one member of subjects matches the request and (b) at least one member of resourceRules or nonResourceRules matches the request.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_flowcontrol_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
-
#non_resource_rules : Array(NonResourcePolicyRule) | Nil
nonResourceRulesis a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. -
#non_resource_rules=(non_resource_rules : Array(NonResourcePolicyRule) | Nil)
nonResourceRulesis a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL. -
#resource_rules : Array(ResourcePolicyRule) | Nil
resourceRulesis a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. -
#resource_rules=(resource_rules : Array(ResourcePolicyRule) | Nil)
resourceRulesis a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. -
#subjects : Array(Subject) | Nil
subjects is the list of normal user, serviceaccount, or group that this rule cares about.
-
#subjects=(subjects : Array(Subject) | Nil)
subjects is the list of normal user, serviceaccount, or group that this rule cares about.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
nonResourceRules is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
nonResourceRules is a list of NonResourcePolicyRules that identify matching requests according to their verb and the target non-resource URL.
resourceRules is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of resourceRules and nonResourceRules has to be non-empty.
resourceRules is a slice of ResourcePolicyRules that identify matching requests according to their verb and the target resource. At least one of resourceRules and nonResourceRules has to be non-empty.
subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.
subjects is the list of normal user, serviceaccount, or group that this rule cares about. There must be at least one member in this slice. A slice that includes both the system:authenticated and system:unauthenticated user groups matches every request. Required.