hashicorp / terraform-k8s

Terraform Cloud Operator for Kubernetes
https://learn.hashicorp.com/tutorials/terraform/kubernetes-operator?in=terraform/kubernetes
Mozilla Public License 2.0
455 stars 71 forks source link

add workspace tags to the spec #114

Open nhomble opened 2 years ago

nhomble commented 2 years ago

Community Note

Description

Along with workspace creation, I'd like to see the ability to tag my workspace via the Workspace custom resource.

Potential Terraform Configuration

I think we could enhance the spec with a tags section. go-tfe already supports what we need.

And then it looks like we can just reconcile here https://github.com/hashicorp/terraform-k8s/blob/master/workspacehelper/tfc_org.go#L167

References

Hashicorp blog post on the feature: https://www.hashicorp.com/blog/new-workspace-tags-for-terraform-cloud