-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve rootless container Function debugging #35
Comments
Already a note here. I test stdin with an example
|
Another interesting output to have available would be e.g. debug output of the function run. |
This is a good way to debug locally, but I think ideally, with |
I think if the |
In the mean-time, you can debug by adding entries in For example, you can marshal the entire With debugging on, this will appear in the |
cool idea @dalton-hill-0, thanks for sharing! are you already doing this in your XFN's? feel free to drop a code snippet here for others to reference 😎 |
@jbw976 Here is a code snippet for GoLang that adds the
Note: To read the contents of the |
That will likely be helpful to other folks using XFNs in their current state, thanks for taking the time to share that snippet @dalton-hill-0! 💪 |
Crossplane does not currently have enough maintainers to address every issue and pull request. This issue has been automatically marked as |
/fresh still relevant |
I've moved this to https://github.com/crossplane/function-runtime-oci because I think a lot of it is coupled with the rootless container implementation. Under the new design, functions are just pods and can emit logs like any other pod to help with debugging. |
What problem are you facing?
We've heard from a few folks that it's hard to determine what's going wrong when their Composition Functions don't work. This is an open-ended issue to capture ideas to improve the situation.
How could Crossplane help solve your problem?
Some things to start with:
xfn run
and/ordocker run
to debug a Composition Function in isolation.FunctionIO
objects it sees to debug logs.The text was updated successfully, but these errors were encountered: