Skip to content

Commit 75241ab

Browse files
authored
Merge pull request #2643 from kubernetes-sigs/master
🌱 Prepare for release 3.4.0
2 parents 47859bf + 61b263c commit 75241ab

File tree

270 files changed

+9744
-3329
lines changed

Some content is hidden

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

270 files changed

+9744
-3329
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--
22
3-
Hiya! Welcome to KubeBuilder! For a smooth PR process, please ensure
3+
Hiya! Welcome to Kubebuilder! For a smooth PR process, please ensure
44
that you include the following information:
55
66
* a description of the change

.github/workflows/apidiff.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
with:
2222
go-version: '1.17'
2323
- name: Execute go-apidiff
24-
uses: joelanford/go-apidiff@v0.1.0
24+
uses: joelanford/go-apidiff@v0.2.0
2525
with:
2626
compare-imports: true
2727
print-compatible: true

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Run linter
1919
uses: golangci/golangci-lint-action@v2
2020
with:
21-
version: v1.41 # Always uses the latest patch version.
21+
version: v1.45.2 # Always uses the latest patch version.
2222
only-new-issues: true # Show only new issues if it's a pull request
2323
- name: Report failure
2424
uses: nashmaniac/[email protected]

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ You can reach the maintainers of this project at:
125125
## Becoming a reviewer or approver
126126

127127
Contributors may eventually become official reviewers or approvers in
128-
KubeBuilder and the related repositories. See
128+
Kubebuilder and the related repositories. See
129129
[CONTRIBUTING-ROLES.md](docs/CONTRIBUTING-ROLES.md) for more information.
130130

131131
## Code of conduct

DESIGN.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# KubeBuilder Design Principles
1+
# Kubebuilder Design Principles
22

3-
This lays out some of the guiding design principles behind the KubeBuilder
3+
This lays out some of the guiding design principles behind the Kubebuilder
44
project and its various components.
55

66
## Overarching
@@ -26,15 +26,15 @@ project and its various components.
2626
coding, and it may involve interoperating with lower-level components,
2727
but it should be possible without unreasonable friction.
2828

29-
## KubeBuilder
29+
## Kubebuilder
3030

31-
* **KubeBuilder Has Opinions**: KubeBuilder exists as an opinionated
31+
* **Kubebuilder Has Opinions**: Kubebuilder exists as an opinionated
3232
project generator. It should strive to give users a reasonable project
3333
layout that's simple enough to understand when getting started, but
3434
provides room to grow. It might not match everyone's opinions, but it
3535
should strive to be useful to most.
3636

37-
* **Batteries Included**: KubeBuilder projects should contain enough
37+
* **Batteries Included**: Kubebuilder projects should contain enough
3838
deployment information to reasonably develop and run the scaffolded
3939
project. This includes testing, deployment files, and development
4040
infrastructure to go from code to running containers.
@@ -99,7 +99,7 @@ project and its various components.
9999

100100
* **Well-commented code**: Code should be commented and given Godocs, even
101101
private methods and functions. It may *seem* obvious what they do at the
102-
time and why, but you might forget, and other will certainly come along.
102+
time and why, but you might forget, and others will certainly come along.
103103

104104
* **Test Behaviors**: Test cases should be comprehensible as sets of
105105
expected behaviors. Test cases read without code (e.g. just using `It`,

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ GOLANGCI_LINT = $(shell pwd)/bin/golangci-lint
8282
golangci-lint:
8383
@[ -f $(GOLANGCI_LINT) ] || { \
8484
set -e ;\
85-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.41.1 ;\
85+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell dirname $(GOLANGCI_LINT)) v1.45.2 ;\
8686
}
8787

8888
.PHONY: apidiff
@@ -98,7 +98,7 @@ go-apidiff:
9898
##@ Tests
9999

100100
.PHONY: test
101-
test: test-unit test-integration test-testdata test-book ## Run the unit and integration tests (used in the CI)
101+
test: test-unit test-integration test-testdata test-book test-license ## Run the unit and integration tests (used in the CI)
102102

