identity

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LabelValueFromName

func LabelValueFromName(name string) string

LabelValueFromName returns a DNS-1123 label-safe value for the provided name. This mirrors the internal hashing/truncation used for StoryRun labels.

func SafeLabelValue

func SafeLabelValue(value string) string

SafeLabelValue returns a DNS-1123 compliant label value (max 63 chars). It preserves readability when possible and falls back to a hash suffix when needed.

func StoryRunEngramRunnerServiceAccount

func StoryRunEngramRunnerServiceAccount(storyRunName string) string

StoryRunEngramRunnerServiceAccount returns the canonical ServiceAccount name used by Engram runner workloads spawned for the provided StoryRun.

func StoryRunSelectorLabels

func StoryRunSelectorLabels(storyRunName string) map[string]string

StoryRunSelectorLabels returns the set of base labels used to select objects associated with the provided StoryRun. The returned map is a fresh copy on every invocation so callers can safely mutate it with extra selectors.

Types

This section is empty.

Jump to

Keyboard shortcuts

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