names

package
v0.0.0-...-60f4931 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToDNS1123

func ToDNS1123(id string) string

ToDNS1123 returns the name that should be used to refer to the given identifier. This is necessary because Docker Compose allows service names that don't comply with Kubernetes's naming requirements. For example, Compose allows services to have underscores in their names. DNS-1123 is defined as:

  1. Lowercase alphanumeric.
  2. The `-` character can also be used in any interior character of the string.
  3. Max of 63 characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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