labels

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package labels contains functions to validate and compare values used in Kubernetes labels.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustEqualValue

func MustEqualValue(str, labelValue string) bool

MustEqualValue returns true if the actualLabelValue equals either the inputLabelValue or the hashed value of the inputLabelValue.

func MustFormatValue

func MustFormatValue(str string) string

MustFormatValue returns the passed inputLabelValue if it meets the standards for a Kubernetes label value. If the name is not a valid label value this function returns a hash which meets the requirements.

Types

This section is empty.

Jump to

Keyboard shortcuts

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