Skip to content

Commit

Permalink
Pass Options when recursively calling writeIndex (#1172)
Browse files Browse the repository at this point in the history
Noticed while pushing nested indexes, we lose authentication options
when attempting to upload a nested index WriteIndex.

This change ensures options are maintained and passed to recursive calls to writeIndex.

Co-authored-by: Ryan Miller <rvmiller@google.com>
  • Loading branch information
rvmiller89 and Ryan Miller committed Nov 10, 2021
1 parent 3cd0cb5 commit f337ecf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/v1/remote/write.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func (w *writer) writeIndex(ctx context.Context, ref name.Reference, ii v1.Image
if err != nil {
return err
}
if err := w.writeIndex(ctx, ref, ii); err != nil {
if err := w.writeIndex(ctx, ref, ii, options...); err != nil {
return err
}
case types.OCIManifestSchema1, types.DockerManifestSchema2:
Expand Down

0 comments on commit f337ecf

Please sign in to comment.