vmware-tanzu / asset-relocation-tool-for-kubernetes

A tool for relocating Kubernetes Assets
Other
42 stars 5 forks source link

Add support to explicitly providing registry credentials #141

Open migmartri opened 2 years ago

migmartri commented 2 years ago

Currently, the relok8s CLI loads credentials from the local Docker keychain (~/.docker/config.json). Relok8s as a library already supports passing credentials explicitly https://github.com/vmware-tanzu/asset-relocation-tool-for-kubernetes/pull/70 so the next steps would be to expose that functionality to the CLI.

One possible implementation could be accepting env variables similar to what charts-syncer does, flags or config files could be an alternative too. If we go to that route it might make sense to look into if https://github.com/spf13/viper could be a good fit or an overkill.

cc/ @josvazg