Skip to content
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

leverage pkg get for easy function scaffolding #3606

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

yuwenma
Copy link
Contributor

@yuwenma yuwenma commented Oct 10, 2022

Description

This PR adds a command shortcut:
kpt pkg get fn <DIR>, which is equivalent to kpt pkg get https://github.com/GoogleContainerTools/kpt-functions-sdk.git/go/get-started@master <DIR>.
The get-started package contains (or will contain), main method with some coding guidance, go dependencies, test infra and fn building options(Dockerfile, ko, and maybe some others).

Rationale

Rather than developing a new set of commands for KRM function scaffolding, I'd like to make it easy and use this to give users another example on what they can do with kpt pkg get: They can run kpt pkg get fn to get the necessary infra pieces to start developing their own KRM functions.

Feedback

Please feel free to throw your thoughts and what else a fn scaffolding package should contain.

@yuwenma yuwenma changed the title leveraging pkg get for easy function scaffolding leverageing pkg get for easy function scaffolding Oct 10, 2022
@yuwenma yuwenma changed the title leverageing pkg get for easy function scaffolding leverage pkg get for easy function scaffolding Oct 10, 2022
@yuwenma yuwenma marked this pull request as draft October 11, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant