Documentation ¶
Index ¶
Constants ¶
const (
GenerateTempDir = true
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TerraformControlLoop ¶
type TerraformControlLoop struct {
// contains filtered or unexported fields
}
TerraformControlLoop is the Kubernetes controller that will ultimately be ran in a container. The controller is responsible for mutating infrastructure according to whatever definitions are currently set in the configured storage layer.
func NewTerraformControlLoop ¶
func NewTerraformControlLoop(options *TerraformControlLoopOptions, cacher storage.TerraformCtlCacher, persister storage.TerraformCtlPersister) *TerraformControlLoop
NewTerraformControlLoop will initialize a new TerraformCtlController and return it.
func (*TerraformControlLoop) Run ¶
func (t *TerraformControlLoop) Run() chan error
Run is the method that will start running the infrastructure controller concurrently.
func (*TerraformControlLoop) UpdateOptions ¶
func (t *TerraformControlLoop) UpdateOptions(options *TerraformControlLoopOptions)
UpdateOptions will accept a new TerraformControlLoopOptions struct and will attempt to send it over a channel to the control loop. Note that the function will hang until the control loop has read the new options into memory.
type TerraformControlLoopOptions ¶
type TerraformControlLoopOptions struct { // Stop is a bool that can be set to 1 to tell the control loop to stop running. // Use this bit to perform a clean exit of the control loop. Stop bool }
TerraformControlLoopOptions is a data structure that is used to configure, and update the control loop. Change these options and pass a new struct into UpdateOptions to change the control loops behavior.
type TerraformRunner ¶
type TerraformRunner struct {
// contains filtered or unexported fields
}
TerraformRunner maps a terraformctl TerraformConfiguration to the TerraformSDK
func NewTerraformRunner ¶
func NewTerraformRunner(configuration *parser.TerraformConfiguration) *TerraformRunner
NewTerraformRunner initializes a new TerraformRunner struct with specified configuration.
func (*TerraformRunner) Reconcile ¶
func (t *TerraformRunner) Reconcile() error
Apply will use the TerraformSDK to run a set of procedural terraform commands on the loaded TerraformConfiguration in an attempt to reconcile the infrastructure.