nodeagent

package
v1.108.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

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) (*corev1.Node, error)

FetchNodeByHostName tries to fetch the node (metadata-only) object based on the hostname.

func GetHostName added in v1.87.4

func GetHostName() (string, error)

GetHostName gets the hostname and converts it to lowercase.

Types

This section is empty.

Jump to

Keyboard shortcuts

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