container

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GitContainerName = "git-configuration"
View Source
const InputContainerName = "prepare-input-terraform-configurations"

Variables

This section is empty.

Functions

This section is empty.

Types

type Assembler

type Assembler struct {
	Name string

	GitCredential              bool
	TerraformCredential        bool
	TerraformRC                bool
	TerraformCredentialsHelper bool

	TerraformImage string
	BusyboxImage   string
	GitImage       string

	Git  types.Git
	Envs []v1.EnvVar
}

Assembler helps to assemble the init containers

func NewAssembler

func NewAssembler(name string) *Assembler

func (*Assembler) ApplyContainer

func (a *Assembler) ApplyContainer(executionType types.TerraformExecutionType, resourceQuota types.ResourceQuota) v1.Container

func (*Assembler) GitContainer

func (a *Assembler) GitContainer() v1.Container

GitContainer will clone the git repository, and copy the files to the working directory

func (*Assembler) GitCredReference

func (a *Assembler) GitCredReference(ptr *v1.SecretReference) *Assembler

func (*Assembler) InitContainer

func (a *Assembler) InitContainer() v1.Container

InitContainer will run terraform init

func (*Assembler) InputContainer

func (a *Assembler) InputContainer() v1.Container

InputContainer prepare input .tf files, copy them to the working directory

func (*Assembler) SetBusyboxImage

func (a *Assembler) SetBusyboxImage(image string) *Assembler

func (*Assembler) SetEnvs

func (a *Assembler) SetEnvs(envs []v1.EnvVar) *Assembler

func (*Assembler) SetGit

func (a *Assembler) SetGit(git types.Git) *Assembler

func (*Assembler) SetGitImage

func (a *Assembler) SetGitImage(image string) *Assembler

func (*Assembler) SetTerraformImage

func (a *Assembler) SetTerraformImage(image string) *Assembler

func (*Assembler) TerraformCredReference

func (a *Assembler) TerraformCredReference(ptr *v1.SecretReference) *Assembler

func (*Assembler) TerraformCredentialsHelperReference

func (a *Assembler) TerraformCredentialsHelperReference(ptr *v1.SecretReference) *Assembler

func (*Assembler) TerraformRCReference

func (a *Assembler) TerraformRCReference(ptr *v1.SecretReference) *Assembler

Jump to

Keyboard shortcuts

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