package
0.0.0-20200513225311-3091b230b736
Repository: https://github.com/scipian/terraform-controller.git
Documentation: pkg.go.dev

# Functions

AddFinalizer adds the finalizer to the given Object.
CustomClientWithCertPool is a public function that creates a cert pool to be used with the http client.
HasFinalizer checks for the presence of the finalizer.
RemoveFinalizer removes the finalizer from the given Object.
RetrieveState function downloads tfstate file from S3 bucket and returns the processed tfstate as a string.
S3Puller is a public function that pulls a terraform.tfstate file from an S3 bucket.

# Constants

AccessKey is the AWS_ACCESS_KEY_ID name for the Scipian AWS IAM creds stored in the ScipianIAMSecretName.
ScipianIAMSecretName is the Secret name for the Scipian IAM credentials.
ScipianNamespace is the Namespace the ScipianIAMSecretName exists.
SecretKey is the AWS_SECRET_ACCESS_KEY name for the Scipian AWS IAM creds stored in the ScipianIAMSecretName.
TFDestroy is the Terraform command for running Terraform destroy on resources.
TFPlan is the Terraform command for initializing, selecting a workspace, planning, and applying.
TFStateFileName is the name of the terraform state file.
TFWorkspaceDelete is the Terraform command for deleting an existing Terraform Workspace.
TFWorkspaceNew is the Terraform command for creating a new Terraform Workspace.
WorkspaceFinalizerName is the name of the finalizer assigned to Workspace objects.

# Interfaces

Object is used as a helper interface when passing Kubernetes resources between methods.