daemon: always use same sync func for CNPNS
daemon: always use same sync func for CNPNS

Previously, if the controller for updating the status of a given CNP on a node
failed, and then the annotations were updated before the controller had a chance
to run again, the controller would be replaced for the given rule, and the
annotations would be updated. As a side effect of this, the rule's other fields
(e.g., "Enforcing", "OK", etc.) would never be updated because of the
replacement of the controller which was trying to do the update, with different
functionality which only updated the annotations of the
CiliumNetworkPolicyNodeStatus for the given node. To avoid this problem,
parameterize the function for updating the status of a CiliumNetworkPolicy on a
node, and use this parameterized function both times when the controller to sync
the CNP node status is updated. This ensures that the same behavior occurs when
only annotations are updated for the rule, and when the rule itself is changed.
When a CiliumNetworkPolicy update is received and only the annotations are
updated, the rule is not re-added into the policy repository, because there are
no actual changes to the policy-related content within the rules themselves.
To ensure no race conditions occur between adding of a CiliumNetworkPolicy and
updating of the same CiliumNetworkPolicy, add a local cache of CNP --> policy
revision at time of import which is guaranteed to be updated by the code
which adds CiliumNetworkPolicies before updates are called for the same
CiliumNetworkPolicies.

Signed-off by: Ian Vernon <ian@cilium.io>

tgraf/cilium,cilium-team/cilium,scanf/cilium,michi-covalent/cilium,scanf/cilium,scanf/cilium,tgraf/cilium,scanf/cilium,cilium/cilium,tgraf/cilium,michi-covalent/cilium,michi-covalent/cilium,cilium/cilium,cilium/cilium,tklauser/cilium,tgraf/cilium,tklauser/cilium,cilium/cilium,scanf/cilium,scanf/cilium,michi-covalent/cilium,tgraf/cilium,tklauser/cilium,tklauser/cilium,cilium/cilium,tklauser/cilium,scanf/cilium,cilium-team/cilium,michi-covalent/cilium,tgraf/cilium