Documentation ¶
Overview ¶
Package pkg contains logic for executing Terraform actions
Index ¶
Constants ¶
View Source
const ( AwsAccessKeyID = "aws_access_key_id" AwsSecretAccessKey = "aws_secret_access_key" AwsRegion = "region" AwsBucket = "bucket" )
standardized AppSRE terraform secret keys
View Source
const ( TfVarsFile = "plan.tfvars" BackendFile = "s3.tfbackend" )
terraform specific filenames
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Executor ¶
type Executor struct {
// contains filtered or unexported fields
}
Executor includes required secrets and variables to perform a tf repo executor run
type Input ¶
type Input struct { DryRun bool `yaml:"dry_run" json:"dry_run"` Repos []Repo `yaml:"repos" json:"repos"` }
Input holds YAML/JSON loaded from CONFIG_FILE and is passed from Qontract Reconcile
type Repo ¶
type Repo struct { Name string `yaml:"name" json:"name"` URL string `yaml:"repository" json:"repository"` Path string `yaml:"project_path" json:"project_path"` Ref string `yaml:"ref" json:"ref"` Delete bool `yaml:"delete" json:"delete"` Secret vaultutil.VaultSecret `yaml:"secret" json:"secret"` Bucket string `yaml:"bucket,omitempty" json:"bucket,omitempty"` Region string `yaml:"region,omitempty" json:"region,omitempty"` BucketPath string `yaml:"bucket_path,omitempty" json:"bucket_path,omitempty"` RequireFips bool `yaml:"require_fips" json:"require_fips"` }
Repo represents an individual Terraform Repo
Click to show internal directories.
Click to hide internal directories.