Documentation ¶
Index ¶
Constants ¶
View Source
const (
ClusterClassDataSourceName = "cluster_class_demo"
)
Variables ¶
View Source
var (
ClusterClassDataSourceFullName = fmt.Sprintf("data.%s.%s", clusterclassres.ResourceName, ClusterClassDataSourceName)
)
View Source
var ClusterEnvironmentVariables = map[ClusterClassEnvVar]bool{ ManagementClusterNameEnv: true, ProvisionerNameEnv: true, ClusterClassNameEnv: true, }
Functions ¶
func GetClusterClassConfig ¶
func GetClusterClassConfig(clusterClassEnvVars map[ClusterClassEnvVar]string) string
func ReadClusterEnvironmentVariables ¶
func ReadClusterEnvironmentVariables() (envVars map[ClusterClassEnvVar]string, errs []error)
Types ¶
type ClusterClassEnvVar ¶
type ClusterClassEnvVar string
const ( // TKGM Env Vars. ManagementClusterNameEnv ClusterClassEnvVar = "MANAGEMENT_CLUSTER_NAME" ProvisionerNameEnv ClusterClassEnvVar = "PROVISIONER_NAME" ClusterClassNameEnv ClusterClassEnvVar = "CLUSTER_CLASS_NAME" )
Click to show internal directories.
Click to hide internal directories.