versionlabel

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package versionlabel derives the ate.dev/substrate-version label that keys versioned dataplane objects to a substrate build version. The install script stamps it on nodes and on the versioned atelet DaemonSet; upgrade tooling pins WorkerPool pod templates to it. Every writer must derive names and values through this package so they agree.

Index

Constants

View Source
const Key = "ate.dev/substrate-version"

Key is the label key used consistently on nodes, Deployments, pod templates, and pod nodeSelectors.

Variables

This section is empty.

Functions

func NameSuffix

func NameSuffix(version string) string

NameSuffix normalizes a build version into a DNS-1123-label-safe object name suffix that can be appended to an object name. Currently it's only used by the atelet DaemonSet during upgrade.

func Value

func Value(version string) string

Value normalizes a build version into a valid label value. The version is free-form via -ldflags, so invalid bytes map to '-' deterministically instead of being rejected.

Types

This section is empty.

Directories

Path Synopsis
Command cmd prints "<label value> <object-name suffix>" for a build version, so shell installers and upgrade tooling use the same derivation instead of mirroring it.
Command cmd prints "<label value> <object-name suffix>" for a build version, so shell installers and upgrade tooling use the same derivation instead of mirroring it.

Jump to

Keyboard shortcuts

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