Allow mounts and network access in render pipelines #2450
Labels
area/hydrate
enhancement
New feature or request
p1
triaged
Issue has been triaged by adding an `area/` label
Describe your problem
pipelines
used bykpt fn render
should allow mounts and network access.There is some discussion in https://kpt.dev/book/04-using-functions/02-imperative-function-execution?id=privileged-execution.
I would argue this degrades the user experience dramatically. Consider an extremely common use case - rendering helm charts. I want to define some function config like:
And then have the chart rendered and stored as a local yaml file (which can then be further mutated by pipeline).
Because of restrictions on network access (and mount is useful for cache and local helm charts), this is impossible.
That leaves a few choices:
kpt fn eval
. If I am using kpt, I of course want a declarative setup, so clearly I am going to need to add some tooling here to do this... and now I have invented a poor version ofkpt fn render
...IMO these alternatives show that it would be a huge improvement to allow this access. If it requires
kpt fn render --allow-unsafe
or whatever, no problem.. but right nowrender
is hindered enough suchRelated discussions:
The text was updated successfully, but these errors were encountered: