Skip to content
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

Provide a way to either render output to stderr and/or include custom output to --debug #497

Open
4 tasks
pivotaljohn opened this issue Sep 29, 2021 · 1 comment
Labels
discussion This issue is not a bug or feature and a conversation is needed to find an appropriate resolution enhancement This issue is a feature request

Comments

@pivotaljohn
Copy link
Contributor

pivotaljohn commented Sep 29, 2021

Describe the problem/challenge you have
Something blows up in some Starlark code in my template; but it's hard to get to the root cause because I can't see the values of expressions at runtime.

Describe the solution you'd like
The ability to include trace output during a ytt run. Even better if I could leave such tracing and be able to toggle it on and off from the command-line (e.g. include in --debug or introduce a flag --trace)

Anything else you would like to add:
The current workaround is to use assert.fail() in spots close to where the error occurs and include the desired context that way.

This idea has come up multiple times (in fact, hard to believe there isn't already an issue about this). Most recently in this Slack conversation: https://kubernetes.slack.com/archives/CH8KCCKA5/p1632938666479600

To do:

  • enumerate use-cases; describe a number of scenarios where runtime information/data/state would be useful.
  • explore whether the generalized solution for addressing those use-cases would be best as an enhancement to --debug or a separate mechanism (e.g. another flag)
  • explore how complex/custom Starlark values (structs, yamlfragments, ...) would be presented.
  • explore what security concerns might be present.

Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@pivotaljohn pivotaljohn added enhancement This issue is a feature request discussion This issue is not a bug or feature and a conversation is needed to find an appropriate resolution labels Sep 29, 2021
@jayunit100
Copy link

yup ! pleeeaseeeeee

@aaronshurley aaronshurley moved this to To Triage in Carvel Aug 18, 2022
@github-project-automation github-project-automation bot moved this to To Triage in Carvel Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion This issue is not a bug or feature and a conversation is needed to find an appropriate resolution enhancement This issue is a feature request
Projects
Status: To Triage
Development

No branches or pull requests

2 participants