Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForUnexpectedFieldChange ¶
CheckForUnexpectedFieldChange compares two Kubernetes objects and returns true if their annotations, labels, or spec have changed. This is useful for detecting unexpected modifications during reconciliation.
The function compares:
- Annotations (via GetAnnotations)
- Labels (via GetLabels)
- Spec (using reflection to access the Spec field, with semantic equality)
Status and finalizers are intentionally not compared, as these are expected to change during reconciliation.
This function uses reflection to access the Spec field, so no explicit GetSpec() method is required. The objects must have a field named "Spec".
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.