nodename

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package nodename provides utility functions to generate nodenames.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHostname

func FromHostname(hostname string) (string, error)

FromHostname converts a hostname to Kubernetes Node name.

UNIX hostname has almost no restrictions, but Kubernetes Node name has to be RFC 1123 compliant. This function converts a hostname to a valid Kubernetes Node name (if possible).

The allowed format is:

[a-z0-9]([-a-z0-9]*[a-z0-9])?

Types

This section is empty.

Jump to

Keyboard shortcuts

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