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

kbld resolve as a Go library #219

Closed
jpmcb opened this issue Feb 4, 2022 · 0 comments · Fixed by #220
Closed

kbld resolve as a Go library #219

jpmcb opened this issue Feb 4, 2022 · 0 comments · Fixed by #220
Labels
enhancement This issue is a feature request

Comments

@jpmcb
Copy link
Contributor

jpmcb commented Feb 4, 2022

Describe the problem/challenge you have

kbld is great at resolving images from a .imgpkg config and OCI bundle.

I want to harness that in my own program by using kbld's Go code. But currently, the only public methods available are the top level Cobra commands:

package main

import (
        goUi "github.com/cppforlife/go-cli-ui/ui"
        kbld "github.com/k14s/kbld/pkg/kbld/cmd"
)

...

        kbld.NewResolveCmd(kbld.NewResolveOptions(goUi.NewNoopUI()))

This isn't useful since the cobra commands Run can't be utilized as a function that returns a the resolved yaml chunk.

It is a non-goal to have to use os.Exec to call out to kbld. I don't want to have to require my users to have kbld on their system in order to use my tool. Instead, we want to compile and utilize the go code as a single binary.

Describe the solution you'd like

A Go API for utilizing kbld's image resolution functionatliy. This API should return the resolved yaml chunk, just like it does on the command line.

Anything else you would like to add:
This is in support of: vmware-tanzu/community-edition#3034


Vote on this request

This is an invitation to the community to vote on issues, to help us prioritize our backlog. Use the "smiley face" up to the right of this comment to vote.

👍 "I would like to see this addressed as soon as possible"
👎 "There are other more important things to focus on right now"

We are also happy to receive and review Pull Requests if you want to help working on this issue.

@jpmcb jpmcb added carvel triage This issue has not yet been reviewed for validity enhancement This issue is a feature request labels Feb 4, 2022
@github-actions github-actions bot removed the carvel triage This issue has not yet been reviewed for validity label Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue is a feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant