Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pkg/k8s: ignore status field in CNP DeepEqual
The status field should be ignored when comparing 2 CNPs as this field does not matter to the policy enforcement of the CNP. This fixes a bug introduced by 134fdb5 which make Cilium to process all CNP events from k8s including the ones where a status was the only field modified. This made a cluster with 2 or more nodes to concurrently trying the update its own status in the CNP causing the other node to receive and process the CNP event. Fixes: 134fdb5 ("k8s/watchers: fix missing missing CNP/CCNP updates") Signed-off-by: André Martins <andre@cilium.io>
- Loading branch information