seek-oss / kpt-functions

A library of Kpt functions for extending Kpt's functionality
MIT License
3 stars 3 forks source link

Comments before a kpt-template directive cause the template to not be expanded #14

Open Niksko opened 3 years ago

Niksko commented 3 years ago

Non-working version:

# Some sort of comment
# {"$kpt-template":"true"}
foobar: |
  {{render "some-template"}}

After syncing, the above appears unchanged

Working version:

# Some sort of comment
                                          <-- whitespace
# {"$kpt-template":"true"}
foobar: |
  {{render "some-template"}}

After syncing, the template is correctly rendered. However the comment is now below the rendered template? Something funky going on here with the template rendering.