You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this suggestion!
I think Nuclio already has a solution.
I recommend you looking at the page about code entry types in our documentation . If you need nice diffs, you can use git or github code-entry types, so you won't have any base64 code in your exported function, but only a repository and a branch and at the same time you will be able to see nice diffs in github/git.
Feature Type
Adding new functionality to Nuclio
Changing existing functionality in Nuclio
Removing existing functionality in Nuclio
Problem Description
nuctl export functions outputs the function source code in base64.
This is fine, but if you're committing exports to source control, this won't give you nice diffs.
Feature Description
Add a flag
nuctl export functions --source-encoding utf-8
This could write the source code as a multi-line string e.g.
functionSourceCodeString: | ...
instead offunctionSourceCode
Then when importing, it could check for both keys and handle base64/utf-8 accordingly.
Alternative Solutions
It's relatively easy to postprocess the yaml on either side, but that involves having an additional script which is a bit cumbersome.
Additional Context
No response
The text was updated successfully, but these errors were encountered: