Documentation
¶
Index ¶
- type Backend
- type Config
- type Runner
- func (r *Runner) Create() (string, error)
- func (r *Runner) DeleteJob() error
- func (r *Runner) Destroy() (string, error)
- func (r *Runner) Populate() error
- func (r *Runner) SaveOutputs() error
- func (r *Runner) SetExecutionRunStatus(s string) error
- func (r *Runner) TerraformInit() (string, error)
- func (r *Runner) WriteConfigFile() error
- func (r *Runner) WriteVarFile() error
- type Terraform
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Runner ¶
type Runner struct {
Action string
Namespace string
ExecutionRun *v1.ExecutionRun
GitAuth *git.Auth
K8sClient *kubernetes.Clientset
OpClient *v1.Clients
VarSecret *coreV1.Secret
}
func (*Runner) Create ¶
Create will create resources through terraform. If the execution AutoConfirm flag is set it will run 'plan' then 'apply', if the flag is not set 'plan' will run then the job will wait for the approved annotation to be set then the job will run 'apply' or exit.
func (*Runner) Destroy ¶
Destroy will destroy resources through terraform. If the execution AutoConfirm flag is set it will run 'destroy', if the flag is not set 'destroy' will run then the job will wait for the approved approved to be set then the job will run 'destroy' or exit
func (*Runner) SaveOutputs ¶
func (*Runner) SetExecutionRunStatus ¶
func (*Runner) TerraformInit ¶
TerraformInit runs the terraform init command
func (*Runner) WriteConfigFile ¶
func (*Runner) WriteVarFile ¶
Click to show internal directories.
Click to hide internal directories.