First: if you're unsure or afraid of anything, just ask or submit the issue or pull request anyway. You won't be yelled at for giving your best effort. The worst that can happen is that you'll be politely asked to change something. We appreciate any sort of contributions, and don't want a wall of rules to get in the way of that.
However, for those individuals who want a bit more guidance on the best way to contribute to the project, read on. This document will cover what we're looking for. By addressing all the points we're looking for, it raises the chances we can quickly merge or address your contributions.
KUTTL requires that contributors sign off on changes submitted to kudobuilder repositories. The Developer Certificate of Origin (DCO) is a simple way to certify that you wrote or have the right to submit the code you are contributing to the project.
You sign-off by adding the following to your commit messages:
This is my commit message
Signed-off-by: Random J Developer <[email protected]>
Git has a -s
command line option to do this automatically.
git commit -s -m 'This is my commit message'
You can find the full text of the DCO here: https://developercertificate.org/
- Submit an issue describing your proposed change to the repo in question.
- The repo owners will respond to your issue promptly.
- If your proposed change is accepted, and you haven't already done so, sign a Contributor License Agreement (see details above).
- Fork the desired repo, develop and test your code changes.
- Submit a pull request.
- Git
- Go
1.13
or later. Note that some Makefile targets assume that your$GOBIN
is in your$PATH
. - Kubebuilder version 2 or later - note that it is only needed for the
kube-apiserver
andetcd
binaries, so no need to install its dependencies (such askustomize
). - A Kubernetes Cluster running version
1.13
or later (e.g., kind or Minikube) - kubectl
- Get the KUTTL repo:
git clone https://github.com/kudobuilder/kuttl.git
cd kuttl
make cli
to build the CLI
After running this command, CLI will be available in bin/kubectl-kuttl
and you can invoke the command for example like this bin/kubectl-kuttl version
(no need to install it as kubectl
plugin).
Use make all
to run all available tests.
Run just make
to see what individual targets are available.
The project has settled on the testify library for testing purposes. Please use it for new tests as well if possible.
Learn how to engage with the KUTTL community on the community page.
You can reach the maintainers of this project at:
This is a set of practices we try to live by when developing KUTTL. These are just defaults (soft rules). Deviations from them are possible, but have to be justified.
- Main is always releasable (green CI)
- All feature/bug-fixing work should have an open issue with a description, unless it's something very simple
- Every user-facing feature that is NOT behind a feature gate should have integration or an e2e test
-
One core-team member has to approve the PR to be able to merge (all people listed in
.github/CODEOWNERS
file) -
One approval is enough to merge. However, if there are requests for change they have to be resolved prior to the merge
-
Since KUTTL is developed in multiple timezones, try to keep the PR open for everyone to be able to see it (~24h, keep in mind public holidays)
-
We prefer squash commits so that all changes from a branch are committed to main as a single commit
-
Before you merge, make sure your commit title and description are meaningful. Github by default will list all the individual PR commits when squashing which are rarely insightful. We aim for a clean and meaningful commit history.
-
Labels: If your PR includes either breaking changes or should get additional attention in the release, add one of these label:
release/highlight
For a big new feature, an important bug fix, the focus of the current releaserelease/breaking-change
For anything that breaks backwards compatibility and requires users to take special care when upgrading to the new versionrelease/bugfix
For noteworthy bugfixes
-
For a piece of work that takes >3-5 days, pair with somebody
-
When you pair with somebody, don't forget to appreciate their work using co-authorship
-
Open a PR as soon as possible to give everybody a chance to review it
-
For PRs that tackle a bigger feature/refactoring schedule a walk-through with the team. PR reviews are a lot more meaningful if reviewers understand your code mental model.
- Schedule a portion of your day to review PRs to appreciate work of others
We are trying to figure out the exact shape of an enhancement. Until then here are a few rough heuristics.
An enhancement is anything that:
- a blog post would be written about after its release (ex. minikube, StatefulSets, rkt container runtime)
- requires multiple parties/owners participating to complete
- will be graduating from one stage to another (ex. alpha to beta, beta to GA)
- needs significant effort or changes KUTTL in a significant way (ex. something that would take 10 person-weeks to implement, introduce or redesign a system component)
- impacts the UX or operation of KUTTL substantially such that engineers using KUTTL will need retraining
- users will notice and come to rely on
It is unlikely an enhancement if it is:
- fixing a flaky test
- refactoring code
- performance improvements, which are only visible to users as faster API operations, or faster control loops
- adding error messages or events
If you are not sure, ask someone in the #kudo channel on Slack or ping someone listed in CODEOWNERS.
Create an issue in this repo once you:
- have circulated your idea to see if there is interest
- through Community Meetings, KUTTL/KUDO meetings, KUDO mailing lists, or an issue in github.com/kudobuilder/kuttl
- (optionally) have done a prototype in your own fork
- have identified people who agree to work on the enhancement
- many enhancements will take several releases to progress through Alpha, Beta, and Stable stages
- you and your team should be prepared to work on the approx. 9mo - 1 year that it takes to progress to Stable status
- are ready to be the project-manager for the enhancement
Participation in the Kubernetes community is governed by the Kubernetes Code of Conduct.