No description
  • Go 95.8%
  • Makefile 2.5%
  • HCL 0.6%
  • Dockerfile 0.4%
  • Shell 0.4%
  • Other 0.3%
Find a file
2026-03-05 09:20:57 +01:00
.changes v2.11.3 (#706) 2026-02-24 10:03:39 -08:00
.github Add support for the Red Hat UBI ARM64 image (#707) 2026-03-05 09:20:57 +01:00
.release Change Slack channel ID (#647) 2025-10-14 15:43:36 +02:00
api/v1alpha2 Clean up and separate the tests (#674) 2025-12-12 16:08:17 +01:00
charts v2.11.3 (#706) 2026-02-24 10:03:39 -08:00
cmd [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 1) (#679) 2025-12-05 13:25:11 +01:00
config v2.11.3 (#706) 2026-02-24 10:03:39 -08:00
docs [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 1) (#679) 2025-12-05 13:25:11 +01:00
hack Clean up and separate the tests (#674) 2025-12-12 16:08:17 +01:00
internal 🚀 Add user interaction status PolicyChecked for HCP TF (#703) 2026-02-20 13:32:04 -08:00
META.d [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 1) (#679) 2025-12-05 13:25:11 +01:00
scripts [COMPLIANCE] Update Copyright and License Headers (Batch 1 of 1) (#679) 2025-12-05 13:25:11 +01:00
test/e2e Fix operator not removing all tokens on agent token deletion (#681) 2025-12-12 16:26:07 +01:00
version v2.11.3 (#706) 2026-02-24 10:03:39 -08:00
.changie.yaml Update release related files (#444) 2024-07-25 15:23:06 +02:00
.copywrite.hcl Migrate changelog management to Changie (#325) 2024-02-09 11:45:44 +01:00
.dockerignore Initialize a new operator project 2022-07-22 12:01:34 +02:00
.gitignore Add Red Hat OpenShift Operator Bundle (#513) 2025-02-18 09:29:32 +01:00
CHANGELOG.md v2.11.3 (#706) 2026-02-24 10:03:39 -08:00
CONTRIBUTING.md Add Helm chart unit tests (#520) 2025-01-09 14:14:14 +01:00
Dockerfile Pre-release: bump dependency versions. (#685) 2025-12-17 17:54:33 +01:00
go.mod 🎉 v2.11.2 (#699) 2026-02-06 07:57:12 -08:00
go.sum 🎉 v2.11.2 (#699) 2026-02-06 07:57:12 -08:00
LICENSE Add community health files (#18) 2022-11-07 15:38:19 +01:00
Makefile Clean up and separate the tests (#674) 2025-12-12 16:08:17 +01:00
PROJECT Add a new Runs Collector controller (#637) 2025-09-30 15:35:47 +02:00
README.md v2.11.3 (#706) 2026-02-24 10:03:39 -08:00
RELEASING.md v2.10.0 (#658) 2025-11-12 09:10:39 +01:00

HCP Terraform

HCP Terraform Operator for Kubernetes

GitHub release (with filter) Docker Pulls Docker Pulls GitHub

Kubernetes Operator allows managing HCP Terraform / Terraform Enterprise resources via Kubernetes Custom Resources.

Note

From this point forward, the terms HCP Terraform can be used interchangeably with Terraform Enterprise in all documents, provided that the contrary is indicated.

The Operator can manage the following types of resources:

Getting started

To get started see our tutorials on the HashiCorp Developer Portal:

Documentation

Supported Features

The full list of supported HCP Terraform Operator features can be found on our Developer portal.

Installation

The Operator provides Helm chart as a first-class method of installation on Kubernetes.

Three simple commands to install the Operator:

$ helm repo add hashicorp https://helm.releases.hashicorp.com
$ helm repo update
$ helm install demo hashicorp/hcp-terraform-operator --wait --version 2.11.3

More detailed information about the installation and available values can be found here.

Usage

General usage documentation can be found here.

Controllers usage guides:

Annotations and Labels

Annotations and Labels used by HCP Terraform Operator can be found here.

Metrics

The Operator exposes metrics in the Prometheus format for each controller. More information can be found here.

API reference

API reference documentation can be found here.

Frequently Asked Questions

FAQ can be found here.

Examples

YAML manifests examples live here.

Community Contribution

If you come across articles, videos, how-tos, or any other resources that could assist individuals in adopting and utilizing the operator with greater efficiency, kindly inform us by initiating a pull request and placing a link within this designated section.

Your participation matters. Thank you for being a part of our community! 🙌

Troubleshooting

If you encounter any issues with the Operator there are a number of ways how to troubleshoot it:

  • check the Operator logs:

    $ kubectl logs -f <POD_NAME>
    

    Logs for a specific CR can be identified with the following pattern:

    {"<KIND>": "<NAMESPACE>/<METADATA.NAME>", "msg": "..."}
    

    For example:

    2023-01-05T12:11:31Z INFO Agent Pool Controller	{"agentpool": "default/this", "msg": "successfully reconcilied agent pool"}
    
  • check the CR:

    $ kubectl get agentpool <NAME>
    $ kubectl get agenttoken <NAME>
    $ kubectl get module <NAME>
    $ kubectl get project <NAME>
    $ kubectl get runscollector <NAME>
    $ kubectl get workspace <NAME>
    
  • check the CR events:

    $ kubectl describe agentpool <NAME>
    $ kubectl describe agenttoken <NAME>
    $ kubectl describe module <NAME>
    $ kubectl describe project <NAME>
    $ kubectl describe runscollector <NAME>
    $ kubectl describe workspace <NAME>
    

If you believe you've found a bug and cannot find an existing issue, feel free to open a new issue! Be sure to include as much information as you can about your environment.

Contributing to the Operator

We appreciate your enthusiasm for participating in the development of the HCP Terraform Operator. To contribute, please read the contribution guidelines.

Security Reporting

If you think you've found a security vulnerability, we'd love to hear from you.

Follow the instructions in SECURITY.md to make a report.