Browse Source
sdn: don't blow away all existing CNI plugins or config
The SDN only cares about plugins it runs, which is handled by
explicitly copying known binaries to /host/opt/cni/bin on
daemonset startup; we don't need to remove them all first.
Removing them all would potentially blow away 3rd party CNI
plugins that we shouldn't touch. Even if they exist, they
won't be activated/used when the SDN daemonset is run due to
the /etc/cni/net.d/ handling.
Also only delete the SDN's config file, otherwise other plugins
like Multus won't be able to work.
Let's play well with others instead of deleting them unconditionally.