Skip to content

Latest commit

 

History

History
82 lines (51 loc) · 5.51 KB

CONTRIBUTING.md

File metadata and controls

82 lines (51 loc) · 5.51 KB

How to contribute

Operator Lifecycle Manager (OLM) is an Apache 2.0 licensed project and accepts contributions via GitHub pull requests (PRs).

This document outlines some of the conventions on commit message formatting, contact points for developers, and other resources to help get contributions into the OLM project.

Communication

Getting started

Reporting bugs and creating issues

Reporting bugs is one of the best ways to contribute. However, a good bug report has some very specific qualities, so please read over our short document on reporting bugs before submitting a bug report. Before filing a bug report, ensure the bug hasn't already been reported by searching through the OLM project Issues.

Any new contribution should be accompanied by a new or existing issue. This issue can help track work, discuss the design and implementation, and help avoid wasted efforts or multiple people working on the same issue, compared to submitting a PR first. Trivial changes, like fixing a typo in the documentation, do not require the creation of a new issue.

Proposing larger changes to the OLM project may require an enhancement be created in the operator-framework/enhancements repository. Enhancements are the primary mechanism for proposing new features to the OLM codebase. Any change to OLM's behavior or existing features, APIs, or architectural changes to the testing harness likely require an enhancement.

Contribution flow

This is a rough outline of what a contributor's workflow looks like:

  • Identify or create an issue.
  • Create a topic branch from where to base the contribution. This is usually the master branch.
  • Make commits of logical units.
  • Push changes in a topic branch to a personal fork of the repository.
  • Submit a pull request to the operator-framework/operator-lifecycle-manager repository.
  • Wait and respond to feedback from the maintainers listed in the OWNERS file.

Thanks for contributing!

Code Review

Contributing PRs with a reasonable title and description can go a long way with helping ease the burden of the review process.

It can be helpful after submitting a PR to self-review your changes. This allows you to communicate sections that reviewers should spend time combing over, asking for feedback on a particular implementation, or providing justification for a set of changes in-line ahead of time.

When opening PRs that are in a rough draft or WIP state, prefix the PR description with WIP: ... or create a draft PR. This can help save reviewer's time by communicating the state of a PR ahead of time. Draft/WIP PRs can be a good way to get early feedback from reviewers on the implementation, focusing less on smaller details, and more on the general approach of changes.

When contributing changes that require a new dependency, check whether it's feasible to directly vendor that code without introducing a new dependency.

Each PR must be labeled with at least one "lgtm" label and at least one "approved" label before it can be merged. Maintainers that have approval permissions are listed in the "approvers" column in the root OWNERS file.

Code style

The coding style suggested by the Golang community is used throughout the OLM project:

In addition to the linked style documentation, OLM formats Golang packages using the gofmt and goimports tooling. Before submitting a PR, please run make lint locally and commit the results. This will help expedite the review process, focusing less on style conflicts, and more on the design and implementation details.

Please follow this style to make the OLM project easier to review, maintain and develop.

Developer Certificate of Origin (DCO)

By contributing to this project you agree to the Developer Certificate of Origin (DCO). This document was created by the Linux Kernl community and is a simple statement that you, as a contributor, have the legal right to make the contribution. See the DCO file for details.

Documentation

If the contribution changes the existing APIs or user interface it must include sufficient documentation to explain the use of the new or updated feature.

The OLM documentation mainly lives in the operator-framework/olm-docs repository.