names

package
v1.6.4 Latest Latest
Warning

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

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

Documentation

Overview

Package names implements name generators for managed topology.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NameGenerator

type NameGenerator interface {
	// GenerateName generates a valid name. The generator is responsible for
	// knowing the maximum valid name length.
	GenerateName() (string, error)
}

NameGenerator generates names for objects.

func ControlPlaneNameGenerator

func ControlPlaneNameGenerator(templateString, clusterName string) NameGenerator

ControlPlaneNameGenerator returns a generator for creating a control plane name.

func MachineDeploymentNameGenerator

func MachineDeploymentNameGenerator(templateString, clusterName, topologyName string) NameGenerator

MachineDeploymentNameGenerator returns a generator for creating a machinedeployment name.

func MachinePoolNameGenerator added in v1.6.0

func MachinePoolNameGenerator(templateString, clusterName, topologyName string) NameGenerator

MachinePoolNameGenerator returns a generator for creating a machinepool name.

func SimpleNameGenerator

func SimpleNameGenerator(base string) NameGenerator

SimpleNameGenerator returns a NameGenerator which is based on k8s.io/apiserver/pkg/storage/names.SimpleNameGenerator.

Jump to

Keyboard shortcuts

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