Documentation
¶
Index ¶
Constants ¶
View Source
const ( // WorkingVolumeMountPath is the mount path for working volume WorkingVolumeMountPath = "/data" // InputTFConfigurationVolumeName is the volume name for input Terraform Configuration InputTFConfigurationVolumeName = "tf-input-configuration" // BackendVolumeName is the volume name for Terraform backend BackendVolumeName = "tf-backend" // InputTFConfigurationVolumeMountPath is the volume mount path for input Terraform Configuration InputTFConfigurationVolumeMountPath = "/opt/tf-configuration" // BackendVolumeMountPath is the volume mount path for Terraform backend BackendVolumeMountPath = "/opt/tf-backend" )
View Source
const ( // TerraformStateNameInSecret is the key name to store Terraform state TerraformStateNameInSecret = "tfstate" // TFInputConfigMapName is the CM name for Terraform Input Configuration TFInputConfigMapName = "%s-tf-input" )
View Source
const ( // MessageDestroyJobNotCompleted is the message when Configuration deletion isn't completed MessageDestroyJobNotCompleted = "Configuration deletion isn't completed" // MessageApplyJobNotCompleted is the message when cloud resources are not created completed MessageApplyJobNotCompleted = "cloud resources are not created completed" // MessageCloudResourceProvisioningAndChecking is the message when cloud resource is being provisioned MessageCloudResourceProvisioningAndChecking = "Cloud resources are being provisioned and provisioning status is checking..." // ErrUpdateTerraformApplyJob means hitting an issue to update Terraform apply job ErrUpdateTerraformApplyJob = "Hit an issue to update Terraform apply job" // MessageCloudResourceDeployed means Cloud resources are deployed and ready to use MessageCloudResourceDeployed = "Cloud resources are deployed and ready to use" // MessageCloudResourceDestroying is the message when cloud resource is being destroyed MessageCloudResourceDestroying = "Cloud resources is being destroyed..." // ErrProviderNotReady means provider object is not ready ErrProviderNotReady = "Provider is not ready" // MessageProviderReady means provider object is ready MessageProviderReady = "Provider is ready" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationReconciler ¶
type ConfigurationReconciler struct {
client.Client
Log logr.Logger
Scheme *runtime.Scheme
ProviderName string
}
ConfigurationReconciler reconciles a Configuration object.
func (*ConfigurationReconciler) SetupWithManager ¶
func (r *ConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager setups with a manager
type ProviderReconciler ¶
ProviderReconciler reconciles a Provider object
func (*ProviderReconciler) SetupWithManager ¶
func (r *ProviderReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager setups with a manager
type TFConfigurationMeta ¶ added in v0.2.0
type TFConfigurationMeta struct {
Name string
Namespace string
ConfigurationType types.ConfigurationType
CompleteConfiguration string
RemoteGit string
ConfigurationChanged bool
ConfigurationCMName string
BackendCMName string
ApplyJobName string
DestroyJobName string
Envs []v1.EnvVar
ProviderReference *crossplane.Reference
}
TFConfigurationMeta is all the metadata of a Configuration
type TerraformExecutionType ¶
type TerraformExecutionType string
TerraformExecutionType is the type for Terraform execution
const ( // TerraformApply is the name to mark `terraform apply` TerraformApply TerraformExecutionType = "apply" // TerraformDestroy is the name to mark `terraform destroy` TerraformDestroy TerraformExecutionType = "destroy" )
Click to show internal directories.
Click to hide internal directories.