package kubecaml

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

Custom_resource_subresource_scale defines how to serve the scale subresource for Custom_resources.

type t
val to_yojson : t -> Yojson.Safe.t
val make : status_replicas_path:string -> spec_replicas_path:string -> ?label_selector_path:string -> unit -> t
val label_selector_path : t -> string option

Label_selector_path defines the Json path inside of a Custom_resource that corresponds to Scale.status.selector. Only Json paths without the array notation are allowed. Must be a Json Path under .status. Must be set to work with Hpa. If there is no value under the given path in the Custom_resource, the status label selector value in the /scale subresource will default to the empty string.

val spec_replicas_path : t -> string

Spec_replicas_path defines the Json path inside of a Custom_resource that corresponds to Scale.spec.replicas. Only Json paths without the array notation are allowed. Must be a Json Path under .spec. If there is no value under the given path in the Custom_resource, the /scale subresource will return an error on Get.

val status_replicas_path : t -> string

Status_replicas_path defines the Json path inside of a Custom_resource that corresponds to Scale.status.replicas. Only Json paths without the array notation are allowed. Must be a Json Path under .status. If there is no value under the given path in the Custom_resource, the status replica value in the /scale subresource will default to 0.

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

Innovation. Community. Security.