tfgen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package tfgen renders deterministic Podplane-managed OpenTofu/Terraform files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCluster

func WriteCluster(configPath string, cfg *clusterconfig.ClusterConfig, opts ClusterOptions) error

WriteCluster writes managed Terraform files for a cluster config path.

func WriteFiles

func WriteFiles(dir string, files []File) error

WriteFiles writes managed Terraform files with the Podplane header.

func WriteOIDC

func WriteOIDC(dir string, cfg *oidcconfig.Config) error

WriteOIDC writes managed Terraform files for an OIDC config.

Types

type ClusterOptions added in v0.1.2

type ClusterOptions struct {
	DepsMirrorURL     string
	VMConfigManifests map[string]*deps.Manifest
}

ClusterOptions provides dependency inputs needed to render cluster Terraform.

type File

type File struct {
	Name    string
	Content string
}

File is one managed Terraform file to write.

func GenerateCluster

func GenerateCluster(configPath string, cfg *clusterconfig.ClusterConfig, opts ClusterOptions) ([]File, error)

GenerateCluster renders managed Terraform files for a cluster config path.

func GenerateOIDC

func GenerateOIDC(cfg *oidcconfig.Config) ([]File, error)

GenerateOIDC renders managed Terraform files for an OIDC config.

Jump to

Keyboard shortcuts

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