zalando-incubator/kopf

Question: How to monitor child resources and change CRD state accordingly?

jmdacruz opened this issue · 2 comments

I'm probably missing something obvious. For instance, say I have an operator that reacts to the creation of a CRD by creating a Deployment that has a ReplicaSet with N pods, I'd like to reflect on the CRD's status the fact that the sub-resources have been created correctly, or else set the status of the CRD to an error. What's the proper pattern for this?

(I'm giving it a try at building a Celery operator: https://github.com/jmdacruz/celery-k8s-operator)

Awesome! That video is pretty cool, thanks for sharing!