Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNodeName ¶
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.
Click to show internal directories.
Click to hide internal directories.