util

package
v0.0.0-...-81b0bac Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HCL_DIR           = "HCL_DIR"
	TERRAFORM_VERSION = "0.12.20"

	TERRAFORM_BINARY_NAME = "terraform"
	TERRAFORM_BINARY_URL  = "https://releases.hashicorp.com/terraform"
)

Variables

This section is empty.

Functions

func ExecBranchCheckout

func ExecBranchCheckout(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecClone

func ExecClone(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecGetCommitID

func ExecGetCommitID(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecGitPull

func ExecGitPull(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecReadState

func ExecReadState(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecRecoverState

func ExecRecoverState(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecRevertCommit

func ExecRevertCommit(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecTerraformApply

func ExecTerraformApply(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecTerraformDestroy

func ExecTerraformDestroy(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecTerraformDownload

func ExecTerraformDownload(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecTerraformInit

func ExecTerraformInit(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func ExecTerraformPlan

func ExecTerraformPlan(client kubernetes.Interface, config *restclient.Config, podName string, podNamespace string,
	stdin io.Reader, stdout io.Writer, stderr io.Writer, apply *claimv1alpha1.TFApplyClaim) error

func GetTerraformVariables

func GetTerraformVariables(tfapply *claimv1alpha1.TFApplyClaim) string

func LowestNonZeroResult

func LowestNonZeroResult(i, j ctrl.Result) ctrl.Result

LowestNonZeroResult compares two reconciliation results and returns the one with lowest requeue time.

func ReadIDFromFile

func ReadIDFromFile(filename string) (string, error)

ReadIDFromFile returns a Cloud Resource ID from Terraform State File

Types

This section is empty.

Jump to

Keyboard shortcuts

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