package kube

  1. Overview
  2. Docs
Native OCaml Kubernetes client and controller runtime

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1.3.tar.gz
md5=3c6916dea849fb2842c4a2e8a92b6cdd
sha512=b57daa3bb4879e1f33efc157cf5c648f88455e0f7c87484d572096d46345d6a8081cc7cefb4887aa95507af8daf73b3b8570b8583106953a5ba96a874159ff00

doc/kube.crd/Kube_crd/Condition/index.html

Module Kube_crd.ConditionSource

Kubernetes-standard status conditions for custom resources.

Sourcetype status =
  1. | True
  2. | False
  3. | Unknown
Sourcetype t = {
  1. type_ : string;
  2. status : status;
  3. observed_generation : int64 option;
  4. last_transition_time : string;
  5. reason : string;
  6. message : string;
}
Sourceval make : ?observed_generation:int64 -> ?last_transition_time:string -> type_:string -> status:status -> reason:string -> message:string -> unit -> t

Construct a condition, defaulting last_transition_time to the current UTC time. Type and reason must be non-empty.

Sourceval find : string -> t list -> t option
Sourceval is_true : string -> t list -> bool
Sourceval set : ?now:(unit -> string) -> t -> t list -> t list * bool

Insert or replace a condition by type. The prior transition time is kept while status is unchanged; it is advanced when status changes. The boolean reports whether any serialized field changed.

Sourceval remove : string -> t list -> t list * bool
Sourceval of_json : Yojson.Safe.t -> (t, string) result
Sourceval to_json : t -> Yojson.Safe.t
Sourceval schema : Schema.t