package kube

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

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