Documentation ¶
Index ¶
- Variables
- func AddSSHKeyIfExist()
- func CreateK8SConfig() (*rest.Config, error)
- func LoadEnv() error
- func UpdateSecretWithOutputs(outputs map[string][]byte) error
- type EnvConfig
- type TerraformRunner
- func (r *TerraformRunner) Apply(opts ...tfexec.ApplyOption) error
- func (r *TerraformRunner) Destroy(opts ...tfexec.DestroyOption) error
- func (r *TerraformRunner) GetApplyOptions() []tfexec.ApplyOption
- func (r *TerraformRunner) GetDestroyOptions() []tfexec.DestroyOption
- func (r *TerraformRunner) GetOutputs() (map[string][]byte, error)
- func (r *TerraformRunner) GetPlanOptions() []tfexec.PlanOption
- func (r *TerraformRunner) Init() error
- func (r *TerraformRunner) Plan(opts ...tfexec.PlanOption) error
- func (r *TerraformRunner) SelectWorkspace(workspace string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientSet kubernetes.Interface
Functions ¶
func AddSSHKeyIfExist ¶
func AddSSHKeyIfExist()
func CreateK8SConfig ¶
func UpdateSecretWithOutputs ¶
Types ¶
type EnvConfig ¶
type EnvConfig struct { WorkingDir string TerraformVersion string PodNamespace string OutputSecretName string Workspace string Destroy bool VarFilesPath string }
var Env *EnvConfig
type TerraformRunner ¶
func Setup ¶
func Setup() (*TerraformRunner, error)
func (*TerraformRunner) Apply ¶
func (r *TerraformRunner) Apply(opts ...tfexec.ApplyOption) error
func (*TerraformRunner) Destroy ¶
func (r *TerraformRunner) Destroy(opts ...tfexec.DestroyOption) error
func (*TerraformRunner) GetApplyOptions ¶
func (r *TerraformRunner) GetApplyOptions() []tfexec.ApplyOption
func (*TerraformRunner) GetDestroyOptions ¶
func (r *TerraformRunner) GetDestroyOptions() []tfexec.DestroyOption
func (*TerraformRunner) GetOutputs ¶
func (r *TerraformRunner) GetOutputs() (map[string][]byte, error)
func (*TerraformRunner) GetPlanOptions ¶
func (r *TerraformRunner) GetPlanOptions() []tfexec.PlanOption
func (*TerraformRunner) Init ¶
func (r *TerraformRunner) Init() error
func (*TerraformRunner) Plan ¶
func (r *TerraformRunner) Plan(opts ...tfexec.PlanOption) error
func (*TerraformRunner) SelectWorkspace ¶
func (r *TerraformRunner) SelectWorkspace(workspace string) error
Click to show internal directories.
Click to hide internal directories.