coordination

package
v0.2.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package coordination names the database realm a desired-state resource claims.

A realm is what the census counts and what the target Lease serializes on. A resource names it one of two ways: a coordination key, which reaches only as far as the resource's own namespace, or a PtahRealm, which an administrator creates and which says itself which namespaces it admits. Every place that derives a realm from a spec derives it here, so the census, the Lease, the plan, the approval webhook and the Job builder cannot disagree about which realm one resource is in.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Digest

func Digest(namespace string, target operatorv1alpha1.DatabaseTargetSpec) (string, error)

Digest returns the realm the target of a resource in namespace claims.

The API admits exactly one of coordinationKey and realmRef, and this refuses a target carrying both rather than choosing one: a spec the API validation would have refused names no realm.

func RealmName

func RealmName(target operatorv1alpha1.DatabaseTargetSpec) string

RealmName is the PtahRealm a target names, or "" for a namespace key.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL