env

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAntreaControllerServiceAccount added in v0.12.0

func GetAntreaControllerServiceAccount() string

GetAntreaControllerServiceAccountName returns the ServiceAccount name associated with antrea-controller.

func GetAntreaNamespace added in v1.0.0

func GetAntreaNamespace() string

GetAntreaNamespace tries to determine the Namespace in which Antrea is running by looking at the POD_NAMESPACE environment variable. If this environment variable is not set (e.g. because the Antrea component is not run as a Pod), "kube-system" is returned.

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

IsCloudEKS 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