package kubecaml

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

A label selector requirement is a selector that contains values, a key, and an operator that relates the key and values.

type t
val to_yojson : t -> Yojson.Safe.t
val make : ?values:string list -> operator:string -> key:string -> unit -> t
val key : t -> string

key is the label key that the selector applies to.

val operator : t -> string

operator represents a key's relationship to a set of values. Valid operators are In, Not_in, Exists and Does_not_exist.

val values : t -> string list option

values is an array of string values. If the operator is In or Not_in, the values array must be non_empty. If the operator is Exists or Does_not_exist, the values array must be empty. This array is replaced during a strategic merge patch.

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

Innovation. Community. Security.