Thank you for your interest in contributing to Kubernetes Fluent Client! We welcome all contributions and are grateful for your help. This guide outlines how to get started with contributing to this project.
Please follow our Code of Conduct to maintain a respectful and collaborative environment.
- Repository: https://github.com/defenseunicorns/kubernetes-fluent-client/
- npm package: https://www.npmjs.com/package/kubernetes-fluent-client
- Required Node version:
>=20.0.0
- Fork the repository.
- Clone your fork locally:
git clone https://github.com/your-username/kubernetes-fluent-client.git
. - Install dependencies:
npm ci
. - Create a new branch for your feature or fix:
git checkout -b my-feature-branch
.
- Create an Issue: For significant changes, please create an issue first, describing the problem or feature proposal. Trivial fixes do not require an issue.
- Commit Your Changes: Make your changes and commit them. All commits must be signed.
- Run Tests: Ensure that your changes pass all tests by running unit tests (
npm test
) and integration tests (test:e2e:run
). - Push Your Branch: Push your branch to your fork on GitHub.
- Create a Pull Request: Open a pull request against the
main
branch of the Kubernetes Fluent Client repository. Please make sure that your PR passes all CI checks.
- PRs must be against the
main
branch. - PRs must pass CI checks.
- All commits must be signed.
- PRs should have a related issue, except for trivial fixes.
Please follow the coding conventions and style used in the project. Use ESLint and Prettier for linting and formatting:
- Check formatting:
npm run format:check
- Fix formatting:
npm run format:fix
- Unit:
npm test
- End to end:
npm run test:e2e:run
- Run
npm run build
to build the package. - For CLI, you can run
npx ts-node src/cli.ts
. - To consume the package in another project, you can run
npm pack
to generate thekubernetes-fluent-client-0.0.0-development.tgz
, then you can install withnpm i kubernetes-fluent-client-0.0.0-development.tgz --no-save
.
Tip
Make sure to re-run npm run build
after you modify any of the Kubernetes Fluent Client source files.
For any questions or concerns, please open an issue on GitHub or contact the maintainers.