We'd love to accept your patches and contributions to this project. To learn more about the project structure and organization, please refer to Project Governance information. There are just a few small guidelines you need to follow.
Contributors of this project should state that they agree with the terms published at https://developercertificate.org/ for their contribution. To do this when creating a commit with the Git CLI, a sign-off can be added with the -s option. The sign-off is stored as part of the commit message itself.
All files should have the copyright notice.
// Copyright 2025 The kpt Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
If the file has never been modified: use the creation year only
- Example:
Copyright 2025 The kpt Authors
If the file has been modified: use a year range from creation to last modification
- Example:
Copyright 2024-2026 The kpt Authors
Larger features and all the features that affect the interface (CLI or API) of kpt components need to have a reviewed and merged design document. It is OK to start with a prototype in your private fork but if you intend for your feature to be shipped in kpt please create a design document with this design template.
You should create a copy of the template and submit a PR for comments and review by maintainers. Once the PR is merged the design is considered approved. The actual code change PRs should link to the design documents, even though it is well understood that the design can drift during implementation.
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult GitHub Help for more information on using pull requests.
This project follows a Code of Conduct.
Join following groups/channels to discuss ideas with other kpt contributors.
- Join our Slack channel
- Join our Discussions
Contributions are required to follow these style guides:
The kpt toolchain has several components such as kpt CLI, package orchestrator,
function catalog, function SDKs, Backstage UI plugin and config sync. Each
component has their own development process.
Refer to the pointers below to learn more:
-
Clone the project
git clone https://github.com/kptdev/kpt cd kpt -
Build
kptto$(go env GOPATH)/bin/kptmake
-
Run test
make all
Function catalog has its own repository. Refer to the documentation in the krm-functions-catalog repo.
If you are updating the documentation, please do it in separate PRs from code
changes and PR description should start with Docs:.
Make docs changes and test them by running the site in a docker container with
make serve.
It's usually a good idea to test locally for the following:
- Broken links
- Rendering static content
Docs are under [documentation/]. Refer to (the README,md)[documentation/README.md] in the folder to details about documentation contributions.