redpanda-data / terraform-provider-redpanda

Apache License 2.0
6 stars 3 forks source link

fix: move cluster_api_url parsing out of Terraform lifecycle path #165

Closed ligfx closed 1 month ago

ligfx commented 1 month ago

If a Cluster or ServerlessCluster returns a URL that can't be parsed, it shouldn't be an error for that resource or taint the state.

This commit moves the parsing into cloud.SpawnConn instead, so an unparseable URL will only affect downstream resources that try to use it.