You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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.
The text was updated successfully, but these errors were encountered:
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: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 tokbld
. I don't want to have to require my users to havekbld
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.
The text was updated successfully, but these errors were encountered: