titansoft-pte-ltd / imagepullsecret-patcher

A simple Kubernetes client-go application that creates and patches imagePullSecrets to service accounts in all Kubernetes namespaces to allow cluster-wide authenticated access to private container registry.
https://medium.com/titansoft-engineering/kubernetes-cluster-wide-access-to-private-container-registry-with-imagepullsecret-patcher-b8b8fb79f7e5
MIT License
256 stars 91 forks source link

Add support for multiple private registries #19

Closed forp007 closed 3 years ago

forp007 commented 3 years ago

Thanks for this very useful tool ! We have several private registries that we would like to support using the same k8s secret.
I have tried several configuration but they are alway rejected with the following error: Secret is not valid, overwritting now" Our K8S secret look like the following:

{ "auths": { "HostA": { "auth": "BASE64 Auth", "password": "password", "username": "user" }, "HostB": { "auth": "BASE64 Auth", "password": "password", "username": "user" } } }

Thanks for your help !

forp007 commented 3 years ago

The issue was related to secret format.