infrakube

command module
v1.0.0-dev3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

README

Infrakube

A Kubernetes controller for running Terraform and other Infrastructure as Code workflows.

Infrakube is the successor to terraform-operator. It uses the same kind: Terraform resource and keeps familiar spec fields like terraformVersion, terraformModule, and images.terraform, making migration straightforward. The main change is the API group, which moves from tf.galleybytes.com to infrakube.galleybytes.com.

Features

  • Runs Terraform init, plan, and apply as Kubernetes pods
  • Supports all Terraform versions from 0.12 through 1.14 out of the box
  • Module downloads via git, https, and other sources supported by go-getter
  • Kubernetes, S3, GCS, and other Terraform backends
  • AWS IRSA, GCP Workload Identity, and other cloud auth methods
  • Task plugins for custom pre/post workflows
  • Monitor plugins for notifications and observability

Quick Start

apiVersion: infrakube.galleybytes.com/v1
kind: Terraform
metadata:
  name: my-infra
spec:
  terraformVersion: "1.5.7"
  terraformModule:
    source: https://github.com/example/module.git?ref=main
  backend: |-
    terraform {
      backend "kubernetes" {
        secret_suffix     = "my-infra"
        in_cluster_config = true
      }
    }

Support expectations

The automated suite is meant to prove controller behavior, task orchestration, and basic workflow execution. It does not try to cover every provider or cloud-specific module in the default CI path. If stronger proof is needed later, sandbox cloud smoke tests can live in separate nightly or manually triggered workflows.

For local test workflow details, see docs/testing.md.

Community

Join the channel: https://discord.gg/J5vRmT2PWg

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
pkg
apis/infrakube
Package tf contains tf API versions.
Package tf contains tf API versions.
apis/infrakube/v1
Package v1 contains API Schema definitions for the terraform v1 API group +k8s:deepcopy-gen=package,register +groupName=infrakube.galleybytes.com
Package v1 contains API Schema definitions for the terraform v1 API group +k8s:deepcopy-gen=package,register +groupName=infrakube.galleybytes.com
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/infrakube/v1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/infrakube/v1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
projects
gendocs command

Jump to

Keyboard shortcuts

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