Skip to content

Conversation

@oliverbaehler
Copy link
Collaborator

No description provided.

Comment on lines 26 to 28
return !reflect.DeepEqual(oldObj.Spec, newObj.Spec)
// or with k8s helpers:
// return !equality.Semantic.DeepEqual(oldObj.Spec, newObj.Spec)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should avoid at our best the usage of the reflection package since it's expensive.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed refelction for primitive check

@oliverbaehler oliverbaehler merged commit 7e7d9d0 into projectcapsule:main Nov 20, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants