terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

Add template labels support to kubernetes labels

Open theloneexplorerquest opened this issue 1 year ago • 0 comments

Description

resolve https://github.com/hashicorp/terraform-provider-kubernetes/issues/2310

Acceptance tests

  • [x] Have you added an acceptance test for the functionality being added?
  • [x] Have you run the acceptance tests on this branch?

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccKubernetesLabels'
==> Checking that code complies with gofmt requirements...
go vet ./...
TF_ACC=1 KUBE_CONFIG_PATH='/home/xxx/.kube/config' go test "/home/xxx/terraform-provider-kubernetes/kubernetes" -v === RUN   TestAccKubernetesLabels_basic
=== PAUSE TestAccKubernetesLabels_basic
=== RUN   TestAccKubernetesLabels_template_cronjob
=== PAUSE TestAccKubernetesLabels_template_cronjob
=== RUN   TestAccKubernetesLabels_template_deployment
=== PAUSE TestAccKubernetesLabels_template_deployment
=== RUN   TestAccKubernetesLabels_template_only
=== PAUSE TestAccKubernetesLabels_template_only
=== RUN   TestAccKubernetesLabels_resource_only
=== PAUSE TestAccKubernetesLabels_resource_only
=== CONT  TestAccKubernetesLabels_basic
=== CONT  TestAccKubernetesLabels_template_only
=== CONT  TestAccKubernetesLabels_template_deployment
=== CONT  TestAccKubernetesLabels_resource_only
=== CONT  TestAccKubernetesLabels_template_cronjob
--- PASS: TestAccKubernetesLabels_resource_only (12.26s)
--- PASS: TestAccKubernetesLabels_template_only (12.41s)
--- PASS: TestAccKubernetesLabels_template_deployment (15.62s)
--- PASS: TestAccKubernetesLabels_template_cronjob (16.85s)
--- PASS: TestAccKubernetesLabels_basic (16.90s)
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes   16.930s

Release Note

Release note for CHANGELOG:

* `resource/kubernetes_labels`: Add a new attribute `template_labels`. [[GH-2310](https://github.com/hashicorp/terraform-provider-kubernetes/issues/2310)]

References

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

theloneexplorerquest avatar Apr 20 '24 13:04 theloneexplorerquest