mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix: duplicate upload tag
Signed-off-by: Terry Howe <terrylhowe@gmail.com>
This commit is contained in:
parent
50546ef665
commit
b852af54fc
1 changed files with 19 additions and 2 deletions
|
|
@ -713,11 +713,28 @@ func (c *Client) Push(data []byte, ref string, options ...PushOption) (*PushResu
|
|||
repository.PlainHTTP = c.plainHTTP
|
||||
repository.Client = c.authorizer
|
||||
|
||||
manifestDescriptor, err = oras.ExtendedCopy(ctx, memoryStore, parsedRef.String(), repository, parsedRef.String(), oras.DefaultExtendedCopyOptions)
|
||||
if err != nil {
|
||||
_, _ = fmt.Printf("============== parsedRef.String()=%s\n", parsedRef.String())
|
||||
_, _ = fmt.Printf("============== repository.Reference.Registry=%s\n", repository.Reference.Registry)
|
||||
_, _ = fmt.Printf("============== repository.Reference.Repository=%s\n", repository.Reference.Repository)
|
||||
_, _ = fmt.Printf("============== repository.Reference.Reference=%s\n", repository.Reference.Reference)
|
||||
_, _ = fmt.Printf("============== repository.Reference.String=%s\n", repository.Reference.String())
|
||||
_, _ = fmt.Printf("============== manifestDescriptor.Digest=%s\n", manifestDescriptor.Digest)
|
||||
|
||||
if err := oras.ExtendedCopyGraph(ctx, memoryStore, repository, manifestDescriptor, oras.DefaultExtendedCopyGraphOptions); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
//err = repository.Manifests().Tag(ctx, manifestDescriptor, parsedRef.String())
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
|
||||
// (ctx context.Context, target Target, mediaType string, contentBytes []byte, reference string) (ocispec.Descriptor, error) {
|
||||
//manifestDescriptor, err = oras.ExtendedCopy(ctx, memoryStore, parsedRef.String(), repository, parsedRef.String(), oras.DefaultExtendedCopyOptions)
|
||||
//if err != nil {
|
||||
// return nil, err
|
||||
//}
|
||||
|
||||
chartSummary := &descriptorPushSummaryWithMeta{
|
||||
Meta: meta,
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue