-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Declarative function storage mounts are ignored #3141
Comments
Happy to submit a PR. |
That's intended.In most of the cases the KRM function config file author is different from the user. It makes no sense to add a path in user's system when the author is creating a function config. So we have decided to make the mount purely imperative. |
We haven't updated all documentation about this. Sorry for any confusion. |
@Shell32-Natsu But what about the use case for functions being applied during IME, package consumer often wants to be able to define a pipeline of transformations and validations that get applied to pulled packages and that's what |
Please open an issue in kpt repo and we can discuss there. |
Describe the bug
When storage mounts are specified to a declarative function definition they are ignored. It looks like this code has been written to cater for command line
--mount
arguments, which get stored in theRunFns.StorageMounts
slice, but declarative mounts which are stored inspec.Container.Network.StorageMounts
are ignored.Files that can reproduce the issue
In a new directory create the following files:
First, build the function image:
Then, run the Kpt function:
But if a command line mount is specified the function executes successfully:
Expected Output
It should be possible to configure storage mounts for kyaml functions declaratively.
The text was updated successfully, but these errors were encountered: