constants

package
v0.1.21 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 0 Imported by: 12

Documentation

Overview

Package constants defines shared ConfigHub metadata keys used across bridge workers, functions, and config kits.

Index

Constants

View Source
const (
	// Identifying Metadata
	SpaceIDKeySuffix                = "SpaceID"
	UnitSlugKeySuffix               = "UnitSlug"
	RevisionNumKeySuffix            = "RevisionNum"
	ResourceMergeIDKeySuffix        = "ResourceMergeID"
	ResourceNameStableCoreKeySuffix = "ResourceNameStableCore"

	// Other Metadata
	ConfigMapFormatKeySuffix = "ConfigMapFormat"
	HashKeySuffix            = "Hash"

	// Options
	MutationOptionsKeySuffix = "MutationOptions"
	RenderRevisionKeySuffix  = "RenderRevision"
	VisitorOptionsKeySuffix  = "VisitorOptions"

	// Deprecated: Use ResourceMergeIDKeySuffix instead. Retained for reading legacy data.
	ResourceIDKeySuffix = "ResourceID"
)

Key suffixes for ConfigHub context metadata to inject into managed resources in bridges. Paths and Prefixes will depend on the ResourceProvider.

View Source
const (
	VisitorOptionIgnoreNeeded   = "IgnoreNeeded"
	VisitorOptionIgnoreProvided = "IgnoreProvided"
)
View Source
const (
	ConfigMapFormatFile     = "File"
	ConfigMapFormatKeyValue = "KeyValue"
)

ConfigMapFormat annotation values for the ConfigMap bridge.

View Source
const (
	// MatchByIDOnly instructs ComputeMutations to match this resource only by ResourceID,
	// skipping name-based and fuzzy matching. This is used for immutable resources (e.g.,
	// hash-suffixed ConfigMaps) where each version is a distinct resource that should not
	// be confused with other versions of the same base resource.
	MatchByIDOnly = "MatchByIDOnly"
)

MutationOption values for the confighub.com/MutationOptions annotation (or equivalent context path for non-Kubernetes toolchains).

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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