Skip to content

Commit cded1fd

Browse files
authored
Merge pull request #5188 from vitorfloriano/fix-warnings
📖 (docs/ui): better format for warnings
2 parents 4c2adc8 + 6965ff0 commit cded1fd

17 files changed

+50
-50
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ kubectl create -f config/samples/batch_v1_cronjob.yaml
6262
You can also try to create an invalid CronJob (e.g. use an ill-formatted
6363
schedule field). You should see a creation failure with a validation error.
6464

65-
<aside class="note warning">
65+
<aside class="warning">
6666

67-
<h1>The Bootstrapping Problem</h1>
67+
<h3>The Bootstrapping Problem</h3>
6868

6969
If you are deploying a webhook for pods in the same cluster, be
7070
careful about the bootstrapping problem, since the creation request of the

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,8 @@ config version to the latest supported by your target plugin version before upgr
326326

327327
The following steps describe the manual changes required to modify the project's layout enabling your project to use the `go/v3` plugin. These steps will not help you address all the bug fixes of the already generated scaffolds.
328328

329-
<aside class="note warning">
330-
<h1> Deprecated APIs </h1>
329+
<aside class="warning">
330+
<h3> Deprecated APIs </h3>
331331

332332
The following steps will not migrate the API versions which are deprecated `apiextensions.k8s.io/v1beta1`, `admissionregistration.k8s.io/v1beta1`, `cert-manager.io/v1alpha2`.
333333

@@ -500,8 +500,8 @@ You can check all changes applied to the Makefile by looking in the samples proj
500500

501501
#### Update your controllers
502502

503-
<aside class="note warning">
504-
<h1>Controller-runtime version updated has breaking changes</h1>
503+
<aside class="warning">
504+
<h3>Controller-runtime version updated has breaking changes</h3>
505505

506506
Check [sigs.k8s.io/controller-runtime release docs from 0.7.0+ version][controller-releases] for breaking changes.
507507

