Giter Site home page Giter Site logo

catalog-image's Introduction

catalog-image

Command to organize OLM bundles into a catalog registry, and stores the state in a Git repo.

This is an opinionated tool:

  • Given a component named <component>, the CSV will be <component>-operator.v<version>.
  • Each component has a single channel.

Configuration

This tool is config file driven. All the commands require a --config config.yaml option.

Example config.yaml:

git-url: "https://github.com/app-sre/saas-hive-operator-bundle/"
git-branch: "staging"
git-user: "optional"
git-token: "<token>"
git-name: "App-SRE"
git-email: "[email protected]"
component: "hive"
channel: "staging"

In order to push, this tool will embed the git-user and git-token parameters in the git-url. Example: https://optional:<token>@github.com/app-sre/saas-hive-operator-bundle/.

The git-name and git-email fields will be used for the git-author field.

Installation

Create and enter the virtualenv environment:

virtualenv venv
source venv/bin/activate

# make sure you are running the latest setuptools
pip install --upgrade pip setuptools

Install the package:

python setup.py install

Usage

current-csv

Prints the latest csv from the package file.

Usage: catalog-image current-csv [OPTIONS]

Options:
  --remove-temp-dir / --no-remove-temp-dir
  --help                          Show this message and exit.

add-bundle

Adds a new bundle in BUNDLE_PATH to the catalog and sets the correct currentCSV in the package file.

Usage: catalog-image add-bundle [OPTIONS] BUNDLE_PATH

Options:
  --remove-temp-dir / --no-remove-temp-dir
  --push / --no-push
  --prune-after TEXT
  --help                          Show this message and exit.

Docker

This tool can be used with Docker.

Example:

docker run --rm -v ${PWD}/config.yaml:/config.yaml \
    quay.io/app-sre/catalog-image:latest \
    catalog-image --config /config.yaml current-csv

Limitations

  • git-url must be https based. ssh is not currently supported.

Licence

Apache License Version 2.0.

Authors

These tools have been written by the Red Hat App-SRE Team.

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.