package kubecaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

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.

type t
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val make : ?namespace:string -> name:string -> kind:string -> ?api_group:string -> unit -> t
val api_group : t -> string option

Api_group holds the Api group of the referenced subject. Defaults to "" for Service_account subjects. Defaults to "rbac.authorization.k8s.io" for User and Group subjects.

val kind : t -> string

Kind of object being referenced. Values defined by this Api group are "user", "group", and "service_account". If the Authorizer does not recognized the kind value, the Authorizer should report an error.

val name : t -> string

Name of the object being referenced.

val namespace : t -> string option

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.

module Object : Object.S with type value := t
OCaml

Innovation. Community. Security.