Skip to main content

GROUP_PREFIX

Constant GROUP_PREFIX 

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

Shared reverse-DNS namespace prefix every substrate-owned annotation key in this module carries — the same tatara.pleme.io/ group segment every tatara-owned CRD annotation + finalizer key rides through, matching the #[kube(group = "tatara.pleme.io", …)] derive slot on every tatara CRD struct.

Byte-parity mirror of the sibling crate::finalizers::GROUP_PREFIX on the peer-family axis: the crate::finalizers module owns the ONE canonical tatara.pleme.io/ const on the finalizer-key family axis; this const opens the SAME canonical prefix on the annotation-key family axis. Both families ride the same reverse-DNS namespace; pinning them at a shared const AND at a coherence pin ([crate::annotations_family_tests::group_prefix_matches_finalizers_group_prefix]) binds the two peer families to ONE substrate owner rather than two independent per-module string literals — a future group-segment shift (a tatara.pleme.io/v2/ migration, a per-fleet override, a per-cluster ownership prefix) lands at ONE crate-wide const pair here + at crate::finalizers::GROUP_PREFIX with the pin catching any partial edit, rather than at 20 + 3 hand-authored per-key literals spread across the two modules.

Pinned across every arm of ALL by [crate::annotations_family_tests::all_share_group_prefix] so a future addition to the annotation family that drifted the prefix (a tatara.io/ copy-paste that silently escaped the K8s-side reverse-DNS convention, a group-segment shift on ONE key that missed the ALL slice) surfaces at compile-time / test-time rather than as silent operator-facing skew.