Skip to main content

api_version

Function api_version 

Source
pub fn api_version() -> String
Expand description

Canonical <GROUP>/<VERSION> as an owned String — the ONE K8s apiVersion shape every tatara CRD stamps. Delegates to the compile-time API_VERSION const so a bump of GROUP or VERSION that missed the const surfaces at [owner_reference_tests::api_version_const_composes_group_and_version_bytewise] rather than as silent skew between the runtime fn and the typed PROCESS_WIRE_IDENTITY const that shares the same wire form.

Pre-lift, two tatara-reconciler sites hand-wrote format!("{}/{}", tatara_process::GROUP, tatara_process::VERSION) while a third inlined the literal "tatara.pleme.io/v1alpha1", opening a silent drift path if VERSION ever advances past v1alpha1; both are covered by the ONE substrate owner here.