struct
Kubernetes::Subject
- Kubernetes::Subject
- Struct
- Value
- Object
Overview
Subject contains a reference to the object or user identities a role binding applies to. This can either hold a direct API object reference, or a value for non-objects such as user and group names.
Included Modules
- JSON::Serializable
- Kubernetes::Serializable
- YAML::Serializable
Defined in:
generated/models/io_k8s_api_flowcontrol_v1.crgenerated/models/io_k8s_api_rbac_v1.cr
Constructors
- .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_group : String | Nil
APIGroup holds the API group of the referenced subject.
-
#api_group=(api_group : String | Nil)
APIGroup holds the API group of the referenced subject.
-
#group : GroupSubject | Nil
#groupmatches based on user group name. -
#group=(group : GroupSubject | Nil)
#groupmatches based on user group name. -
#kind : String | Nil
Kind of object being referenced.
-
#kind=(kind : String | Nil)
Kind of object being referenced.
-
#name : String | Nil
Name of the object being referenced.
-
#name=(name : String | Nil)
Name of the object being referenced.
-
#namespace : String | Nil
Namespace of the referenced object.
-
#namespace=(namespace : String | Nil)
Namespace of the referenced object.
-
#service_account : ServiceAccountSubject | Nil
serviceAccountmatches ServiceAccounts. -
#service_account=(service_account : ServiceAccountSubject | Nil)
serviceAccountmatches ServiceAccounts. -
#user : UserSubject | Nil
#usermatches based on username. -
#user=(user : UserSubject | Nil)
#usermatches based on username.
Constructor Detail
Macro Detail
Helper macro for defining fields with automatic camelCase conversion
Instance Method Detail
APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
APIGroup holds the API group of the referenced subject. Defaults to "" for ServiceAccount subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.
Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
Kind of object being referenced. Values defined by this API group are "User", "Group", and "ServiceAccount". If the Authorizer does not recognized the kind value, the Authorizer should report an error.
Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
Namespace of the referenced object. If the object kind is non-namespace, such as "User" or "Group", and this value is not empty the Authorizer should report an error.
serviceAccount matches ServiceAccounts.