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

Can an overlay change a function definition? #922

Open
scastria opened this issue Jun 24, 2024 · 2 comments
Open

Can an overlay change a function definition? #922

scastria opened this issue Jun 24, 2024 · 2 comments
Labels
discussion This issue is not a bug or feature and a conversation is needed to find an appropriate resolution

Comments

@scastria
Copy link

Suppose I had a yml file that declared a function that is called throughout that yml file. Can I add an overlay that redefines that function to have different content?

@scastria scastria added the carvel triage This issue has not yet been triaged for relevance label Jun 24, 2024
@prembhaskal
Copy link
Contributor

I think it cannot.
If you see here https://carvel.dev/ytt/docs/v0.49.x/how-it-works/ , overlay works on top of evaluated templates. Evaluated templates cannot have function definition because ytt does not emit comments, and all functions are defined as comments.

@renuy renuy added discussion This issue is not a bug or feature and a conversation is needed to find an appropriate resolution and removed carvel triage This issue has not yet been triaged for relevance labels Jul 5, 2024
@renuy
Copy link

renuy commented Jul 5, 2024

@scastria
for ytt clarifications, you can also reach out on #carvel in Kubernetes Slack

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
Projects
Status: No status
Development

No branches or pull requests

3 participants