You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. Ensure you activate module support before continue (`$ export GO111MODULE=on`)
33
-
1. Build the project by using the command `make build`
34
39
1. Run the command `make install` to create a bin with the source code
35
40
36
-
## How to test kubebuilder locally
41
+
**NOTE** In order to check the local environment run `make go-test`.
42
+
43
+
## What to do before submitting a pull request
37
44
38
-
1. Run the tests by using the command `make test`. It will execute unit tests.
39
-
1. Run the script `make generate` to update/generate the mock data used in the e2e test in `$GOPATH/src/sigs.k8s.io/kubebuilder/testdata/`
45
+
1. Run the script `make generate` to update/generate the mock data used in the e2e test in `$GOPATH/src/sigs.k8s.io/kubebuilder/testdata/`
40
46
41
47
**IMPORTANT:** The `make generate` is very helpful. By using it, you can check if good part of the commands still working successfully after the changes. Also, note that its usage is a pre-requirement to submit a PR.
42
48
43
-
**NOTE** To run `make lint` is required to install `golangci-lint` locally it. More info: https://github.com/golangci/golangci-lint#install
44
-
45
-
## Where the CI Tests are configured?
49
+
Following the targets that can be used to test your changes locally.
50
+
51
+
| Command | Description | Is called in the CI? |
52
+
|--- |--- |--- |
53
+
| make go-test | Runs go tests | no |
54
+
| make test| Runs tests in shell (`./test.sh`) | yes |
55
+
| make lint | Check the code implementation | yes |
56
+
| make test-coverage | Run coveralls to check the % of code covered by tests | yes |
57
+
| make check-testdata | Checks if the testdata dir is updated with the latest changes | yes |
58
+
59
+
**NOTE** To use the `make lint` is required to install `golangci-lint` locally. More info: https://github.com/golangci/golangci-lint#install
60
+
61
+
## Where the CI Tests are configured
46
62
47
63
1. See the [Travis](.travis.yml) file to check its tests and the scripts used on it.
48
64
1. Note that the prow tests used in the CI are configured in [kubernetes-sigs/kubebuilder/kubebuilder-presubmits.yaml](https://github.com/kubernetes/test-infra/blob/master/config/jobs/kubernetes-sigs/kubebuilder/kubebuilder-presubmits.yaml).
@@ -62,7 +78,7 @@ If adding doc for an unreleased feature, the PR should target `master` branch.
62
78
If updating existing docs, the PR should target `master` branch and then
63
79
cherry-picked into `book-v2` branch.
64
80
65
-
### How to preview the changes performed in the docs?
81
+
### How to preview the changes performed in the docs
66
82
67
83
Check the CI job after to do the Pull Request and then, click on in the `Details` of `netlify/kubebuilder/deploy-preview`
68
84
@@ -71,7 +87,6 @@ Check the CI job after to do the Pull Request and then, click on in the `Details
71
87
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -86,6 +86,11 @@ Before you file an issue, please search existing issues to see if your issue is
86
86
For realtime discussion, you can join the [#kubebuilder](https://slack.k8s.io/#kubebuilder) slack channel. Slack requires registration, but the Kubernetes team is open invitation to anyone to register here. Feel free to come and ask any questions.
87
87
88
88
## Contributing
89
+
89
90
Contributions are greatly appreciated. The maintainers actively manage the issues list, and try to highlight issues suitable for newcomers.
90
91
The project follows the typical GitHub pull request model. See [CONTRIBUTING.md](CONTRIBUTING.md) for more details.
91
92
Before starting any work, please either comment on an existing issue, or file a new one.
93
+
94
+
## Supportability
95
+
96
+
Currently, Kubebuilder officially supports OSX and Linux platforms. So, if you are using a Windows OS you may find issues. Contributions towards supporting Windows are welcome.
0 commit comments