Skip to content

Commit f3f07ae

Browse files
📖 Minor Documentation Improvements: Add Links, Fix Typos, and Clarify Instructions (#4093)
This pull request includes several small but important improvements to the documentation, aimed at enhancing clarity and providing additional resources: - Added a link to the CronJob Tutorial in the "Next Steps" section of the Getting Started guide. - Fixed minor issues with documentation headings and improved consistency in the Quick Start guide. - Clarified the need to push images in the Running guide with an added note. - Recommended using Kind for testing in the Getting Started guide. - Corrected a typo in the link to the Kind guide. - Added a brief note in the "Next Steps" section about the Deploy Image plugin to offer further guidance.
1 parent cd2db04 commit f3f07ae

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ You can directly load your local image into your specified Kind cluster:
2323
kind load docker-image <your-image-name>:tag --name <your-kind-cluster-name>
2424
```
2525

26-
To now more see: [Kind for Dev & CI](./../reference/kind.md)
26+
To know more, see: [Using Kind For Development Purposes and CI](./../reference/kind.md)
2727

2828
</aside>
2929

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

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,26 @@ make deploy IMG=<some-registry>/<project-name>:tag
7474
```
7575

7676
<aside class="note">
77-
<h1>registry permission</h1>
77+
<h1>Registry Permission</h1>
7878

7979
This image ought to be published in the personal registry you specified. And it is required to have access to pull the image from the working environment.
8080
Make sure you have the proper permission to the registry if the above commands don't work.
8181

82+
Consider incorporating Kind into your workflow for a faster, more efficient local development and CI experience.
83+
Note that, if you're using a Kind cluster, there's no need to push your image to a remote container registry.
84+
You can directly load your local image into your specified Kind cluster:
85+
86+
```bash
87+
kind load docker-image <your-image-name>:tag --name <your-kind-cluster-name>
88+
```
89+
90+
To know more, see: [Using Kind For Development Purposes and CI](./../reference/kind.md)
91+
92+
<h1>RBAC errors</h1>
93+
94+
If you encounter RBAC errors, you may need to grant yourself cluster-admin
95+
privileges or be logged in as admin. See [Prerequisites for using Kubernetes RBAC on GKE cluster v1.11.x and older][pre-rbc-gke] which may be your case.
96+
8297
</aside>
8398

8499
If we list cronjobs again like we did before, we should see the controller

docs/book/src/getting-started.md

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,11 +510,40 @@ By executing `make build IMG=myregistry/example:1.0.0`, you'll build the image f
510510
public registry. This ensures easy accessibility, eliminating the need for additional configurations. Once that's done, you can deploy the image
511511
to the cluster using the `make deploy IMG=myregistry/example:1.0.0` command.
512512

513+
<aside class="note">
514+
<h1>Consider use Kind</h1>
515+
516+
This image ought to be published in the personal registry you specified. And it is required to have access to pull the image
517+
from the working environment. Make sure you have the proper permission
518+
to the registry if the above commands don't work.
519+
520+
Consider incorporating Kind into your workflow for a faster, more efficient local development and CI experience.
521+
Note that, if you're using a Kind cluster, there's no need to push your image to a remote container registry.
522+
You can directly load your local image into your specified Kind cluster:
523+
524+
```bash
525+
kind load docker-image <your-image-name>:tag --name <your-kind-cluster-name>
526+
```
527+
528+
For further information, see: [Using Kind For Development Purposes and CI](./reference/kind.md)
529+
530+
</aside>
531+
513532
## Next Steps
514533

515-
- To delve deeper into developing your solution, consider going through the provided tutorials.
534+
- To delve deeper into developing your solution, consider going through the [CronJob Tutorial][cronjob-tutorial]
516535
- For insights on optimizing your approach, refer to the [Best Practices][best-practices] documentation.
517536

537+
<aside class="note">
538+
<h1> Using Deploy Image plugin to generate APIs and source code </h1>
539+
540+
Now that you have a better understanding, you might want to check out the [Deploy Image][deploy-image] Plugin.
541+
This plugin allows users to scaffold APIs/Controllers to deploy and manage an Operand (image) on the cluster.
542+
It will provide scaffolds similar to the ones in this guide, along with additional features such as tests
543+
implemented for your controller.
544+
545+
</aside>
546+
518547
[k8s-operator-pattern]: https://kubernetes.io/docs/concepts/extend-kubernetes/operator/
519548
[controller-runtime]: https://github.com/kubernetes-sigs/controller-runtime
520549
[group-kind-oh-my]: ./cronjob-tutorial/gvks.md
@@ -527,3 +556,5 @@ to the cluster using the `make deploy IMG=myregistry/example:1.0.0` command.
527556
[options-manager]: https://pkg.go.dev/sigs.k8s.io/controller-runtime/pkg/manager#Options
528557
[quick-start]: ./quick-start.md
529558
[best-practices]: ./reference/good-practices.md
559+
[cronjob-tutorial]: https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial.html
560+
[deploy-image]: ./plugins/deploy-image-plugin-v1-alpha.md

docs/book/src/quick-start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ make deploy IMG=<some-registry>/<project-name>:tag
220220
```
221221

222222
<aside class="note">
223-
<h1>Registry permission</h1>
223+
<h1>Registry Permission</h1>
224224

225225
This image ought to be published in the personal registry you specified. And it is required to have access to pull the image from the working environment.
226226
Make sure you have the proper permission to the registry if the above commands don't work.
@@ -233,7 +233,7 @@ You can directly load your local image into your specified Kind cluster:
233233
kind load docker-image <your-image-name>:tag --name <your-kind-cluster-name>
234234
```
235235

236-
To now more see: [Kind for Dev & CI](./reference/kind.md)
236+
To know more, see: [Using Kind For Development Purposes and CI](./reference/kind.md)
237237

238238
<h1>RBAC errors</h1>
239239

@@ -260,8 +260,8 @@ make undeploy
260260

261261
## Next Step
262262

263-
Now, take a look at the [Architecture Concept Diagram][architecture-concept-diagram] for a clearer overview.
264-
Next, proceed with the [Getting Started Guide][getting-started], which should take no more than 30 minutes and will
263+
- Now, take a look at the [Architecture Concept Diagram][architecture-concept-diagram] for a clearer overview.
264+
- Next, proceed with the [Getting Started Guide][getting-started], which should take no more than 30 minutes and will
265265
provide a solid foundation. Afterward, dive into the [CronJob Tutorial][cronjob-tutorial] to deepen your
266266
understanding by developing a demo project.
267267

0 commit comments

Comments
 (0)