hash

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Spec

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.

Jump to

Keyboard shortcuts

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