names

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package names contains useful functionality for generating names

Index

Constants

View Source
const (
	MaxGeneratedNameLength = maxNameLength - randomLength
)

Variables

This section is empty.

Functions

func GenerateName

func GenerateName(base string) string

GenerateName generates a name with a random suffix

func GenerateNameWithHashSuffix added in v0.7.0

func GenerateNameWithHashSuffix(prefix string, needHashString string) string

GenerateNameWithHashSuffix generates a name with a hash suffix

func GetGenerateName

func GetGenerateName(object metav1.Object) string

GetGenerateName used to generate child object names with a "-" suffix

Types

This section is empty.

Jump to

Keyboard shortcuts

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