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

Null'ed params should pass their value to the template #1048

Open
squeedee opened this issue Oct 3, 2022 · 0 comments
Open

Null'ed params should pass their value to the template #1048

squeedee opened this issue Oct 3, 2022 · 0 comments

Comments

@squeedee
Copy link
Member

squeedee commented Oct 3, 2022

What happens:

in the Workload, a null param:

params:
  fred: null
  frodo: ~

is treated as "not provided" so the defaults are applied, if they exist, or an error occurs because a required param is not provided.

What should happen

null is a value, so the param should be present (and equal to nil) in the stamp context.

open questions

  1. can a ytt template author discern the difference between provided and nil, and not-provided?

concerns

This could easily be considered a breaking API change.

tasks

[ ] clearly update the documentation
[ ] standard template:s must imprint "null" for a provided but null value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant