Increase timeout for cdktf deploys

I sometimes have to deploy changes to my datadog helm chart. The helm chart by default has a maxSurge of 1 which means it replaces each agent one at a time. This often takes long time and I often see cdktf time out waiting for this to complete:

[2022-10-31T12:35:13.001] [ERROR] default - ╷
│ Error: timed out waiting for the condition
│
│   with helm_release.datadog-agent,
│   on cdk.tf.json line 1084, in resource.helm_release.datadog-agent:
│ 1084:       },
goldsky-infra-dev  ╷
                   │ Error: timed out waiting for the condition
                   │
                   │   with helm_release.datadog-agent (datadog-agent),
                   │   on cdk.tf.json line 1084, in resource.helm_release.datadog-agent (datadog-agent):
                   │ 1084:       },
                   │
                   ╵

Is there a way to increase how long cdktf will wait for deployments to rollout?

Hi!

I’d have to look to be sure, but this looks like a problem with the helm chart rather than CDKTF. One thing I also found was that there’s a timeout in the helm_release resource: Terraform Registry. It defaults to 300, but you might want to increase that for this chart.

Let me know if this helps.

oh d’oh! Good find! Let me give that timeout in the chart definition a try. It sure looks like what I need.