hashicorp / terraform-provider-kubernetes

Terraform Kubernetes provider
https://www.terraform.io/docs/providers/kubernetes/
Mozilla Public License 2.0
1.56k stars 963 forks source link

Add support for deferred actions #2510

Closed alexsomesan closed 3 weeks ago

alexsomesan commented 1 month ago

Description

This change adds support for an upcoming experimental mechanism in Terraform which delays applying certain resources when the provider isn't fully configured (parent cluster hasn't been yet created) or part of the information needed to fully evaluate the resource isn't available (e.g. CRD not yet installed when applying CR)

Acceptance tests

Output from acceptance testing:

$ TF_ACC=1 go test -v -run '^TestAccKubernetesDeferredActions_2_step$' ./kubernetes/test-dfa
=== RUN   TestAccKubernetesDeferredActions_2_step
--- PASS: TestAccKubernetesDeferredActions_2_step (42.00s)
PASS
ok      github.com/hashicorp/terraform-provider-kubernetes/kubernetes/test-dfa  42.772s

Release Note

Release note for CHANGELOG:

...

References

Community Note