Skip to content

Latest commit

 

History

History
164 lines (106 loc) · 8.97 KB

CONTRIBUTING.md

File metadata and controls

164 lines (106 loc) · 8.97 KB

How to Contribute

Thank you for expressing interest in contributing to the Kyverno documentation! We welcome all contributions, suggestions, and feedback! We'd love to accept your contributions to this project, there are just a few guidelines you need to follow.

New to Kyverno? Before diving in, we recommend exploring the Kyverno Docs to get familiar with key concepts like validation, mutation, generation, image verification, cleanup and exception policies, it'll make
contributing much smoother!

Contributor License Agreement

Contributions to this project must be accompanied by a Contributor License Agreement. Project authors will retain the copyright to your contribution; this simply gives us permission to use and redistribute your contributions as part of the project. You generally only need to submit a CLA once, so if you've already submitted one (even if it was for a different project), you probably don't need to do it again.

Code Reviews

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.

Community Guidelines

This project follows the CNCF Code of Conduct.

Ways to Contribute

If you wish to contribute to this project, there are several options as outlined below.

Report Issues

If you see a bug or want to suggest an enhancement, please create an issue. Issues are a great way to tell the Kyverno documentation team what you think can be improved or fixed. Even reporting a misspelling is appreciated!

Good First Issues

New to open source or just getting started with Kyverno? Check out our Good First Issues these are hand-picked, beginner-friendly issues to help you make your first contribution with confidence.

To get started:

  1. Browse the list and find an issue that interests you
  2. Leave a comment to request assignment
  3. Follow the steps in Submit a Pull Request below

Submit a Pull Request

Find an open issue and indicate your interest by requesting assignment. We understand that sometimes priorities change, so if you've been assigned an issue but are no longer able to or interested in completing it, please unassign yourself so future contributors know it is available to take on.

If you are new to the git contribution flow or GitHub in general, please see the excellent documentation available on the Git website with easy, step-by-step instructions on how to create your first Pull Request on GitHub.

First time contributing to open source? Don't worry, maintainers and community members are happy to help guide you through the contribution process.

Pull request automation

PR automation uses the shared action maintained in kyverno/assistant. Path labels continue to apply automatically. The hourly readiness check and daily stale sweep initially run in preview mode: they log proposed changes but do not label, comment on, or close PRs.

Once enabled, readiness checks classify DCO, CI (including Netlify), merge conflicts, and review threads awaiting the author. ready-for-review means no author action is outstanding, not that the PR is approved for merge. Workflows awaiting maintainer approval are not the author's responsibility.

Author-blocked PRs become stale after 7 days without a new commit and may close after 14 days, but never before a 7-day warning period has elapsed. A new commit resets the cycle; a comment alone does not. Ready PRs receive a reviewer reminder after 7 days instead of being closed. PRs idle for 30 days or more (backlog_days) get no reviewer reminder or reviewer ping in stale warnings; only the author is notified. Drafts, Dependabot PRs, and PRs labeled no-stale or hold are exempt from stale handling and reminders.

Maintainers can review previews in Actions > PR lifecycle, then manually run either operation with dry_run disabled. Before doing so, run Actions > Sync labels with dry_run disabled to provision lifecycle labels. To enable scheduled readiness after reviewing its preview, replace that job's dry-run expression with "false" in .github/workflows/pr-management.yaml. Enable the stale job separately only after reviewing the backlog and exemptions. Reviewer reminders use @kyverno/website-maintainers when no reviewer or assignee is available. Repository settings live in .github/pr-management.json, label definitions in .github/labels.yml, and readiness uses the shared action's built-in checks (add .github/pr-readiness-checks.yml to change them). Action updates must remain pinned to a reviewed commit SHA.

Overview

The Kyverno website is a static site designed and built using Astro. It uses the Starlight documentation theme and is built and hosted on Netlify. The contents of the website are written as standard Markdown and MDX files allowing easy editing and contribution. For more detailed development information, see DEVELOPMENT.md.

Developing on GitHub Codespaces

This repository can be developed using GitHub Codespaces, which provides a containerized development environment with all the necessary tools. If a devcontainer configuration is available, creating a Codespace will automatically set up the environment with Node.js and npm.

If you are new to Codespaces and devcontainers, please see the introductory guide here.

Developing Locally

The Kyverno website requires Node.js v24 or higher and npm to be installed. When developing locally, ensure you have the correct Node.js version installed.

To check your Node.js version:

$ node --version
v24.11.1

You should see v24 or higher. If you need to install or update Node.js, visit nodejs.org.

After cloning the repository, install dependencies:

npm install

For more detailed setup instructions, see DEVELOPMENT.md.

Testing Changes

Once you have made your changes, inspect them visually by rendering the website.

npm run dev

The development server will start at http://localhost:4321. The site will automatically reload when you make changes to source files.

For more information about testing and building, see DEVELOPMENT.md.

Before Submitting a Pull Request

Before opening a PR, please ensure that:

  • Documentation links and formatting render correctly
  • Changes have been reviewed for typos or grammar issues
  • The website builds and runs successfully using npm run dev
  • Commits are signed off according to the DCO requirements

Get In Touch

Slack

Kyverno maintains a thriving community with two different opportunities to participate. The largest is the Kubernetes Slack workspace and the other is the CNCF Slack workspace.

Community Meetings

Community Page

Explore the Kyverno Community Page to learn more about the project, meet the maintainers, and discover more ways to get involved.

Developer Certificate of Origin (DCO) Sign off

For contributors to certify that they wrote or otherwise have the right to submit the code they are contributing to the project, we require everyone to acknowledge this by signing their work acknowledging the DCO.

For a complete guide on DCO, please see this article.

For users of Visual Studio Code, there is a convenient setting in the git extension named "Always Sign Off" which, when checked, allows VS Code to sign all commits.