Documentation ¶
Overview ¶
Package env provides functions to get the cluster name from environment
Index ¶
Constants ¶
View Source
const ( // ClusterNameEnvKey is the environment variable that specifies the system cluster name. // ClusterName can be attached to the created resource. When there are multiple clusters, the resource can be found by the api by the cluster name. ClusterNameEnvKey = "SYSTEM_CLUSTER_NAME" // NOSONAR // ignore: "Key" detected here, make sure this is not a hard-coded credential )
Variables ¶
View Source
var GetCurrentClusterName = defaultGetCurrentClusterName
GetCurrentClusterName returns current cluster name
Functions ¶
func ClusterName ¶
func ClusterName() string
ClusterName returns the cluster name that describes the cluster name the instance runs on. You need to specify the relevant environment variables through deployment when deploying.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.