I'm trying to support two systems both of which pull images from private repos. One is from Kubernetes - which needs imagePullSecrets via a mounted secret and the other just needs standard docker login.
Based on this - Pulling images from private repository in kubernetes without using imagePullSecrets - it does not appear there's a way to use injected values to pull an image inside of Kubernetes - am I wrong?
What i'd really like is for both Kubernetes/Kubeflow and the other system to just both get an array of values (server, login, password, email) and be able to pull a private image.
You can handle both by doing the login at the lower level of dockerd or containerd on the host itself. Otherwise not really, other than mounting the image pull secret into the container if it will respect a dockerconfig.