# Functions
DeduplicateItems does the dedup.
ExtractNamespaceLabel to find out the cluster-namespace from the label.
FindPattern finds patterns.
=================================================================GetAllNamespaces gets the list of all namespaces from k8s.
GetGenericObject returns a generic object information from the k8s API server.
================================================================= GetSelectedNamespaces returns the list of filtered namespaces according to the policy namespace selector.
IfMatch check matches.
Initialize to initialize some controller varaibles.
MatchNames matches names.
Round rounds the value.
ToFixed returns a float with a certain precision.
# Variables
KubeClient a k8s client used for k8s native resources.
KubeConfig is the given kubeconfig at startup.
# Structs
SyncedPolicyMap a thread safe map.