Skip to main content

API_VERSION

Constant API_VERSION 

Source
pub const API_VERSION: &str = "tatara.pleme.io/v1alpha1";
Expand description

Canonical <GROUP>/<VERSION> apiVersion string as a compile-time &'static str — the ONE typed wire-form binding every tatara CRD stamps on its own apiVersion slot.

Peer to GROUP + VERSION on the CRD-group×version axis: where those two consts own the group segment + the version segment separately (each addressable in its own right — the api_url_prefix composer weaves them into the REST-URL envelope, #[kube(group = ..., version = ...)] derive slots on every tatara CRD struct address them individually), this const owns the two-segment compose product every wire-form emit — every K8s apiVersion: slot the reconciler stamps + every PROCESS_WIRE_IDENTITY projection — routes through.

Byte-shape pinned against format!("{GROUP}/{VERSION}") by [owner_reference_tests::api_version_const_composes_group_and_version_bytewise] so a rename of GROUP or a version bump on VERSION that missed the const surfaces HERE rather than as silent SSA-apply skew at every downstream OwnerReference / apiVersion-slot emit site.

Sibling to the runtime api_version fn — API_VERSION is the &'static str typed form (const-callable, feeds PROCESS_WIRE_IDENTITY); api_version returns API_VERSION.to_string() for owned-String call sites (SSA re-injection helpers that thread the apiVersion slot through a per-site cloned map).