terraform-provider-kubernetes icon indicating copy to clipboard operation
terraform-provider-kubernetes copied to clipboard

resourceKubernetesNamespaceExists error not reflected accurately in output

Open chaychoong opened this issue 4 years ago • 1 comments

I ran into an error where the namespace exists, but the error is output as such

│ Error: Get "http://localhost/api/v1/namespaces/xxx": dial tcp [::1]:80: connect: connection refused

When TF_LOG=DEBUG is flipped on, the error is clearly seen as such

[DEBUG] provider.terraform-provider-kubernetes_v2.4.1_x5: 2021/08/11 16:21:54 [DEBUG] Received error: &url.Error{Op:"Get", URL:"http://localhost/api/v1/namespaces/xxx", Err:(*net.OpError)(0xc000564000)}
[DEBUG] provider.terraform-provider-kubernetes_v2.4.1_x5: 2021/08/11 16:21:54 [INFO] Namespace xxx exists

Is this intended?

chaychoong avatar Aug 11 '21 08:08 chaychoong

Marking this issue as stale due to inactivity. If this issue receives no comments in the next 30 days it will automatically be closed. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. This helps our maintainers find and focus on the active issues. Maintainers may also remove the stale label at their discretion. Thank you!

github-actions[bot] avatar Aug 12 '22 00:08 github-actions[bot]

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

github-actions[bot] avatar Oct 11 '22 02:10 github-actions[bot]