2020-08-26 14:06:21 +00:00
|
|
|
# Contributing to Pinniped
|
|
|
|
|
2020-08-27 17:14:03 +00:00
|
|
|
Contributions to Pinniped are welcome. Here are some things to help you get started.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-10-02 20:00:23 +00:00
|
|
|
1. Please see the [Code of Conduct](./CODE_OF_CONDUCT.md).
|
|
|
|
1. Learn about the [scope](doc/scope.md) of the project.
|
2020-08-27 17:14:03 +00:00
|
|
|
1. Coming soon: details about how to legally contribute to the project, including CLA/DCO details.
|
2020-08-26 14:06:21 +00:00
|
|
|
1. See below for how to [file a bug report](#bugs).
|
|
|
|
1. See below for how to [suggest a feature](#features).
|
|
|
|
1. See below for how to [build the code](#building).
|
|
|
|
1. See below for how to [run the tests](#testing).
|
|
|
|
|
2020-09-16 00:59:40 +00:00
|
|
|
## Meeting with the Maintainers
|
|
|
|
|
|
|
|
The maintainers aspire to hold a video conference every other week with the Pinniped community.
|
2020-10-02 20:00:23 +00:00
|
|
|
Any community member may request to add topics to the agenda by contacting a [maintainer](MAINTAINERS.md)
|
2020-09-16 00:59:40 +00:00
|
|
|
in advance, or by attending and raising the topic during time remaining after the agenda is covered.
|
|
|
|
Typical agenda items include topics regarding the roadmap, feature requests, bug reports, pull requests, etc.
|
2020-09-16 01:19:20 +00:00
|
|
|
A [public document](https://docs.google.com/document/d/1qYA35wZV-6bxcH5375vOnIGkNBo7e4OROgsV4Sj8WjQ)
|
|
|
|
tracks the agendas and notes for these meetings.
|
2020-09-16 00:59:40 +00:00
|
|
|
|
|
|
|
These meetings are currently scheduled for the first and third Thursday mornings of each month
|
2020-09-16 23:39:59 +00:00
|
|
|
at 8 AM Pacific Time, using this [Zoom meeting](https://VMware.zoom.us/j/94638309756?pwd=V3NvRXJIdDg5QVc0TUdFM2dYRzgrUT09).
|
2020-09-16 00:59:40 +00:00
|
|
|
If the meeting day falls on a US holiday, please consider that occurrence of the meeting to be canceled.
|
|
|
|
|
2020-08-26 14:06:21 +00:00
|
|
|
## Bugs
|
|
|
|
|
|
|
|
To file a bug report, please first open an
|
2020-09-17 17:56:54 +00:00
|
|
|
[issue](https://github.com/vmware-tanzu/pinniped/issues/new?template=bug_report.md). The project team
|
2020-08-26 14:06:21 +00:00
|
|
|
will work with you on your bug report.
|
|
|
|
|
2020-09-17 17:56:54 +00:00
|
|
|
Once the bug has been validated, a [pull request](https://github.com/vmware-tanzu/pinniped/compare)
|
2020-08-27 17:14:03 +00:00
|
|
|
can be opened to fix the bug.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
|
|
|
For specifics on what to include in your bug report, please follow the
|
2020-08-27 17:14:03 +00:00
|
|
|
guidelines in the issue and pull request templates.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
|
|
|
## Features
|
|
|
|
|
|
|
|
To suggest a feature, please first open an
|
2020-09-17 17:56:54 +00:00
|
|
|
[issue](https://github.com/vmware-tanzu/pinniped/issues/new?template=feature-proposal.md)
|
2020-08-27 17:14:03 +00:00
|
|
|
and tag it with `proposal`. The project team will work with you on your feature request.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-09-17 17:56:54 +00:00
|
|
|
Once the feature request has been validated, a [pull request](https://github.com/vmware-tanzu/pinniped/compare)
|
2020-08-27 17:14:03 +00:00
|
|
|
can be opened to implement the feature.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
|
|
|
For specifics on what to include in your feature request, please follow the
|
2020-08-27 17:14:03 +00:00
|
|
|
guidelines in the issue and pull request templates.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-09-16 00:59:40 +00:00
|
|
|
## Issues
|
|
|
|
|
2020-09-17 17:56:54 +00:00
|
|
|
Github [issues](https://github.com/vmware-tanzu/pinniped/issues) can also be used for general
|
2020-09-16 00:59:40 +00:00
|
|
|
inquiries and discussion regarding the project.
|
|
|
|
|
|
|
|
Need an idea for a project to get started contributing? Take a look at the open
|
2020-09-17 17:56:54 +00:00
|
|
|
[issues](https://github.com/vmware-tanzu/pinniped/issues).
|
2020-09-16 00:59:40 +00:00
|
|
|
Also check to see if any open issues are labeled with
|
2020-09-17 17:56:54 +00:00
|
|
|
["good first issue"](https://github.com/vmware-tanzu/pinniped/labels/good%20first%20issue)
|
|
|
|
or ["help wanted"](https://github.com/vmware-tanzu/pinniped/labels/help%20wanted).
|
2020-09-16 00:59:40 +00:00
|
|
|
|
2020-09-22 19:15:14 +00:00
|
|
|
## CLA
|
|
|
|
|
|
|
|
We welcome contributions from everyone but we can only accept them if you sign
|
|
|
|
our Contributor License Agreement (CLA). If you would like to contribute and you
|
|
|
|
have not signed it, our CLA-bot will walk you through the process when you open
|
|
|
|
a Pull Request. For questions about the CLA process, see the
|
|
|
|
[FAQ](https://cla.vmware.com/faq) or submit a question through the GitHub issue
|
|
|
|
tracker.
|
|
|
|
|
2020-08-26 14:06:21 +00:00
|
|
|
## Building
|
|
|
|
|
2020-10-02 20:00:23 +00:00
|
|
|
The [Dockerfile](Dockerfile) at the root of the repo can be used to build and
|
2020-09-11 15:43:53 +00:00
|
|
|
package the code. After making a change to the code, rebuild the docker image with the following command.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-08-27 17:14:03 +00:00
|
|
|
```bash
|
|
|
|
# From the root directory of the repo...
|
2020-08-26 14:06:21 +00:00
|
|
|
docker build .
|
|
|
|
```
|
|
|
|
|
|
|
|
## Testing
|
|
|
|
|
|
|
|
### Running Lint
|
|
|
|
|
2020-08-27 17:14:03 +00:00
|
|
|
```bash
|
2020-08-26 14:06:21 +00:00
|
|
|
./hack/module.sh lint
|
|
|
|
```
|
|
|
|
|
|
|
|
### Running Unit Tests
|
|
|
|
|
2020-08-27 17:14:03 +00:00
|
|
|
```bash
|
2020-09-11 15:43:53 +00:00
|
|
|
./hack/module.sh units
|
2020-08-26 14:06:21 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
### Running Integration Tests
|
|
|
|
|
2020-09-11 14:29:21 +00:00
|
|
|
```bash
|
2020-09-11 15:43:53 +00:00
|
|
|
./hack/prepare-for-integration-tests.sh && source /tmp/integration-test-env && go test -v -count 1 ./test/...
|
2020-09-11 14:29:21 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
The `./hack/prepare-for-integration-tests.sh` script will create a local
|
2020-09-11 15:43:53 +00:00
|
|
|
[`kind`](https://kind.sigs.k8s.io/) cluster on which the integration tests will run.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-09-16 00:59:40 +00:00
|
|
|
### Observing Tests on the Continuous Integration Environment
|
|
|
|
|
|
|
|
CI will not be triggered on a pull request until the pull request is reviewed and
|
2020-10-02 20:00:23 +00:00
|
|
|
approved for CI by a project [maintainer](MAINTAINERS.md). Once CI is triggered,
|
2020-09-16 00:59:40 +00:00
|
|
|
the progress and results will appear on the Github page for that
|
2020-09-17 17:56:54 +00:00
|
|
|
[pull request](https://github.com/vmware-tanzu/pinniped/pulls) as checks. Links
|
2020-09-16 00:59:40 +00:00
|
|
|
will appear to view the details of each check.
|
|
|
|
|
|
|
|
## Documentation
|
|
|
|
|
|
|
|
Any pull request which adds a new feature or changes the behavior of any feature which was previously documented
|
|
|
|
should include updates to the documentation. All documentation lives in this repository. This project aspires to
|
|
|
|
follow the Kubernetes [documentation style guide](https://kubernetes.io/docs/contribute/style/style-guide).
|
|
|
|
|
|
|
|
## Pre-commit Hooks
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-08-27 17:14:03 +00:00
|
|
|
This project uses [pre-commit](https://pre-commit.com/) to agree on some conventions about whitespace/file encoding.
|
2020-08-26 14:06:21 +00:00
|
|
|
|
2020-08-27 17:14:03 +00:00
|
|
|
```bash
|
2020-08-26 14:06:21 +00:00
|
|
|
$ brew install pre-commit
|
|
|
|
[...]
|
|
|
|
$ pre-commit install
|
|
|
|
pre-commit installed at .git/hooks/pre-commit
|
|
|
|
```
|
2020-09-16 00:59:40 +00:00
|
|
|
|
|
|
|
## Becoming a Pinniped Maintainer
|
|
|
|
|
|
|
|
Regular contributors who are active in the Pinniped community and who have contributed at least several
|
|
|
|
significant pull requests may be considered for promotion to become a maintainer upon request. Please
|
2020-10-02 20:00:23 +00:00
|
|
|
contact an existing [maintainer](MAINTAINERS.md) if you would like to be considered.
|