Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Hostname = os.Hostname
Hostname is an alias for os.Hostname. Exposed for testing.
Functions ¶
func FetchNodeByHostName ¶
func FetchNodeByHostName(ctx context.Context, c client.Client, hostName string) (*metav1.PartialObjectMetadata, error)
FetchNodeByHostName tries to fetch the node (metadata-only) object based on the hostname.
func GetHostName ¶ added in v1.87.4
GetHostName gets the hostname and converts it to lowercase.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.