terraform-provider-kubernetes
terraform-provider-kubernetes copied to clipboard
resourceKubernetesNamespaceExists error not reflected accurately in output
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?
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!
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.