Documentation ¶
Index ¶
- Constants
- func NewTerraformer(logger logr.Logger, restConfig *rest.Config, purpose string, ...) (terraformer.Terraformer, error)
- func NewTerraformerWithAuth(logger logr.Logger, restConfig *rest.Config, purpose string, ...) (terraformer.Terraformer, error)
- func SetTerraformerEnvVars(tf terraformer.Terraformer, secretRef corev1.SecretReference) (terraformer.Terraformer, error)
- func TerraformerVariablesEnvironmentFromServiceAccount(account *gcp.ServiceAccount) (map[string]string, error)
Constants ¶
View Source
const (
// CloudProviderConfigName is the name of the configmap containing the cloud provider config.
CloudProviderConfigName = "cloud-provider-config"
)
View Source
const (
// TerraformVarServiceAccount is the name of the terraform service account environment variable.
TerraformVarServiceAccount = "TF_VAR_SERVICEACCOUNT"
)
Variables ¶
This section is empty.
Functions ¶
func NewTerraformer ¶
func NewTerraformer( logger logr.Logger, restConfig *rest.Config, purpose string, infra *extensionsv1alpha1.Infrastructure, disableProjectedTokenMount bool, ) ( terraformer.Terraformer, error, )
NewTerraformer initializes a new Terraformer.
func NewTerraformerWithAuth ¶ added in v1.4.0
func NewTerraformerWithAuth( logger logr.Logger, restConfig *rest.Config, purpose string, infra *extensionsv1alpha1.Infrastructure, disableProjectedTokenMount bool, ) ( terraformer.Terraformer, error, )
NewTerraformerWithAuth initializes a new Terraformer that has the ServiceAccount credentials.
func SetTerraformerEnvVars ¶ added in v1.13.0
func SetTerraformerEnvVars(tf terraformer.Terraformer, secretRef corev1.SecretReference) (terraformer.Terraformer, error)
SetTerraformerEnvVars sets the environment variables based on the given secret reference.
func TerraformerVariablesEnvironmentFromServiceAccount ¶
func TerraformerVariablesEnvironmentFromServiceAccount(account *gcp.ServiceAccount) (map[string]string, error)
TerraformerVariablesEnvironmentFromServiceAccount computes the Terraformer variables environment from the given ServiceAccount.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.