internal

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2020 License: Apache-2.0, MIT Imports: 8 Imported by: 0

Documentation

Index

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(
	restConfig *rest.Config,
	purpose,
	namespace,
	name string,
) (terraformer.Terraformer, error)

NewTerraformer initializes a new Terraformer.

func NewTerraformerWithAuth added in v1.4.0

func NewTerraformerWithAuth(
	restConfig *rest.Config,
	purpose,
	namespace,
	name string,
	serviceAccount *gcp.ServiceAccount,
) (terraformer.Terraformer, error)

NewTerraformerWithAuth initializes a new Terraformer that has the ServiceAccount credentials.

func SetTerraformerVariablesEnvironment added in v1.4.0

func SetTerraformerVariablesEnvironment(tf terraformer.Terraformer, serviceAccount *gcp.ServiceAccount) (terraformer.Terraformer, error)

SetTerraformerVariablesEnvironment sets the environment variables based on the given service account.

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.

Directories

Path Synopsis
mock
client
Package client is a generated GoMock package.
Package client is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL