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

Example or tutorial #7

Open
magick93 opened this issue Jun 8, 2019 · 1 comment
Open

Example or tutorial #7

magick93 opened this issue Jun 8, 2019 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@magick93
Copy link

magick93 commented Jun 8, 2019

Hi

I've been reading your blog series. And I've also been reading about the Redhat OperatorSdk. And there is a few concepts from the OperatorSdk approach that I'm having trouble finding a similar concept in this project, name how to define the CRD.

Would you be able to provide a simple example, or tutorial? I've seen your reply to a similar question (#2 (comment)) and this is helpful. An example or tutorial however would be really helpful.

@ljnelson
Copy link
Member

ljnelson commented Jun 8, 2019

Hello; thanks for using microBean Kubernetes Controller CDI. Yes, a full-on tutorial is on my list.

To define the CRD, you'll be looking mostly at Kubernetes Client documentation. They've had some troubles over the months and years in this area, owing to the only-half-working POC that I think James Strachan dropped into their repo. There have been many bugs filed against it and its underlying machinery and attempts to repair it; I am not sure what the overall status is, but you can sort of get an idea by looking at relevant issues.

In any event, you'll be looking at a Kubernetes client recipe for telling this framework what sorts of custom resources to list and watch. Those same resources will be the ones that you @Observes. I know this is brief, but I hope it gets you pointed in the right direction.

@ljnelson ljnelson self-assigned this Jun 8, 2019
@ljnelson ljnelson added the enhancement New feature or request label Jun 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants