-
Notifications
You must be signed in to change notification settings - Fork 0
/
aggregation_rule.cr
23 lines (19 loc) · 999 Bytes
/
aggregation_rule.cr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# THIS FILE WAS AUTO GENERATED FROM THE K8S SWAGGER SPEC
require "yaml"
require "json"
module K8S
# AggregationRule describes how to locate ClusterRoles to aggregate into the ClusterRole
@[::K8S::Properties(
cluster_role_selectors: {type: Array(Apimachinery::Apis::Meta::V1::LabelSelector), nilable: true, key: "clusterRoleSelectors", getter: false, setter: false},
)]
class Api::Rbac::V1::AggregationRule
include ::JSON::Serializable
include ::YAML::Serializable
# ClusterRoleSelectors holds a list of selectors which will be used to find ClusterRoles and create the rules. If any of the selectors match, then the ClusterRole's permissions will be added
@[::JSON::Field(key: "clusterRoleSelectors", emit_null: false)]
@[::YAML::Field(key: "clusterRoleSelectors", emit_null: false)]
property cluster_role_selectors : Array(Apimachinery::Apis::Meta::V1::LabelSelector) | Nil
def initialize(*, @cluster_role_selectors : Array | Nil = nil)
end
end
end