tfc_utils

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ORG_NAME = "foo-corp"
View Source
const RUN_MESSAGE_PREFIX = "GitLab CI Scheduled"
View Source
const RunInfo = "%s:\n ID: %s	Status: %-12s	Source: %-20s	Commit Message: %s URL: https://app.terraform.io/app/zapier/workspaces/%s/runs/%s \n"

Variables

This section is empty.

Functions

func LockUnlockWorkspace

func LockUnlockWorkspace(ctx context.Context, token, workspace string, lock bool, lockReason string)

func MonitorRunStatus

func MonitorRunStatus()

MonitorRunStatus is the body of the `tfc status` CI job. It waits for TFBuddy to publish at least one commit status for the pipeline's commit and fails if none appears within the configured wait. No status means TFBuddy never saw the commit, usually because the GitLab webhook for the push was not delivered, and without this check the merge request pipeline would be green with no Terraform plan behind it.

Whether those runs pass or fail is not this job's concern: TFBuddy publishes the outcome onto the same pipeline (a failed plan fails it, a pending apply keeps it running), so the pipeline already carries that signal.

func StartScheduledRun

func StartScheduledRun(token, workspace string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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