You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can we implement the scenario of one CR field in sync with another CR field?
I am building an operator using Kopf, and I need to monitor and react to changes in other resources (e.g., Deployments, Services, ConfigMaps) referenced by my custom resource. At first, I considered manually looking up the fields and implementing the synchronization logic. However, this approach is not truly dynamic and requires additional overhead to ensure synchronization between the different resources.
For example, I wanted to have a MyAppCRD referencing Deployments, Services, or other Kubernetes resources, as shown below:
Track changes to the Deployment and Service objects referenced in the deploymentRef and serviceRef fields.
Extract specific fields (e.g., labels, status conditions, annotations) from these referenced resources without having to perform complex and frequent API calls to the Kubernetes API.
Is there a better way to achieve this? For instance, is there a mechanism to create a real reference system between resources, enabling automatic change detection and efficient synchronization?
The text was updated successfully, but these errors were encountered:
Keywords
No response
Problem
How can we implement the scenario of one CR field in sync with another CR field?
I am building an operator using Kopf, and I need to monitor and react to changes in other resources (e.g., Deployments, Services, ConfigMaps) referenced by my custom resource. At first, I considered manually looking up the fields and implementing the synchronization logic. However, this approach is not truly dynamic and requires additional overhead to ensure synchronization between the different resources.
For example, I wanted to have a MyAppCRD referencing Deployments, Services, or other Kubernetes resources, as shown below:
In this case, I need to:
Is there a better way to achieve this? For instance, is there a mechanism to create a real reference system between resources, enabling automatic change detection and efficient synchronization?
The text was updated successfully, but these errors were encountered: