-
Notifications
You must be signed in to change notification settings - Fork 171
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
Template files #1171
Template files #1171
Conversation
Added breaking change since the DATA_INJECTION_MARKER change will break any existing data injection packages. EDIT: Nevermind 😅 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving for now since the mimetype stuff can be figured out later
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This PR adds variable templating to text files included under the
files
key in a Zarf Package. This mirrors the existing behavior of Kustomizations, charts, and manifests, except for the case of files called before the Zarf package needs a cluster. In this case, some special variables, such as###ZARF_REGISTRY###
will not be available. This was needed because some components with files will be called before a cluster is created, such as in the K3s package.This PR also fixes a typo with the data-injection marker and permits the use of
0-9
for variable/constant names in addition toA-Z_
.Related to #1129
Related to #1141