banzaicloud / terraform-provider-k8s

Kubernetes Terraform provider with support for raw manifests
https://registry.terraform.io/providers/banzaicloud/k8s
MIT License
134 stars 30 forks source link

Allow custom timeout for manifest resources #74

Closed matttrach closed 1 year ago

matttrach commented 3 years ago

Is your feature request related to a problem? Please describe.

Some resources take longer than 3 min to deploy.

Describe the solution you'd like to see

Use a variable to set the timeout of the resource, it seems to be hard coded at 3min currently.

Describe alternatives you've considered

An environment variable at the provider level would work as well, or a set number of retries.

Additional Context here

This appears to be where the resource has the timeout hard coded, using an env variable here or propagating a variable from the resource would be great.

nikolaishields commented 3 years ago

This would be greatly appreciated! Many times I have attempted a deployment where a custom resource requires more than 3 minutes to provision within kubernetes.

pepov commented 3 years ago

I beleive this should work so you should already be able to configure custom timeouts: https://www.terraform.io/docs/language/resources/syntax.html#operation-timeouts