-
Notifications
You must be signed in to change notification settings - Fork 440
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
Using clientset to read the Custom Resource #1992
Conversation
Currently having a panic while reading the resource, need to investigate why and how to fix it |
dec38c1
to
80a7f3b
Compare
Ok, finally I can read the CRD from within the controller loop; solved the panic by properly adding the |
b1fc330
to
6028f3c
Compare
Okay, this pull request is ready for review; we're just waiting for the tests to pass. |
6028f3c
to
4ca0afd
Compare
Thank you, Pedro and Jiuker, for the review. Log lines have been removed. Now, we await the test results to pass! |
4ca0afd
to
684a721
Compare
Ok team, this is ready to review! 👍 |
Objective:
To be able to read the Job Resource
Next Steps:
How to test:
Additional information:
This is not a new client, as initially thought, but rather the same client we have had since before. The difference is that the Job controller was implemented on top of it in PR: link to PR. You can examine the interface in
operator/pkg/client/clientset/versioned/clientset.go
:This interface allows us to share different resources over the same clientset: MinIO tenants, STS, and now Job.
Hope this helps clarify a bit.