Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderCatalog map[string]Provider
ProviderCatalog holds all the various kinds of clustername providers
Functions ¶
func GetClusterID ¶
GetClusterID looks for an env variable which should contain the cluster ID. This variable should come from a configmap, created by the cluster-agent. This function is meant for the node-agent to call (cluster-agent should call GetOrCreateClusterID)
func GetClusterName ¶
GetClusterName returns a k8s cluster name if it exists, either directly specified or autodiscovered
func ResetClusterName ¶
func ResetClusterName()
ResetClusterName resets the clustername, which allows it to be detected again. Used for tests
Types ¶
Click to show internal directories.
Click to hide internal directories.