-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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 Fixes #3731
Template Fixes #3731
Conversation
/assign @gambol99 |
/assign @justinsb |
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
91a936e
to
b90098a
Compare
- fixing an issue in the way it handled inline yaml documents - cleaning it up somewhat, the prior version was a little cryptic to read; it's easier to just split into docs, format and rejoin at the end
b90098a
to
fad62c2
Compare
@@ -51,11 +50,10 @@ func (r *Templater) Render(content string, context map[string]interface{}, snipp | |||
|
|||
// @step: add the snippits into the mix | |||
for filename, snippet := range snippets { | |||
name := filepath.Base(filename) |
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.
This bit resolves overloading snippets. Previously you could load two snippet files overwriting the same var and they would be applied in an inconsistent order (due to no ordering in the map), causing you to potentially have a different cluster spec generated on each run.
Thanks! :)
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: chrislovecnm The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
/test all [submit-queue is verifying that this PR is safe to merge] |
Automatic merge from submit-queue. |
Apologizes @justinsb ... the prior PR didn't handle YAML separators correctly; I've find it somewhat simpler by a split and join rather than using indexes and such