You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/PULL_REQUEST_TEMPLATE.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -40,7 +40,7 @@ Fixes #
40
40
#### Does this PR introduce a user-facing change?
41
41
<!--
42
42
If no, just write "NONE" in the release-note block below.
43
-
If yes, please enter the details of what chanages are being introduced:
43
+
If yes, please enter the details of what changes are being introduced:
44
44
Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".
45
45
46
46
For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
Copy file name to clipboardExpand all lines: examples/controller_tests/README.md
+15-14Lines changed: 15 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,8 @@
1
1
# Testing Kubernetes Controllers with the e2e-framework
2
2
3
-
This example shows you how to create end-to-end tests to test Kubernetes controller using the [CronJob controller](https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial) example that comes with the The Kubernetes-SIGs [Kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) project. It is based on blog post about the subject on [Medium](https://medium.com/programming-kubernetes/testing-kubernetes-controllers-with-the-e2e-framework-fac232843dc6).
3
+
This example shows you how to create end-to-end tests to test Kubernetes controller using the [CronJob controller](https://book.kubebuilder.io/cronjob-tutorial/cronjob-tutorial) example that comes with the Kubernetes-SIGs [Kubebuilder](https://github.com/kubernetes-sigs/kubebuilder) project. It is based on blog post about the subject on [Medium](https://medium.com/programming-kubernetes/testing-kubernetes-controllers-with-the-e2e-framework-fac232843dc6).
4
4
5
-
Find the example end-to-end test source code in [./testdata/e2e-test](./testdata/e2e-test/).
5
+
Find the example end-to-end test source code in [./testdata/e2e-test](./testdata/e2e-test).
Next, let's create a `Feature.Setup` to setup up a `Watcher` to watch for job pods created by our controller and put them on channel `podCreationSig` to be tested later:
228
+
Next, let's create a `Feature.Setup` to setup a `Watcher` to watch for job pods created by our controller and put them on channel `podCreationSig` to be tested later:
228
229
229
230
```go
230
231
funcTestCron(t *testing.T) {
@@ -273,7 +274,7 @@ func TestCron(t *testing.T) {
273
274
}
274
275
```
275
276
276
-
In the next assessment, we will create a new instance of a `CronJob` in the cluster and use the `wait` package to construct a dierctive to wait for API object to be created:
277
+
In the next assessment, we will create a new instance of a `CronJob` in the cluster and use the `wait` package to construct a directive to wait for API object to be created:
277
278
278
279
```go
279
280
funcTestCron(t *testing.T) {
@@ -312,7 +313,7 @@ func TestCron(t *testing.T) {
312
313
feature.Assess("Watcher received pod job", func(ctx context.Context, t *testing.T, cfg *envconf.Config) context.Context {
313
314
select {
314
315
case<-time.After(30 * time.Second):
315
-
t.Error("Timed out wating for job pod creation by cronjob contoller")
316
+
t.Error("Timed out waiting for job pod creation by cronjob controller")
0 commit comments