From ec57a9d42c241a391a416d4ef5f4f3ec5e7c0c4e Mon Sep 17 00:00:00 2001 From: Camila Macedo Date: Fri, 19 Jun 2020 17:39:18 +0100 Subject: [PATCH] doc: fix controller typo --- docs/book/src/quick-start.md | 2 +- docs/testing/integration.md | 4 ++-- docs/using_an_external_type.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/book/src/quick-start.md b/docs/book/src/quick-start.md index d5c1c13719c..b4586890169 100644 --- a/docs/book/src/quick-start.md +++ b/docs/book/src/quick-start.md @@ -87,7 +87,7 @@ kubebuilder create api --group webapp --version v1 --kind Guestbook

Press Options

If you press `y` for Create Resource [y/n] and for Create Controller [y/n] then this will create the files `api/v1/guestbook_types.go` where the API is defined -and the `controller/guestbook_controller.go` where the reconciliation business logic is implemented for this Kind(CRD). +and the `controllers/guestbook_controller.go` where the reconciliation business logic is implemented for this Kind(CRD). diff --git a/docs/testing/integration.md b/docs/testing/integration.md index 300066fd0dc..4c456c60ddc 100644 --- a/docs/testing/integration.md +++ b/docs/testing/integration.md @@ -4,7 +4,7 @@ This article explores steps to write and run integration tests for controllers created using Kubebuilder. Kubebuilder provides a template for writing integration tests. You can simply run all integration (and unit) tests within the project by running: `make test` -For example, there is a controller watches *Parent* objects. The *Parent* objects create *Child* objects. Note that the *Child* objects must have their `.ownerReferences` field setting to the `Parent` objects. You can find the template under `pkg/controller/parent/parent_controller_test.go`: +For example, there is a controller watching *Parent* objects. The *Parent* objects create *Child* objects. Note that the *Child* objects must have their `.ownerReferences` field setting to the `Parent` objects. You can find the template under `pkg/controllers/parent/parent_controller_test.go`: ``` package parent @@ -79,4 +79,4 @@ func TestReconcile(t *testing.T) { The manager is started as part of the test itself (`StartTestManager` function). -Both functions are located in `pkg/controller/parent/parent_controller_suite_test.go` file. The file also contains a `TestMain` function that allows you to specify CRD directory paths for the testing environment. +Both functions are located in `pkg/controllers/parent/parent_controller_suite_test.go` file. The file also contains a `TestMain` function that allows you to specify CRD directory paths for the testing environment. diff --git a/docs/using_an_external_type.md b/docs/using_an_external_type.md index 9c36acaf334..13f0044d500 100644 --- a/docs/using_an_external_type.md +++ b/docs/using_an_external_type.md @@ -105,7 +105,7 @@ dep ensure --add Edit the `CRDDirectoryPaths` in your test suite by appending the path to their CRDs: -file pkg/controller/my_kind_controller_suite_test.go +file pkg/controllers/my_kind_controller_suite_test.go ``` var cfg *rest.Config