hashicorp / terraform-k8s

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

Adding missing Category for Workspace Variable #141

Open jtyr opened 2 years ago

jtyr commented 2 years ago

This is a draft PR that is adding missing functionality to change variable category once the variable was already created in TFC. It's a draft because there is missing functionality to set the variable category in the upstream TFE SDK. I have created PR to add the functionality to the SDK so as soon as that's merged, I will amend this PR with updated upstream SDK.

jtyr commented 2 years ago

I have upgraded the go-tfe dependency to the latest version to get the Category support available. As the go-tfe interface changed a little bit, I had to modify some other bits of the code to reflect that.