Git Product home page Git Product logo

containerdisks's Introduction

KubeVirt curated Containerdisks

Building and publishing containerdisks

The go tool medius is the core of the syncrhonization process. It understands the origin of all containerdisks and what version is currently published in quay.io/containerdisks .

To run it in dry-run mode (the default), run:

make medius
bin/medius images push

Its main tasks for all onboarded containerdisks are:

  • Detecting the latest official release of a containerdisk at its source
  • Detecting the latest published image at quay.io/containerdisks
  • If there is a mismatch, building and pushing a new version to quay

Onboarding new containerdisks

Technical considerations

To add a new containerdisk the api.Artifact interface needs to be implemented. The resulting implementation needs to be registered. That's it. The fedora artifact is a good example to check out.

To automatically detect new releases of a distribution implement the api.ArtifactsGatherer interface.

Criterias for onboarding

  • The image should have a reasonable adoption rate in the virtualization ecosystem or a strong new use-case.
  • The image to onboard needs to be publicly available
  • The image must be usable in kubevirt without additional modifications
  • The images should be hosted by a well known (and owning) party (no hacky re-publishing)

Image Verification

Image verification and end-to-end testing, including promotions of working images, is possible with the images subcommands. Images which don't work out of the box for kubevirt will not be published.

Local testing

To publish all images to a custom local registry call medius like this:

bin/medius images push --target-registry=localhost:49501 --dry-run=false --insecure-skip-tls --workers=3

To publish a specific image run, make use of --focus:

bin/medius images push --target-registry=localhost:49501 --dry-run=false --insecure-skip-tls --focus=fedora:35

Scaling considerations

At this stage medius only allows parallelization at the binary level. In the future it may get support for sharding to allow scaling on a CI job level.

To scale on the command level make use of the --workers flag on the publish command.

Release process considerations

Since remote sources can any time go away or fail and medius is intended to be executed periodically it will behave as follows to inform about issues while still trying to publish as many healthy images as possible:

  • If an image can't be released for whatever reason the command will eventually exit with a non-zero code, but
  • The command will not abort completely when a containerdisk can't be pushed, it will only proceed to the next one
  • It will not re-upload containerdisks when the artifcts did not change

Publishing the containerdisk documentation to quay.io

bin/medius docs publish --dry-run=false --quay-token-file=oaut_token.txt

containerdisks's People

Contributors

0xfelix avatar kubevirt-bot avatar rmohr avatar davidvossel avatar lyarwood avatar akrejcir avatar codingben avatar dominikholler avatar ksimon1 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.