Giter VIP home page Giter VIP logo

cluster-version-operator's Introduction

Cluster Version Operator (CVO)

Building and Publishing CVO

./hack/build-image.sh && REPO=<your personal repo (quay.io/ahbinavdahiya | docker.io/abhinavdahiya)> ./hack/push-image.sh
  1. This builds image locally and then pushes ${VERSION} and latest tags to ${REPO}/origin-cluster-version-operator.

  2. ${VERSION} encodes the Git commit used to build the images.

Building release image using local CVO

  1. Make sure you have oc binary from https://github.com/openshift/origin master as it requires adm release subcommand.

  2. Run the following command to create release-image at docker.io/abhinavdahiya/origin-release:latest:

oc adm release new -n origin \
    --from-image-stream=origin-v4.0 \
    --to-image-base=docker.io/abhinavdahiya/origin-cluster-version-operator:latest \
    --to-image docker.io/abhinavdahiya/origin-release:latest

Installing CVO and operators in cluster.

  1. Use CVO render to render all the manifests from release-payload to a directory. Refer the Using CVO to render the release-image locally section for more information.

  2. Create the operators from the manifests by using oc create -f <directory when CVO rendered manifests>.

Using CVO to render the release-image locally

  1. Run the following command to get render the release-payload contents to /tmp/cvo
podman run --rm -ti \
    -v /tmp/cvo:/tmp/cvo:z \
    <release image> \
        render \
        --output-dir=/tmp/cvo \
        --release-image="<release image>"

<release image> can be personal release image generated using this or Origin's release image like registry.ci.openshift.org/openshift/origin-release:v4.0.

Running CVO tests

# Run all unit tests
go test ./...

# Run integration tests against a cluster (creates content in a given namespace)
# Requires the CVO CRD to be installed.
export KUBECONFIG=<admin kubeconfig>
TEST_INTEGRATION=1 go test ./... -test.run=^TestIntegration

Contributing

Contributions welcome!

Documentation

The documentation around CVO is split between two code repositories i.e. enhancements/dev-guide/cluster-version-operator and cluster-version-operator/docs.

Here are some pointers to start with the documentation

cluster-version-operator's People

Contributors

abhinavdahiya avatar arjunrn avatar crawford avatar csrwng avatar deads2k avatar derekwaynecarr avatar eggfoobar avatar enxebre avatar eparis avatar guillaumerose avatar jcpowermac avatar jottofar avatar lalatendumohanty avatar lucab avatar marun avatar njhale avatar openshift-ci[bot] avatar openshift-merge-robot avatar patrickdillon avatar paulfantom avatar ravisantoshgudimetla avatar sdodson avatar smarterclayton avatar soltysh avatar steveej avatar sttts avatar timflannagan avatar vikaschoudhary16 avatar vrutkovs avatar wking 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.