103103
.PHONY: test-unit
104104
TEST_PKGS := ./pkg/... ./test/e2e/utils/...
@@ -134,3 +134,7 @@ test-e2e-ci: ## Run the end-to-end tests (used in the CI)`
134134
.PHONY: test-book
135135
test-book: ## Run the cronjob tutorial's unit tests to make sure we don't break it
136136
cd ./docs/book/src/cronjob-tutorial/testdata/project && make test
137+
138+
.PHONY: test-license
139+
test-license: ## Run the license check
140+
./test/check-license.sh

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Kubebuilder increases velocity and reduces the complexity managed by
1212
developers for rapidly building and publishing Kubernetes APIs in Go.
1313
It builds on top of the canonical techniques used to build the core Kubernetes APIs to provide simple abstractions that reduce boilerplate and toil.
1414

15-
**Note:** kubebuilder does not exist as an example to *copy-paste*, but instead provides powerful libraries and tools
15+
**Note:** Kubebuilder does not exist as an example to *copy-paste*, but instead provides powerful libraries and tools
1616
to simplify building and publishing Kubernetes APIs from scratch.
1717

1818
Kubebuilder is developed on top of the controller-runtime and controller-tools libraries.
@@ -63,7 +63,7 @@ Building APIs using CRDs, Controllers and Admission Webhooks.
6363

6464
## Philosophy
6565

66-
See [DESIGN.md](DESIGN.md) for the guiding principles of the various KubeBuilder projects.
66+
See [DESIGN.md](DESIGN.md) for the guiding principles of the various Kubebuilder projects.
6767

6868
TL;DR:
6969

VERSIONING.md

Lines changed: 6 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# Versioning and Releasing for KubeBuilder
1+
# Versioning and Releasing for Kubebuilder
22

