Skip to content

Allow output path relative to function config file #12

@howardjohn

Description

@howardjohn

Say I have a folder setup like

.
|_ my-pkg
    |_ khelm-function.yaml

I want to emit run the function to end up like

.
|_ my-pkg
    |_ khelm-function.yaml
    |_ rendered.yaml

If I run kpt fn run --network . from . or my-pkg, I get different results. It would be great to be able to output to the same folder as khelm-function.yaml - whether by default or some option/special file format/whatever. This way, as I accumulate many functions, I can just run them at the top level.

Alternatively, I can set outputPath: my-pkg/rendered.yaml, but then I cannot run the fn in my-pkg folder and it leaks folder structure details a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions