Documentation
¶
Overview ¶
Package nodename provides utility functions to generate nodenames.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromHostname ¶
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.
Click to show internal directories.
Click to hide internal directories.