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

Data values files #398

Merged
merged 3 commits into from
May 29, 2021
Merged

Data values files #398

merged 3 commits into from
May 29, 2021

Conversation

cppforlife
Copy link
Contributor

@cppforlife cppforlife commented May 24, 2021

still in draft.

implements this proposal: https://github.com/vmware-tanzu/carvel-community/tree/develop/proposals/ytt/002-raw-data-values for #381

this PR also:

  • adds or_add=True to @overlay/replace so that when map key does not match, replace would fallback to just adding map item
  • relaxes data values given over cmd line (--data-values-* family) to not require existing values in the data values overlays

@cppforlife cppforlife marked this pull request as ready for review May 26, 2021 20:29
pkg/cmd/template/cmd_data_values_file_test.go Outdated Show resolved Hide resolved
pkg/cmd/template/cmd_data_values_file_test.go Show resolved Hide resolved
pkg/cmd/template/cmd_data_values_file_test.go Show resolved Hide resolved
pkg/cmd/template/data_values_file.go Outdated Show resolved Hide resolved
pkg/cmd/template/data_values_flags.go Show resolved Hide resolved
@cppforlife cppforlife force-pushed the data-values-files branch 2 times, most recently from 2a43750 to c76e1e0 Compare May 28, 2021 15:34
Dmitriy Kalinin added 2 commits May 28, 2021 15:45
removes + suffix feature for cmdline data values that was used to explicitly mark key as missing_ok=True
@cppforlife cppforlife force-pushed the data-values-files branch from c76e1e0 to 1f89148 Compare May 28, 2021 19:45
@cppforlife
Copy link
Contributor Author

updated HasTemplating() to accept yamlmeta.Node. looks better!

@pivotaljohn
Copy link
Contributor

This looks great to me.

The conversation about organizing tests really ought to take into account all --data-value... flag functionality; we'll peel that off for another time.

Thank you for your contribution, Mr. Kalinin.

@pivotaljohn pivotaljohn merged commit 9aae95d into develop May 29, 2021
@pivotaljohn pivotaljohn deleted the data-values-files branch May 29, 2021 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants