Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cronjob implementation in the tutorial not works #1680

Closed
camilamacedo86 opened this issue Sep 14, 2020 · 1 comment · Fixed by #1681
Closed

Cronjob implementation in the tutorial not works #1680

camilamacedo86 opened this issue Sep 14, 2020 · 1 comment · Fixed by #1681
Assignees

Comments

@camilamacedo86
Copy link
Member

The following error is faced when we try to run the make tests with.

• Failure [0.137 seconds]
CronJob controller
/Users/camilamacedo/go/src/sigs.k8s.io/kubebuilder/docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller_test.go:53
  When updating CronJob Status
  /Users/camilamacedo/go/src/sigs.k8s.io/kubebuilder/docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller_test.go:66
    Should increase CronJob Status.Active count when new Jobs are created [It]
    /Users/camilamacedo/go/src/sigs.k8s.io/kubebuilder/docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller_test.go:67

    Expected success, but got an error:
        <*errors.StatusError | 0xc0004d8780>: {
            ErrStatus: {
                TypeMeta: {Kind: "", APIVersion: ""},
                ListMeta: {
                    SelfLink: "",
                    ResourceVersion: "",
                    Continue: "",
                    RemainingItemCount: nil,
                },
                Status: "Failure",
                Message: "namespaces \"test-cronjob-namespace\" not found",
                Reason: "NotFound",
                Details: {
                    Name: "test-cronjob-namespace",
                    Group: "",
                    Kind: "namespaces",
                    UID: "",
                    Causes: nil,
                    RetryAfterSeconds: 0,
                },
                Code: 404,
            },
        }
        namespaces "test-cronjob-namespace" not found

    /Users/camilamacedo/go/src/sigs.k8s.io/kubebuilder/docs/book/src/cronjob-tutorial/testdata/project/controllers/cronjob_controller_test.go:100
------------------------------
STEP: By creating a new CronJob
2020-09-14T13:12:54.617+0100	INFO	controller-runtime.manager	starting metrics server	{"path": "/metrics"}
2020-09-14T13:12:54.617
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants