env

package
v1.9.6 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNodeName

func GetNodeName(ctx context.Context) (string, error)

GetNodeName returns the node's name used in Kubernetes, based on the priority: - environment variable NODE_NAME, which should be set by Downward API - OS's hostname

func GetPodName

func GetPodName(ctx context.Context) string

GetPodName returns name of the Pod where the code executes.

func GetPodNamespace

func GetPodNamespace(ctx context.Context) string

GetPodNamespace returns Namespace of the Pod where the code executes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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