tfctl

package
v0.13.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	// contains filtered or unexported fields
}

CLI is the main struct for the tfctl command line tool

func New

func New(build, release string) *CLI

New returns a new CLI instance

func (*CLI) ApprovePlan

func (c *CLI) ApprovePlan(out io.Writer, resource string) error

ApprovePlan approves the pending plan for a given terraform resource

func (*CLI) Create

func (c *CLI) Create(
	out io.Writer,
	name string,
	namespace string,
	path string,
	source string,
	interval string,
	export bool,
) error

Create generates a terraform resource

func (*CLI) DeleteTerraform

func (c *CLI) DeleteTerraform(out io.Writer, resource string) error

DeleteTerraform deletes the terraform resource from the cluster

func (*CLI) ForceUnlock added in v0.12.0

func (c *CLI) ForceUnlock(out io.Writer, resource, lockID string) error

ForceUnlock will set the corresponding field and request a reconciliation for the corresponding resource.

func (*CLI) Get

func (c *CLI) Get(out io.Writer) error

Get prints information about terraform resources

func (*CLI) GetTerraform

func (c *CLI) GetTerraform(out io.Writer, resource string) error

GetTerraform prints information about the provided resource

func (*CLI) Init

func (c *CLI) Init(k8sConfig *rest.Config, config *viper.Viper) error

Init initializes the CLI instance for a given kubeconfig, namespace and terraform binary

func (*CLI) Install

func (c *CLI) Install(out io.Writer, version string, export bool) (err error)

Install installs the tf-controller resources into the cluster.

func (*CLI) Reconcile

func (c *CLI) Reconcile(out io.Writer, resource string) error

Reconcile annotates the given object

func (*CLI) Resume

func (c *CLI) Resume(out io.Writer, resource string) error

Resume sets the resume field to true on the given Terraform resource.

func (*CLI) ShowPlan

func (c *CLI) ShowPlan(out io.Writer, resource string) error

ShowPlan displays the plan for the given Terraform resource

func (*CLI) Suspend

func (c *CLI) Suspend(out io.Writer, resource string) error

Suspend sets the suspend field to true on the given Terraform resource.

func (*CLI) Uninstall

func (c *CLI) Uninstall(out io.Writer) error

Uninstall removes the tf-controller resources from the cluster.

func (*CLI) Version

func (c *CLI) Version(out io.Writer) error

Version prints the installed version of tf-controller and the tfctl cli

Jump to

Keyboard shortcuts

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