package kubecaml

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

Resource_rule is the list of actions the subject is allowed to perform on resources. The list ordering isn't significant, may contain duplicates, and possibly be incomplete.

type t
val to_yojson : t -> Yojson.Safe.t
val make : verbs:string list -> ?resources:string list -> ?resource_names:string list -> ?api_groups:string list -> unit -> t
val api_groups : t -> string list option

Api_groups is the name of the Api_group 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. "*" means all.

val resource_names : t -> string list option

Resource_names is an optional white list of names that the rule applies to. An empty set means that everything is allowed. "*" means all.

val resources : t -> string list option

Resources is a list of resources this rule applies to. "*" means all in the specified api_groups. "*/foo" represents the subresource 'foo' for all resources in the specified api_groups.

val verbs : t -> string list

Verb is a list of kubernetes resource Api verbs, like: get, list, watch, create, update, delete, proxy. "*" means all.

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

Innovation. Community. Security.