3-
We (mostly) follow the [common KubeBuilder versioning
3+
We (mostly) follow the [common Kubebuilder versioning
44
guidelines][guidelines], and use the corresponding tooling and PR process
55
described there.
66

7-
For the purposes of the aforementioned guidelines, KubeBuilder counts as
7+
For the purposes of the aforementioned guidelines, Kubebuilder counts as
88
a "CLI project".
99

1010
[guidelines]: https://sigs.k8s.io/kubebuilder-release-tools/VERSIONING.md
1111

12-
## Compability
12+
## Compatibility
1313

1414
Note that we generally do not support older release branches, except in
1515
extreme circumstances.
@@ -42,7 +42,7 @@ cherry-picked to the aforementioned branch to get them to be published.
4242
The cherry-picks will automatically be published to the book once their PR
4343
merges.
4444

45-
**When you publish a KubeBuilder release**, be sure to also submit a PR
45+
**When you publish a Kubebuilder release**, be sure to also submit a PR
4646
that merges the main branch into [book-v3][book-branch], so that it
4747
describes the latest changes in the new release.
4848

@@ -58,49 +58,5 @@ take care of building and publishing the artifacts.
5858

5959
[envtest-ref]: https://book.kubebuilder.io/reference/artifacts.html
6060
[tools-branch]: https://github.com/kubernetes-sigs/kubebuilder/tree/tools-releases
61-
62-
## Versioning
63-
64-
| Name | Example | Description |
65-
|--- |--- |--- |
66-
| KubeBuilder version | `v2.2.0`, `v2.3.0`, `v2.3.1` | Tagged versions of the KubeBuilder project, representing changes to the source code in this repository. See the [releases][kb-releases] page for binary releases. |
67-
| Project version | `"1"`, `"2"`, `"3"` | Project version defines the scheme of a `PROJECT` configuration file. This version is defined in a `PROJECT` file's `version`. |
68-
| Plugin version | `v2`, `v3` | Represents the version of an individual plugin, as well as the corresponding scaffolding that it generates. This version is defined in a plugin key, ex. `go.kubebuilder.io/v2`. See the [design doc][cli-plugins-versioning] for more details. |
69-
70-
### Incrementing versions
71-
72-
For more information on how KubeBuilder release versions work, see the [semver](https://semver.org/) documentation.
73-
74-
Project versions should only be increased if a breaking change is introduced in the PROJECT file scheme itself. Changes to the Go scaffolding or the KubeBuilder CLI *do not* affect project version.
75-
76-
Similarly, the introduction of a new plugin version might only lead to a new minor version release of KubeBuilder, since no breaking change is being made to the CLI itself. It'd only be a breaking change to KubeBuilder if we remove support for an older plugin version. See the plugins design doc [versioning section][cli-plugins-versioning]
77-
for more details on plugin versioning.
78-
79-
**NOTE:** the scheme for project version `"2"` was defined before the concept of plugins was introduced, so plugin `go.kubebuilder.io/v2` is implicitly used for those project types. Schema for project versions `"3"` and beyond define a `layout` key that informs the plugin system of which plugin to use.
80-
81-
## Introducing changes to plugins
82-
83-
Changes made to plugins only require a plugin version increase if and only if a change is made to a plugin
84-
that breaks projects scaffolded with the previous plugin version. Once a plugin version `vX` is stabilized (it doesn't
85-
have an "alpha" or "beta" suffix), a new plugin package should be created containing a new plugin with version
86-
`v(X+1)-alpha`. Typically this is done by (semantically) `cp -r pkg/plugins/golang/vX pkg/plugins/golang/v(X+1)` then updating
87-
version numbers and paths. All further breaking changes to the plugin should be made in this package; the `vX`
88-
plugin would then be frozen to breaking changes.
89-
90-
You must also add a migration guide to the [migrations](https://book.kubebuilder.io/migrations.html)
91-
section of the KubeBuilder book in your PR. It should detail the steps required
92-
for users to upgrade their projects from `vX` to `v(X+1)-alpha`.
93-
94-
### Example
95-
96-
KubeBuilder scaffolds projects with plugin `go.kubebuilder.io/v3` by default.
97-
98-
You create a feature that adds a new marker to the file `main.go` scaffolded by `init`
99-
that `create api` will use to update that file. The changes introduced in your feature
100-
would cause errors if used with projects built with plugins `go.kubebuilder.io/v2`
101-
without users manually updating their projects. Thus, your changes introduce a breaking change
102-
to plugin `go.kubebuilder.io`, and can only be merged into plugin version `v3-alpha`.
103-
This plugin's package should exist already.
104-
10561
[kb-releases]:https://github.com/kubernetes-sigs/kubebuilder/releases
106-
[cli-plugins-versioning]:docs/book/src/plugins/cli-plugins.md
62+
[cli-plugins-versioning]:docs/book/src/plugins/extending-cli.md#plugin-versioning

build/.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ builds:
4242
- linux_arm64
4343
- linux_ppc64le
4444
- darwin_amd64
45+
- darwin_arm64
4546
env:
46-
- KUBERNETES_VERSION=1.23.1
47+
- KUBERNETES_VERSION=1.23.5
4748
- CGO_ENABLED=0
4849

4950
# Only binaries of the form "kubebuilder_${goos}_${goarch}" will be released.

build/cloudbuild_snapshot.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,7 @@ steps:
3939
args: ["tar", "-zcvf", "kubebuilder_darwin_amd64.tar.gz", "-C", "dist/kubebuilder_darwin_amd64", "kubebuilder"]
4040
- name: "gcr.io/cloud-builders/gsutil"
4141
args: ["-h", "Content-Type:application/gzip", "cp", "kubebuilder_darwin_amd64.tar.gz", "gs://kubebuilder-release/kubebuilder_master_darwin_amd64.tar.gz"]
42+
- name: "ubuntu"
43+
args: ["tar", "-zcvf", "kubebuilder_darwin_arm64.tar.gz", "-C", "dist/kubebuilder_darwin_arm64", "kubebuilder"]
44+
- name: "gcr.io/cloud-builders/gsutil"
45+
args: ["-h", "Content-Type:application/gzip", "cp", "kubebuilder_darwin_arm64.tar.gz", "gs://kubebuilder-release/kubebuilder_master_darwin_arm64.tar.gz"]

0 commit comments

Comments
 (0)