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

20 files changed

+58
-58
lines changed

.github/PULL_REQUEST_TEMPLATE.md

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

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

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

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

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

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

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

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

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

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

docs/book/src/logos/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# KubeBuilder Logos
1+
# Kubebuilder Logos
22

33
The official location for the logos is in a [public GCS
44
bucket][kb-logos-gcs] (or if you like GCS XML listings,

docs/book/src/migration/legacy/migration_guide_v1tov2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ We can replace the `+k8s:deepcopy-gen:interfaces=...` marker (which is
9696
`+kubebuilder:object:root=true`.
9797

9898
We don't need the following markers any more (they're not used anymore, and are
99-
relics from much older versions of KubeBuilder):
99+
relics from much older versions of Kubebuilder):
100100

101101
```go
102102
// +genclient

docs/book/src/migration/multi-group.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1>Note</h1>
66

77
Multi-group scaffolding support was not present in the initial version of
8-
the KubeBuilder v2 scaffolding (as of KubeBuilder v2.0.0).
8+
the Kubebuilder v2 scaffolding (as of Kubebuilder v2.0.0).
99

1010
To change the layout of your project to support Multi-Group run the command
1111
`kubebuilder edit --multigroup=true`. Once you switch to a multi-group layout, the new Kinds
@@ -14,7 +14,7 @@ to move the old API groups to the new layout.
1414

1515
</aside>
1616

17-
While KubeBuilder v2 will not scaffold out a project structure compatible
17+
While Kubebuilder v2 will not scaffold out a project structure compatible
1818
with multiple API groups in the same repository by default, it's possible
1919
to modify the default project structure to support it.
2020

@@ -68,7 +68,7 @@ repo: tutorial.kubebuilder.io/project
6868
multigroup: true
6969
```
7070
71-
Note that this option indicates to KubeBuilder that this is a multi-group project.
71+
Note that this option indicates to Kubebuilder that this is a multi-group project.
7272
7373
In this way, if the project is not new and has previous APIs already implemented will be in the previous structure.
7474
Notice that with the `multi-group` project the Kind API's files are
@@ -87,8 +87,8 @@ For envtest to install CRDs correctly into the test environment, the relative pa
8787
```
8888

8989
The [CronJob tutorial][cronjob-tutorial] explains each of these changes in
90-
more detail (in the context of how they're generated by KubeBuilder for
90+
more detail (in the context of how they're generated by Kubebuilder for
9191
single-group projects).
9292

93-
[multi-group-issue]: https://github.com/kubernetes-sigs/kubebuilder/issues/923 "KubeBuilder Issue #923"
93+
[multi-group-issue]: https://github.com/kubernetes-sigs/kubebuilder/issues/923 "Kubebuilder Issue #923"
9494
[cronjob-tutorial]: /cronjob-tutorial/cronjob-tutorial.md "Tutorial: Building CronJob"

docs/book/src/migrations.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Migrations
22

3-
Migrating between project structures in KubeBuilder generally involves
3+
Migrating between project structures in Kubebuilder generally involves
44
a bit of manual work.
55

66
This section details what's required to migrate, between different
7-
versions of KubeBuilder scaffolding, as well as to more complex project
7+
versions of Kubebuilder scaffolding, as well as to more complex project
88
layout structures.

docs/book/src/multiversion-tutorial/conversion-concepts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ the version stored by the API server.
5252
In that case, the API server needs to know how to convert between the
5353
desired version and the stored version. Since the conversions aren't
5454
built in for CRDs, the Kubernetes API server calls out to a webhook to do
55-
the conversion instead. For KubeBuilder, this webhook is implemented by
55+
the conversion instead. For Kubebuilder, this webhook is implemented by
5656
controller-runtime, and performs the hub-and-spoke conversions that we
5757
discussed above.
5858

docs/book/src/plugins/plugins.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Plugins
22

3-
Since the `3.0.0` KubeBuilder version, preliminary support for plugins was added. You can [Extend the CLI and Scaffolds][extending-cli] as well. See that when users run the CLI commands to perform the scaffolds, the plugins are used:
3+
Since the `3.0.0` Kubebuilder version, preliminary support for plugins was added. You can [Extend the CLI and Scaffolds][extending-cli] as well. See that when users run the CLI commands to perform the scaffolds, the plugins are used:
44

55
- To initialize a project with a chain of global plugins:
66

docs/book/src/reference/controller-gen.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# controller-gen CLI
22

3-
KubeBuilder makes use of a tool called
3+
Kubebuilder makes use of a tool called
44
[controller-gen](https://sigs.k8s.io/controller-tools/cmd/controller-gen)
55
for generating utility code and Kubernetes YAML. This code and config
66
generation is controlled by the presence of special ["marker

docs/book/src/reference/generating-crd.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Generating CRDs
22

3-
KubeBuilder uses a tool called [`controller-gen`][controller-tools] to
3+
Kubebuilder uses a tool called [`controller-gen`][controller-tools] to
44
generate utility code and Kubernetes object YAML, like
55
CustomResourceDefinitions.
66

@@ -10,7 +10,7 @@ packages. In the case of CRDs, these are generally pulled from your
1010
`_types.go` files. For more information on markers, see the [marker
1111
reference docs][marker-ref].
1212

13-
KubeBuilder provides a `make` target to run controller-gen and generate
13+
Kubebuilder provides a `make` target to run controller-gen and generate
1414
CRDs: `make manifests`.
1515

1616
When you run `make manifests`, you should see CRDs generated under the
@@ -157,7 +157,7 @@ in your CRD, and use a webhook to convert between them.
157157
For more details on this process, see the [multiversion
158158
tutorial](/multiversion-tutorial/tutorial.md).
159159

160-
By default, KubeBuilder disables generating different validation for
160+
By default, Kubebuilder disables generating different validation for
161161
different versions of the Kind in your CRD, to be compatible with older
162162
Kubernetes versions.
163163

@@ -194,7 +194,7 @@ to `CRD_OPTIONS ?= crd:trivialVersions=true`
194194

195195
## Under the hood
196196

197-
KubeBuilder scaffolds out make rules to run `controller-gen`. The rules
197+
Kubebuilder scaffolds out make rules to run `controller-gen`. The rules
198198
will automatically install controller-gen if it's not on your path using
199199
`go install` with Go modules.
200200

0 commit comments

Comments
 (0)