Closed xguerin closed 6 years ago
If I'm understanding you right, the prior state of the object a given event concerns is available within the event itself.
Correct. But both states are complete. I am looking for a mean to basically make a diff of both states to only get what has changed between prior and current.
Oh, I see. You are asking a general question, then: given two Kubernetes resources represented as HasMetadata
objects, how can you diff them? That's a kubernetes-client question, and it seems they use this: https://github.com/fabric8io/kubernetes-client/blob/59e5b9d0f318f4f78f417efaec34050ed8122b8f/kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/base/OperationSupport.java#L39
thanks for the pointer 👍
Hey there,
What is the best way to get the resource delta on a modification event? I seem to recall something about delta queues in your blog but I am not entirely convinced this is related.
Thanks,