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

CALL Kustomize API inside a GO project #2844

Closed
JiyeYu opened this issue Aug 14, 2020 · 1 comment
Closed

CALL Kustomize API inside a GO project #2844

JiyeYu opened this issue Aug 14, 2020 · 1 comment

Comments

@JiyeYu
Copy link

JiyeYu commented Aug 14, 2020

Hi there,

Is there any way to directly call kustomize's API inside a GO project to generate yaml manifest?

Seems currently the only way to execute Kustomize is type kustomize command in shell?

@monopole
Copy link
Contributor

Do it the way kustomize does it

https://github.com/kubernetes-sigs/kustomize/blob/master/kustomize/internal/commands/build/build.go#L140

See the imports in that file - it's all you need

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

No branches or pull requests

2 participants