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

feat: support get miniojob error by kubectl #2243

Merged
merged 4 commits into from
Jul 29, 2024

Conversation

jiuker
Copy link
Contributor

@jiuker jiuker commented Jul 26, 2024

log the error before return when create minio job error.
The error will be overwriten by c.updateJobStatus(ctx, &jobCR) before.
Now we can do

$ kubectl get minioJob -A
NAMESPACE        NAME             PHASE   MESSAGE
minio-operator   minio-test-job   Error   no policybinding found

jiuker added 3 commits July 26, 2024 16:12
log the error before return
refactor log
@jiuker jiuker requested review from pjuarezd and cniackz and removed request for pjuarezd July 26, 2024 09:02
@jiuker jiuker changed the title log: log the error before return when create minio job error feat: support get miniojob error by kubectl Jul 26, 2024
pjuarezd
pjuarezd previously approved these changes Jul 26, 2024
pkg/controller/job-controller.go Show resolved Hide resolved
pkg/controller/job-controller.go Outdated Show resolved Hide resolved
pkg/controller/job-controller.go Outdated Show resolved Hide resolved
pkg/controller/job-controller.go Outdated Show resolved Hide resolved
pkg/controller/job-controller.go Outdated Show resolved Hide resolved
pkg/controller/job-controller.go Outdated Show resolved Hide resolved
Co-authored-by: Ramon de Klein <mail@ramondeklein.nl>
@jiuker jiuker merged commit 7f53934 into minio:master Jul 29, 2024
21 checks passed
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 this pull request may close these issues.

4 participants