carvel-dev / carvel-dev/ytt

ytt execution can be interrupted (via a Go Context)

Open
#593 9 comments 3 reactions 1 assignee Claimed by @pivotaljohn View on GitHub
blocked on upstream enhancement priority/important-soon
Dominant language
Go
Stars
1.9k
Forks
167
PR merge metrics
No merged PRs in 30d

Description

**Describe the problem/challenge you have**

We would like to use the ytt Go module but we'd like to protect against bad templates that may take down the system (e.g. a template that defines an infinite loop). If we shell out to the executable, we can pass a context with a timeout to protect against this. With the go module, though, there is no way to pass such a context.

**Describe the solution you'd like**

Allow the ytt Go module to accept a context so we can get a timeout.

**Additional Information**

Related Slack conversation: https://kubernetes.slack.com/archives/CH8KCCKA5/p1642715223106300

---
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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.