hashicorp / terraform-k8s

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

Add Retry Logic #149

Open EmmanuelOgiji opened 2 years ago

EmmanuelOgiji commented 2 years ago

Community Note

Description

It would be very useful if the operator supported retrying (i.e. just reapplying the same terraform config to a workspace). This is because there are a few terraform and even provider (like AWS) errors that can be resolved just by re-runs.

Potential Terraform Configuration

Ideally, this will just be part of the CRD (under spec) and support options like retry.limit, retry.delay and retry.exponentialBackoff e.g.

spec:
   ------
   retry:
     limit: 3
     delay: 10
     exponentialBackoff: true