-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Enhance the controller skaffolded in order to support additional patterns #1349
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
Comments
So you want the |
Yes as I think that this is key feature needed in order to report to the end use using (oc get or kubectl get) if the CR is functionally operational. A CR is a contract between a user and a kubernetes controller in order to install k8s resources and they expect to be informed if the resources have been deployed/updated/removed and if the platform is now ready (= running) in order to continue what they have to do. |
Yes, we have plans to add support and helpers for the |
We have #1143, which is a work in progress. Its scope is only to define types and helpers to make it easier for operator developers to create/modify/remove conditions in I'm not sure there's a straightforward way for the SDK to implement a |
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Feature Request
Is your feature request related to a problem? Please describe.
One of the most difficult thing due to the event based architecture of k8s and async creation of the different kubernetes resources, is to figure out properly if the children resources created by the Controller when a CR is reconciled are created AND have by the example the status "Running". Such information is mandatory if we would like to report to the user responsible to create a Custom Resource if the application has been deployed sucessfully.
Describe the solution you'd like
I would like to suggest that the controller generated during the skaffolding process includes also the code able to fetch all the children resources populated (e.g pod, replicaSet) and update the status of the CR to by example "installed" if all the children resources status are "Running". Ideally, the children resources which are owned by the CR should be recuperated using an utility function such as
fetchAllOwnedResources
.Question : Should we perform this logic within the reconcile function of the CR OR using another controller ?
The text was updated successfully, but these errors were encountered: