Skip to content

Commit 5b33042

Browse files
authored
Merge pull request #2952 from kubernetes-sigs/release-3.7
📖 Update docs with release 3.7.0
2 parents b60ca27 + 3bfc84e commit 5b33042

File tree

646 files changed

+6464
-11579
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

646 files changed

+6464
-11579
lines changed

.github/workflows/apidiff.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ jobs:
3737
- name: Setup Go
3838
uses: actions/setup-go@v3
3939
with:
40-
go-version: "1.18"
40+
go-version: "1.19"
4141
- name: Execute go-apidiff
42-
uses: joelanford/go-apidiff@v0.2.0
42+
uses: joelanford/go-apidiff@v0.4.0
4343
with:
4444
compare-imports: true
4545
print-compatible: true

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ jobs:
3030
# Pull requests from the same repository won't trigger this checks as they were already triggered by the push
3131
if: (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) && needs.check_docs_only.outputs.skip != 'true'
3232
steps:
33+
- name: Setup Go
34+
uses: actions/setup-go@v3
35+
with:
36+
go-version: 1.19
3337
- name: Clone the code
3438
uses: actions/checkout@v3
3539
- name: Run linter
36-
uses: golangci/golangci-lint-action@v2
40+
uses: golangci/golangci-lint-action@v3
3741
with:
38-
version: v1.45.2 # Always uses the latest patch version.
42+
version: v1.49 # Always uses the latest patch version.
3943
only-new-issues: true # Show only new issues if it's a pull request
4044
- name: Report failure
4145
uses: nashmaniac/[email protected]

.github/workflows/release.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: release
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
goreleaser:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
with:
14+
fetch-depth: 0
15+
- name: Fetch all tags
16+
run: git fetch --force --tags
17+
- name: Set up Go
18+
uses: actions/setup-go@v2
19+
with:
20+
go-version: '~1.19'
21+
- name: Run GoReleaser
22+
uses: goreleaser/goreleaser-action@v2
23+
with:
24+
version: v1.11.2
25+
args: release -f ./build/.goreleaser.yml --rm-dist
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
- name: Upload assets
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: kubebuilder
32+
path: dist/*
33+
if-no-files-found: error

.github/workflows/testdata.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Go
1919
uses: actions/setup-go@v3
2020
with:
21-
go-version: '1.18'
21+
go-version: '1.19'
2222
- name: Remove pre-installed kustomize
2323
# This step is needed as the following one tries to remove
2424
# kustomize for each test but has no permission to do so

.github/workflows/unit-tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- name: Setup Go
4141
uses: actions/setup-go@v3
4242
with:
43-
go-version: "1.18"
43+
go-version: "1.19"
4444
# This step is needed as the following one tries to remove
4545
# kustomize for each test but has no permission to do so
4646
- name: Remove pre-installed kustomize
@@ -71,7 +71,7 @@ jobs:
7171
- name: Setup Go
7272
uses: actions/setup-go@v3
7373
with:
74-
go-version: "1.18"
74+
go-version: "1.19"
7575
- name: Generate the coverage output
7676
run: make test-coverage
7777
- name: Send the coverage output

.golangci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ linters-settings:
1919
linters:
2020
disable-all: true
2121
enable:
22-
- deadcode
2322
- dupl
2423
- errcheck
2524
- exportloopref
@@ -37,12 +36,10 @@ linters:
3736
- prealloc
3837
- revive
3938
- staticcheck
40-
- structcheck
4139
- typecheck
4240
- unconvert
4341
- unparam
4442
- unused
45-
- varcheck
4643

4744
run:
4845
deadline: 5m

CONTRIBUTING.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,27 +43,28 @@ $ git clone [email protected]:<user>/kubebuilder.git $GOPATH/src/sigs.k8s.io/kubebu
4343

4444
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/`
4545
1. Run `make test-unit test-e2e-local`
46-
- e2e tests use [`kind`][kind] and [`setup-envtest`][setup-envtest]. If you want to bring your own binaries, place them in `$(go env GOPATH)/bin`.
46+
47+
- e2e tests use [`kind`][kind] and [`setup-envtest`][setup-envtest]. If you want to bring your own binaries, place them in `$(go env GOPATH)/bin`.
4748

4849
**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.
4950

5051
Following the targets that can be used to test your changes locally.
5152

52-
| Command | Description | Is called in the CI? |
53-
|--- |--- |--- |
54-
| make test-unit | Runs go tests | no |
55-
| make test| Runs tests in shell (`./test.sh`) | yes |
56-
| make lint | Run [golangci][golangci] lint checks | yes |
57-
| make lint-fix | Run [golangci][golangci] to automatically perform fixes | no |
58-
| make test-coverage | Run coveralls to check the % of code covered by tests | yes |
59-
| make check-testdata | Checks if the testdata dir is updated with the latest changes | yes |
60-
| make test-e2e-local | Runs the CI e2e tests locally | no |
53+
| Command | Description | Is called in the CI? |
54+
| ------------------- | ------------------------------------------------------------- | -------------------- |
55+
| make test-unit | Runs go tests | no |
56+
| make test | Runs tests in shell (`./test.sh`) | yes |
57+
| make lint | Run [golangci][golangci] lint checks | yes |
58+
| make lint-fix | Run [golangci][golangci] to automatically perform fixes | no |
59+
| make test-coverage | Run coveralls to check the % of code covered by tests | yes |
60+
| make check-testdata | Checks if the testdata dir is updated with the latest changes | yes |
61+
| make test-e2e-local | Runs the CI e2e tests locally | no |
6162

6263
**NOTE** To use the `make lint` is required to install `golangci-lint` locally. More info: https://github.com/golangci/golangci-lint#install
6364

6465
## PR Process
6566

66-
See [VERSIONING.md](VERSIONING.md) for a full description. TL;DR:
67+
See [VERSIONING.md](VERSIONING.md) for a full description. TL;DR:
6768

6869
Every PR should be annotated with an icon indicating whether it's
6970
a:
@@ -90,8 +91,9 @@ separately.
9091
## Where the CI Tests are configured
9192

9293
1. See the [action files](.github/workflows) to check its tests, and the scripts used on it.
93-
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).
94-
1. Check that all scripts used by the CI are defined in the project.
94+
2. 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).
95+
3. Check that all scripts used by the CI are defined in the project.
96+
4. Notice that our policy to test the project is to run against k8s version N-2. So that the old version should be removed when there is a new k8s version available.
9597

9698
## How to contribute to docs
9799

@@ -115,19 +117,20 @@ Check the CI job after to do the Pull Request and then, click on in the `Details
115117
Learn how to engage with the Kubernetes community on the [community page](http://kubernetes.io/community/).
116118

117119
You can reach the maintainers of this project at:
120+
118121
- [Slack](http://slack.k8s.io/)
119122
- [Mailing List](https://groups.google.com/forum/#!forum/kubebuilder)
120123

121124
## Becoming a reviewer or approver
122125

123126
Contributors may eventually become official reviewers or approvers in
124-
Kubebuilder and the related repositories. See
127+
Kubebuilder and the related repositories. See
125128
[CONTRIBUTING-ROLES.md](docs/CONTRIBUTING-ROLES.md) for more information.
126129

127130
## Code of conduct
128131

129132
Participation in the Kubernetes community is governed by the [Kubernetes Code of Conduct](code-of-conduct.md).
130133

131-
[golangci]:https://github.com/golangci/golangci-lint
132-
[kind]:https://kind.sigs.k8s.io/#installation-and-usage
133-
[setup-envtest]:https://book.kubebuilder.io/reference/envtest
134+
[golangci]: https://github.com/golangci/golangci-lint
135+
[kind]: https://kind.sigs.k8s.io/#installation-and-usage
136+
[setup-envtest]: https://book.kubebuilder.io/reference/envtest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
8383
golangci-lint:
8484
@[ -f $(GOLANGCI_LINT) ] || { \
8585
set -e ;\
86-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.45.2 ;\
86+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.49.0 ;\
8787
}
8888

8989
.PHONY: apidiff

OWNERS_ALIASES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ aliases:
99

1010
# non-admin folks who can approve any PRs in the repo
1111
kubebuilder-approvers:
12+
- jmrodri
13+
- varshaprasad96
1214

1315
# folks who can review and LGTM any PRs in the repo (doesn't include
1416
# approvers & admins -- those count too via the OWNERS file)
1517
kubebuilder-reviewers:
16-
- jmrodri
1718
- joelanford
1819
- rashmigottipati
1920
- everettraven

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ See the [Getting Started](https://book.kubebuilder.io/quick-start.html) document
3838

3939
![Quick Start](docs/gif/kb-demo.v2.0.1.svg)
4040

41+
Also, ensure that you check out the [Deploy Image](https://book.kubebuilder.io/plugins/deploy-image-plugin-v1-alpha.html)
42+
Plugin. This plugin allows users to scaffold API/Controllers to deploy and manage an
43+
Operand (image) on the cluster following the guidelines and best practices. It abstracts the
44+
complexities of achieving this goal while allowing users to customize the generated code.
45+
4146
## Documentation
4247

4348
Check out the Kubebuilder [book](https://book.kubebuilder.io).

0 commit comments

Comments
 (0)