nydus-snapshotter
nydus-snapshotter copied to clipboard
Change List to Get when sync imagePullSecret from API server
Now we have three methods to get auth for nydusd. For the k8s scenario, the best solution is to get imagePullSecret directly from the API server if nydus-snapshotter is running on the node. Currently the kubeconfig-based-authentication uses List to synchronise secrets for all namespaces, which is stressed and unacceptable for API server.
But we cannot change it to Get now, because snapshotter has no chance to get the pod.Namespace and pod.Spec.imagePullSecret.Name.