package kubecaml

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

Rule is a tuple of Api_groups, Api_version, and Resources.it is recommended to make sure that all the tuple expansions are valid.

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

Api_groups is the Api groups the resources belong to. '*' is all groups. If '*' is present, the length of the slice must be one. Required.

val api_versions : t -> string list option

Api_versions is the Api versions the resources belong to. '*' is all versions. If '*' is present, the length of the slice must be one. Required.

val resources : t -> string list option

Resources is a list of resources this rule applies to.

for example: 'pods' means pods. 'pods/log' means the log subresource of pods. '*' means all resources, but not subresources. 'pods/*' means all subresources of pods. '*/scale' means all scale subresources. '*/*' means all resources and their subresources.

if wildcard is present, the validation rule will ensure resources do not overlap with each other.

depending on the enclosing object, subresources might not be allowed. Required.

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

Innovation. Community. Security.