nodeagent

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: Apache-2.0 Imports: 21 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

func GetHostName() (string, error)

GetHostName gets the hostname and converts it to lowercase.

func RequestAndStoreKubeconfig

func RequestAndStoreKubeconfig(ctx context.Context, log logr.Logger, fs afero.Afero, config *rest.Config, machineName string) error

RequestAndStoreKubeconfig requests a certificate via CSR and stores the resulting kubeconfig on the disk.

Types

This section is empty.

Jump to

Keyboard shortcuts

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