Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Spec ¶
func Spec(spec v1alpha1.ResourceGraphDefinitionSpec) (string, error)
Spec computes a deterministic FNV-64a hash for an RGD spec.
This hash is an internal dedup mechanism — it is not persisted on GraphRevision specs or exposed as an API contract. It is only used in the in-memory registry and as a label for kubectl convenience. The normalization can be changed freely without versioning; a change causes each RGD to reissue one revision on first reconcile, then stabilizes.
The hash is based on a normalized form of the spec: - Struct field order is stable via JSON marshaling (sorted map keys). - Resources are sorted by ID so YAML reordering is a no-op. - ReadyWhen and IncludeWhen are sorted for the same reason. - ForEach order is preserved because collection expansion order is semantic. - RawExtension payloads are normalized into canonical JSON bytes.
Types ¶
This section is empty.