Tagged articles
2 articles
Page 1 of 1
Ops Development & AI Practice
Ops Development & AI Practice
May 12, 2024 · Cloud Native

How to Efficiently Detect Changes in Complex Kubernetes Operator Objects

This article explains how to efficiently detect changes in complex Kubernetes Operator objects by comparing current and desired states using methods such as reflect.DeepEqual, hash‑based comparison, JSON Patch generation, deep copying, and custom comparison functions, and offers best‑practice guidance for reliable controller implementations.

Change DetectionDeepEqualGo
0 likes · 8 min read
How to Efficiently Detect Changes in Complex Kubernetes Operator Objects
Didi Tech
Didi Tech
May 17, 2019 · Fundamentals

Understanding Go Reflection: Types, Values, and Practical Applications

Go’s reflection, accessed via the reflect package’s TypeOf and ValueOf functions, lets programs inspect and modify runtime types and values—including fields, tags, and slices—while obeying settable rules, enabling generic utilities such as JSON serialization, deep equality checks, and dynamic ORM-like behavior.

@ValueDeepEqualGo
0 likes · 27 min read
Understanding Go Reflection: Types, Values, and Practical Applications