env

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2020 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() (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() string

GetPodName returns name of the Pod where the code executes.

func GetPodNamespace added in v0.8.0

func GetPodNamespace() string

GetPodNamespace returns Namespace of the Pod where the code executes.

func IsCloudEKS added in v0.7.0

func IsCloudEKS() bool

Returns true if Antrea is used to enforce NetworkPolicies in an EKS cluster.

Types

This section is empty.

Jump to

Keyboard shortcuts

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