@@ -524,8 +524,8 @@ func (r *<MyKind>Reconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
524524

525525
#### Update your controller and webhook test suite
526526

527-
<aside class="note warning">
528-
<h1>Ginkgo V2 version update has breaking changes</h1>
527+
<aside class="warning">
528+
<h3>Ginkgo V2 version update has breaking changes</h3>
529529

530530
Check [Ginkgo V2 Migration Guide](https://onsi.github.io/ginkgo/MIGRATING_TO_V2) for breaking changes.
531531

@@ -703,8 +703,8 @@ version: "3"
703703

704704
You can try to re-create the APIS(CRDs) and Webhooks manifests by using the `--force` flag.
705705

706-
<aside class="note warning">
707-
<h1>Before re-create</h1>
706+
<aside class="warning">
707+
<h3>Before re-create</h3>
708708

709709
Note, however, that the tool will re-scaffold the files which means that you will lose their content.
710710

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ func (r *CronJobReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
109109
log := r.Log.WithValues("cronjob", req.NamespacedName)
110110
```
111111
112-
<aside class="note warning">
113-
<h1>Controller-runtime version updated has breaking changes</h1>
112+
<aside class="warning">
113+
<h3>Controller-runtime version updated has breaking changes</h3>
114114
115115
Check [sigs.k8s.io/controller-runtime release docs from 0.8.0+ version][controller-runtime] for breaking changes.
116116

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ Projects scaffolded with Kubebuilder v3 will use the `go.kubebuilder.io/v3` plug
4949
* Required Envtest binaries are automatically downloaded
5050
* The minimum Go version is now `1.18` (previously it was `1.13`).
5151

52-
<aside class="note warning">
53-
<h1>Project customizations</h1>
52+
<aside class="warning">
53+
<h3>Project customizations</h3>
5454

5555
After using the CLI to create your project, you are free to customise how you see fit. Bear in mind, that it is not recommended to deviate from the proposed layout unless you know what you are doing.
5656

@@ -62,8 +62,8 @@ For example, you should refrain from moving the scaffolded files, doing so will
6262

6363
So you want to upgrade your scaffolding to use the latest and greatest features then, follow up the following guide which will cover the steps in the most straightforward way to allow you to upgrade your project to get all latest changes and improvements.
6464

65-
<aside class="note warning">
66-
<h1> Apple Silicon (M1) </h1>
65+
<aside class="warning">
66+
<h3> Apple Silicon (M1) </h3>
6767

6868
The current scaffold done by the CLI (`go/v3`) uses [kubernetes-sigs/kustomize][kustomize] v3 which does not provide
6969
a valid binary for Apple Silicon (`darwin/arm64`). Therefore, you can use the `go/v4` plugin

docs/book/src/migration/migration_guide_gov3_to_gov4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ The recommended way to migrate a `go/v3` project is to create a new `go/v4` proj
1010
copy over the API and the reconciliation code. The conversion will end up with a
1111
project that looks like a native go/v4 project layout (latest version).
1212

13-
<aside class="note warning">
14-
<h1>Your Upgrade Assistant: The `alpha generate` command</h1>
13+
<aside class="warning">
14+
<h3>Your Upgrade Assistant: The `alpha generate` command</h3>
1515

1616
To upgrade your project you might want to use the command `kubebuilder alpha generate [OPTIONS]`.
1717
This command will re-scaffold the project using the current Kubebuilder version.

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Single Group to Multi-Group
22

3-
<aside class="note warning">
3+
<aside class="warning">
44

5-
<h1>Note</h1>
5+
<h3>Note</h3>
66

77
While Kubebuilder will not scaffold out a project structure compatible
88
with multiple API groups in the same repository by default, it's possible
@@ -14,8 +14,8 @@ Note that the process mainly is to ensure that your API(s) and controller(s) wi
1414

1515
Let's migrate the [CronJob example][cronjob-tutorial].
1616

17-
<aside class="note warning">
18-
<h1>Instructions vary per project layout</h1>
17+
<aside class="warning">
18+
<h3>Instructions vary per project layout</h3>
1919

2020
You can verify the version by looking at the PROJECT file. The currently default and
2121
recommended version is go/v4.

docs/book/src/migration/v3vsv4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Further details can be found in the [go/v4 plugin section][go/v4-doc]
3434

3535
**_More details on this can be found at [here][kb-releases], but for the highlights, check below_**
3636

37-
<aside class="note warning">
38-
<h1>Project customizations</h1>
37+
<aside class="warning">
38+
<h3>Project customizations</h3>
3939

4040
After using the CLI to create your project, you are free to customize how you see fit. Bear in mind, that it is not recommended to deviate from the proposed layout unless you know what you are doing.
4141

docs/book/src/migrations.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ The traditional process involves:
2929
All inputs used by Kubebuilder are tracked in the [PROJECT][project-config] file.
3030
If you use the CLI to generate your scaffolds, this file will record the project's configuration and metadata.
3131

32-
<aside class="note warning">
33-
<h1>Project customizations</h1>
32+
<aside class="warning">
33+
<h3>Project customizations</h3>
3434

3535
After using the CLI to create your project, you are free to customise how you see fit.
3636
Bear in mind, that it is not recommended to deviate from the proposed layout unless you know what you are doing.
@@ -46,8 +46,8 @@ the doc [What's in a basic project?][basic-project-doc]
4646

4747
Kubebuilder provides alpha commands to assist with project upgrades.
4848

49-
<aside class="note warning">
50-
<h1>Automation process will involve deleting all files to regenerate</h1>
49+
<aside class="warning">
50+
<h3>Automation process will involve deleting all files to regenerate</h3>
5151
Deletes all files except `.git` and `PROJECT`.
5252
</aside>
5353

docs/book/src/reference/alpha_commands.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ project migration and scaffold regeneration.
66
These commands are designed to simplify tasks that were previously manual and error-prone
77
by automating or partially automating the process.
88

9-
<aside class="note warning">
10-
<h1>Alpha commands are experimental</h1>
9+
<aside class="warning">
10+
<h3>Alpha commands are experimental</h3>
1111

1212
Alpha commands are under active development and may change or be removed in future releases.
1313
They make local changes to your project and may delete files during execution.

docs/book/src/reference/artifacts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ of its tooling. Additionally, you can find more information by reviewing the Kub
2626
</aside>
2727

2828

29-
<aside class="note warning">
30-
<h1>IMPORTANT: Action Required: Ensure that you no longer use https://storage.googleapis.com/kubebuilder-tools </h1>
29+
<aside class="warning">
30+
<h3>IMPORTANT: Action Required: Ensure that you no longer use https://storage.googleapis.com/kubebuilder-tools </h3>
3131

3232
**Artifacts provided under [https://storage.googleapis.com/kubebuilder-tools](https://storage.googleapis.com/kubebuilder-tools) are deprecated and Kubebuilder maintainers are no longer able to support, build, or ensure the promotion of these artifacts.**
3333

0 commit comments

Comments
 (0)