You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, it is hard to debug the terraform issues as the provider-terraform-controller exposes only brief error as the k8s event.
In cases when we need a full terraform CLI output to get more context of the error we need to kubectl exec -it into pod, copy the /tf/${workspace-uuid} directory and reproduce the error in isolation.
It takes time and is generally brittle and inconvenient.
How could Crossplane help solve your problem?
Possible solution:
Extend Workspace CRD Status with additional Log field
@ytsarev - what would you think about using Events for this type of information? I'm seeing some updates to workspaces that I don't expect and I was thinking that it would be useful to have the "diff" output from terraform plan available as an Event on the Workspace object so we can see why it thinks it needs to be updated. I don't know if there are size limitations to the Event text that would cause issues.
@bobh66 yes, Events would be ideal, the question is how and what to capture into the Event. Currently it is concise error output, putting the whole log is too much, maybe we can find a way to capture the enough log context around the error - that would be ideal
What problem are you facing?
Currently, it is hard to debug the terraform issues as the provider-terraform-controller exposes only brief error as the k8s event.
In cases when we need a full terraform CLI output to get more context of the error we need to
kubectl exec -it
into pod, copy the/tf/${workspace-uuid}
directory and reproduce the error in isolation.It takes time and is generally brittle and inconvenient.
How could Crossplane help solve your problem?
Possible solution:
The text was updated successfully, but these errors were encountered: