controllers

package
v0.0.0-...-3a966af Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Terraform image which can run `terraform init/plan/apply`
	// hit issue `toomanyrequests` for "zzxwill/docker-terraform:0.14.10"
	TerraformImage = "registry.cn-hongkong.aliyuncs.com/zzxwill/docker-terraform:0.14.10"

	TFStateRetrieverImage = "zzxwill/terraform-tfstate-retriever:v0.3"
)
View Source
const (
	WorkingVolumeMountPath              = "/data"
	InputTFConfigurationVolumeName      = "tf-input-configuration"
	InputTFConfigurationVolumeMountPath = "/opt/tfconfiguration"
	TFStateFileVolumeName               = "tf-state-file"
	TFStateFileVolumeMountPath          = "/opt/tfstate"

	SucceededPod int32 = 1
)
View Source
const (
	TerraformJSONConfigurationName = "main.tf.json"
	TerraformHCLConfigurationName  = "main.tf"
	TerraformStateName             = "terraform.tfstate"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapName

type ConfigMapName string
const (
	TFInputConfigMapSName ConfigMapName = "%s-tf-input"
	TFStateConfigMapName  ConfigMapName = "%s-tf-state"
)

type ConfigurationReconciler

type ConfigurationReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ConfigurationReconciler reconciles a Configuration object.

func (*ConfigurationReconciler) Reconcile

func (r *ConfigurationReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ConfigurationReconciler) SetupWithManager

func (r *ConfigurationReconciler) SetupWithManager(mgr ctrl.Manager) error

type ProviderReconciler

type ProviderReconciler struct {
	client.Client
	Log    logr.Logger
	Scheme *runtime.Scheme
}

ProviderReconciler reconciles a Provider object

func (*ProviderReconciler) Reconcile

func (r *ProviderReconciler) Reconcile(req ctrl.Request) (ctrl.Result, error)

func (*ProviderReconciler) SetupWithManager

func (r *ProviderReconciler) SetupWithManager(mgr ctrl.Manager) error

type TFState

type TFState struct {
	Outputs map[string]v1beta1.Property `json:"outputs"`
}

type TerraformExecutionType

type TerraformExecutionType string
const (
	TerraformApply   TerraformExecutionType = "apply"
	TerraformDestroy TerraformExecutionType = "destroy"
)

type Variable

type Variable map[string]interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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