Skip to content

Commit 6d7c791

Browse files
authored
Merge pull request #1058 from k4leung4/key-rel
expose build config Fuse
2 parents 7d2a487 + 663f753 commit 6d7c791

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

pkg/cli/build.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ type Global struct {
709709

710710
summary string
711711

712-
fuses []string
712+
Fuses []string
713713

714714
// arch -> foo.apk -> exists in APKINDEX
715715
exists map[string]map[string]struct{}

pkg/cli/bundle.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020

2121
"chainguard.dev/apko/pkg/build/types"
2222
"github.com/chainguard-dev/clog"
23-
"github.com/google/go-containerregistry/pkg/authn"
23+
"github.com/google/go-containerregistry/pkg/gcrane"
2424
"github.com/google/go-containerregistry/pkg/name"
2525
v1 "github.com/google/go-containerregistry/pkg/v1"
2626
"github.com/google/go-containerregistry/pkg/v1/empty"
@@ -71,7 +71,7 @@ func cmdBundle() *cobra.Command {
7171
}
7272

7373
if bcfg.Repo != "" {
74-
pusher, err := remote.NewPusher(remote.WithAuthFromKeychain(authn.DefaultKeychain), remote.WithUserAgent("wolfictl bundle"))
74+
pusher, err := remote.NewPusher(remote.WithAuthFromKeychain(gcrane.Keychain), remote.WithUserAgent("wolfictl bundle"))
7575
if err != nil {
7676
return err
7777
}
@@ -99,7 +99,7 @@ func cmdBundle() *cobra.Command {
9999
cmd.Flags().BoolVar(&cfg.dryrun, "dry-run", false, "print commands instead of executing them")
100100
cmd.Flags().StringSliceVarP(&cfg.ExtraKeys, "keyring-append", "k", []string{"https://packages.wolfi.dev/os/wolfi-signing.rsa.pub"}, "path to extra keys to include in the build environment keyring")
101101
cmd.Flags().StringSliceVarP(&cfg.ExtraRepos, "repository-append", "r", []string{"https://packages.wolfi.dev/os"}, "path to extra repositories to include in the build environment")
102-
cmd.Flags().StringSliceVar(&cfg.fuses, "gcsfuse", []string{}, "list of gcsfuse mounts to make available to the build environment (e.g. gs://my-bucket/subdir:/mnt/my-bucket)")
102+
cmd.Flags().StringSliceVar(&cfg.Fuses, "gcsfuse", []string{}, "list of gcsfuse mounts to make available to the build environment (e.g. gs://my-bucket/subdir:/mnt/my-bucket)")
103103
cmd.Flags().StringVar(&cfg.signingKey, "signing-key", "", "key to use for signing")
104104
cmd.Flags().StringVar(&cfg.PurlNamespace, "namespace", "wolfi", "namespace to use in package URLs in SBOM (eg wolfi, alpine)")
105105
cmd.Flags().StringVar(&cfg.OutDir, "out-dir", "", "directory where packages will be output")
@@ -377,8 +377,8 @@ func BundleAll(ctx context.Context, cfg *Global, bcfg *BundleConfig, args []stri
377377
testflags = append(testflags, "--repository-append="+r)
378378
}
379379

380-
mounts := make([]*bundle.GCSFuseMount, 0, len(cfg.fuses))
381-
for _, f := range cfg.fuses {
380+
mounts := make([]*bundle.GCSFuseMount, 0, len(cfg.Fuses))
381+
for _, f := range cfg.Fuses {
382382
mount, err := bundle.ParseGCSFuseMount(f)
383383
if err != nil {
384384
return nil, err

0 commit comments

Comments
 (0)