GithubHelp home page GithubHelp logo

operator-hub-info's Introduction

Publishing an Operator to OperatorHub.io

Prerequisites

This assumes an operator has been created with a tool like operator-sdk and tested locally

This also assumes that the operator follows the directory structure of the operator-sdk

Operatorhub.io has Prerequisites in place for the operator to be published

  1. The operator must be in a public container registry
  2. The operator must be in a public git repository
  3. The operator must have a valid semantic version
  4. The operator must have a valid operator package manifest
  5. The operator must have a valid bundle image

Steps

  1. Create a bundle image The bundle directory can be created with the following command

    • in your project directory, use the kustomize command to generate the manifests

      kustomize build config/manifests | operator-sdk generate bundle --version 0.0.1
    • Validate the bundle with the following command

      operator-sdk bundle validate ./bundle
    • NOTE: The generated Makefile has bundling options as well:

      # This generates the kustomize manifests and the bundle directory and validates the bundle.
      make bundle
  2. Build and push your bundle image

    docker build -f bundle.Dockerfile -t <image_name>:<tag> .
    docker push quay.io/<namespace>/<operator_name>:<tag>
  3. Create an Operator Package Manifest

    kustomize build config/manifests | operator-sdk generate packagemanifests --version 0.0.1
  4. Submit Operator to OperatorHub.io

The directory should follow the following structure:

operator
   ├── 1.0.0
   │   ├── operator.v1.0.0.clusterserviceversion.yaml
   │   ├── operator-crd1.crd.yaml
   │   ├── operator-crd2.crd.yaml
   │   ├── operator-crd3.crd.yaml
   └── operator.package.yaml
  • Fork the community-operators repo
  • Copy the bundle directory to the community-operators repo
  • Create a pull request to the community-operators repo

Additional Resources

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.