Skip to content

Commit b344f5b

Browse files
authored
Merge pull request #2525 from daniel-hutao/master
📖 docs: keep the proper noun Kubebuilder consistent
2 parents 0285666 + f962e6d commit b344f5b

File tree

20 files changed

+58
-58
lines changed

20 files changed

+58
-58
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

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: 5 additions & 5 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.

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: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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
@@ -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

@@ -63,17 +63,17 @@ take care of building and publishing the artifacts.
6363

6464
| Name | Example | Description |
6565
|--- |--- |--- |
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. |
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. |
6767
| 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`. |
6868
| 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. |
6969

7070
### Incrementing versions
7171

72-
For more information on how KubeBuilder release versions work, see the [semver](https://semver.org/) documentation.
72+
For more information on how Kubebuilder release versions work, see the [semver](https://semver.org/) documentation.
7373

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.
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.
7575

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]
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]
7777
for more details on plugin versioning.
7878

7979
**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.
@@ -88,12 +88,12 @@ version numbers and paths. All further breaking changes to the plugin should be
8888
plugin would then be frozen to breaking changes.
8989

9090
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
91+
section of the Kubebuilder book in your PR. It should detail the steps required
9292
for users to upgrade their projects from `vX` to `v(X+1)-alpha`.
9393

9494
### Example
9595

96-
KubeBuilder scaffolds projects with plugin `go.kubebuilder.io/v3` by default.
96+
Kubebuilder scaffolds projects with plugin `go.kubebuilder.io/v3` by default.
9797

9898
You create a feature that adds a new marker to the file `main.go` scaffolded by `init`
9999
that `create api` will use to update that file. The changes introduced in your feature

designs/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Designs
22
=======
33

4-
These are design documents for changes to KubeBuilder (and
4+
These are design documents for changes to Kubebuilder (and
55
cross-repository changes for related projects, like controller-runtime and
66
controller-tools). They exist to help document the design processes that
7-
go into writing KubeBuilder, but may not be up-to-date (more below).
7+
go into writing Kubebuilder, but may not be up-to-date (more below).
88

9-
Not all changes to KubeBuilder need a design document -- only major ones.
9+
Not all changes to Kubebuilder need a design document -- only major ones.
1010
Use your best judgement.
1111

1212
When submitting a design document, we encourage having written
@@ -17,10 +17,10 @@ proof-of-concept process can help iron out wrinkles and can help with the
1717

1818
## Out-of-Date Designs
1919

20-
**KubeBuilder documentation (the [book](https://book.kubebuilder.io) and
20+
**Kubebuilder documentation (the [book](https://book.kubebuilder.io) and
2121
the [GoDoc](https://pkg.go.dev/sigs.k8s.io/controller-runtime?tab=doc)) should be
2222
considered the canonical, update-to-date reference and architectural
23-
documentation** for KubeBuilder.
23+
documentation** for Kubebuilder.
2424

2525
However, if you see an out-of-date design document, feel free to submit
2626
a PR marking it as such, and add an addendum linking to issues documenting

designs/simplified-scaffolding.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,27 +97,27 @@ $ tree ./test/project/pkg/controller
9797

9898
## Motivation
9999

100-
The current scaffolding in KubeBuilder has two main problems:
100+
The current scaffolding in Kubebuilder has two main problems:
101101
comprehensibility and dependency passing.
102102

103103
### Complicated Initial Structure
104104

105-
While the structure of KubeBuilder projects will likely feel at home for
105+
While the structure of Kubebuilder projects will likely feel at home for
106106
existing Kubernetes contributors (since it matches the structure of
107107
Kubernetes itself quite closely), it provides a fairly convoluted
108108
experience out of the box.
109109

110110
Even for a single controller and API type (without a webhook), it
111111
generates 8 API-related files and 5 controller-related files. Of those
112-
files, 6 are KubeBuilder-specific glue code, 4 are test setup, and
112+
files, 6 are Kubebuilder-specific glue code, 4 are test setup, and
113113
1 contains standard Kubernetes glue code, leaving only 2 with actual
114114
user-edited code.
115115

116116
This proliferation of files makes it difficult for users to understand how
117117
their code relates to the library, posing some barrier for initial adoption
118118
and moving beyond a basic knowledge of functionality to actual
119119
understanding of the structure. A common line of questioning amongst
120-
newcomers to KubeBuilder includes "where should I put my code that adds
120+
newcomers to Kubebuilder includes "where should I put my code that adds
121121
new types to a scheme" (and similar questions), which indicates that it's
122122
not immediately obvious to these users why the project is structured the
123123
way it is.
@@ -148,13 +148,13 @@ construction of controllers (e.g. this [one file
148148
controller](https://github.com/DirectXMan12/sample-controller/blob/workshop/main.go)
149149
used as a getting started example for a workshop).
150150

151-
Current KubeBuilder scaffolding does not take advantage of the builder,
151+
Current Kubebuilder scaffolding does not take advantage of the builder,
152152
leaving generated code using the lower-level constructs which require more
153153
understanding of the internals of controller-runtime to comprehend.
154154

155155
### Dependency Passing Woes
156156

157-
Another common line of questioning amongst KubeBuilder users is "how to
157+
Another common line of questioning amongst Kubebuilder users is "how to
158158
I pass dependencies to my controllers?". This ranges from "how to I pass
159159
custom clients for the software I'm running" to "how to I pass
160160
configuration from files and flags down to my controllers" (e.g.
@@ -300,7 +300,7 @@ There are three options here:
300300
bury types deeper in a directory structure.
301301

302302
2. Try to move things and rename references. This takes a lot more effort
303-
on the KubeBuilder maintainers' part if we try to rename references
303+
on the Kubebuilder maintainers' part if we try to rename references
304304
across the codebase. Not so much if we force the user to, but that's
305305
a poorer experience.
306306

@@ -332,9 +332,9 @@ registering types to the scheme, and we can always fall back to emitting
332332
code for the user to place in manually if we can't find the correct
333333
comment.
334334

335-
### Making this work with Existing KubeBuilder Installations
335+
### Making this work with Existing Kubebuilder Installations
336336

337-
KubeBuilder projects currently have a `PROJECT` file that can be used to
337+
Kubebuilder projects currently have a `PROJECT` file that can be used to
338338
store information about project settings. We can make use of this to
339339
store a "scaffolding version", where we increment versions when making
340340
incompatible changes to how the scaffolding works.

docs/CONTRIBUTING-ROLES.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Contributing Roles
44
## Direct Code-Related Roles
55

66
While anyone (who's signed the [CLA and follows the code of
7-
conduct](../CONTRIBUTING.md)) is welcome to contribute to the KubeBuilder
7+
conduct](../CONTRIBUTING.md)) is welcome to contribute to the Kubebuilder
88
project, we've got two "formal" roles that carry additional privileges and
99
responsibilities: *reviewer* and *approver*.
1010

@@ -25,10 +25,10 @@ kubebuilder-admins in the `OWNERS_ALIASES` file).
2525
Anyone who wants to become a reviewer or approver must first be a [member
2626
of the Kubernetes project][kube-member]. The aforementioned doc has more
2727
details, but the gist is that you must have made a couple contributions to
28-
some part of the Kubernetes project -- *this includes KubeBuilder and
28+
some part of the Kubernetes project -- *this includes Kubebuilder and
2929
related repos*. Then, you need two existing members to sponsor you.
3030

31-
**If you've contributed a few times to KubeBuilder, we'll be happy to
31+
**If you've contributed a few times to Kubebuilder, we'll be happy to
3232
sponsor you, just ping us on Slack :-)**
3333

3434
## Reviewers

docs/book/src/cronjob-tutorial/cronjob-tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ building up to something pretty full-featured.
99
Let's pretend (and sure, this is a teensy bit contrived) that we've
1010
finally gotten tired of the maintenance burden of the non-Kubebuilder
1111
implementation of the CronJob controller in Kubernetes, and we'd like to
12-
rewrite it using KubeBuilder.
12+
rewrite it using Kubebuilder.
1313

1414
The job (no pun intended) of the *CronJob* controller is to run one-off
1515
tasks on the Kubernetes cluster at regular intervals. It does this by

docs/book/src/cronjob-tutorial/epilogue.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
By this point, we've got a pretty full-featured implementation of the
44
CronJob controller, made use of most of the features of
5-
KubeBuilder, and written tests for the controller using envtest.
5+
Kubebuilder, and written tests for the controller using envtest.
66

77
If you want more, head over to the [Multi-Version
88
Tutorial](/multiversion-tutorial/tutorial.md) to learn how to add new API

0 commit comments

Comments
 (0)