Skip to content

OCI registry as alternative to storing release assets in Github #157

Closed

Description

@guettli

/kind feature

OCI registry as alternative to storing release assets in Github

We want to add a new plugin to OCI registries, to allow a generic form of storing release assets that is not dependent on a certain provider (e.g. Github).

For this, we need multiple steps.

  1. We have to re-write current code that is Github-specific. We already have an interface approach, which is good, but the interface contains Github-specific code, which we have to change.
  2. We rename the interface to a generic naming pattern that is not Githubspecific.
  3. We add a new implementation of the existing interface, so that we have Github and OCI.

We will use the Go package https://github.com/oras-project/oras-go.

The interface will look something like this:

type Client interface {
    ListRelease(ctx context.Context) ([]string, error)
    DownloadReleaseAssets(ctx context.Context, releaseTag, path string) error
}

We can use the method https://pkg.go.dev/oras.land/oras-go/v2/registry/remote#example-Repository.Tags to list releases and https://pkg.go.dev/oras.land/oras-go/v2#example-Copy-RemoteToLocal to download the assets.

Tasks

Activity

  1. added
    Container
    on May 23, 2024
  2. moved this from Backlog to Doing in Sovereign Cloud Stackon May 24, 2024
  3. added
    epic
    on May 28, 2024
  4. removed
    epic
    on Jun 25, 2024
  5. added this to the R7 (v8.0.0) milestone on Jul 12, 2024
  6. moved this from Doing to In Review in Sovereign Cloud Stackon Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Container

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions