Documentation
¶
Index ¶
- Variables
- func FetchNodeByHostName(ctx context.Context, c client.Client, hostName string) (*corev1.Node, error)
- func GetAPIServerConfig(fs afero.Afero, configDir string) (*nodeagentconfigv1alpha1.APIServer, error)
- func GetHostName() (string, error)
- func RequestAndStoreKubeconfig(ctx context.Context, log logr.Logger, fs afero.Afero, config *rest.Config, ...) error
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 GetAPIServerConfig ¶ added in v1.118.0
func GetAPIServerConfig(fs afero.Afero, configDir string) (*nodeagentconfigv1alpha1.APIServer, error)
GetAPIServerConfig reads the gardener-node-agent config file and returns the APIServer configuration.
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.