1
0
mirror of https://github.com/rancher/rke.git synced 2025-09-24 21:07:32 +00:00

Use standard base64 encoding for Docker auth

This commit is contained in:
Matt Nikkel
2020-05-11 18:53:58 -04:00
committed by Denise
parent 2b226dc314
commit 089554f0d6

View File

@@ -705,7 +705,7 @@ func GetKubeletDockerConfig(prsMap map[string]v3.PrivateRegistry) (string, error
auths := map[string]authConfig{}
for url, pr := range prsMap {
auth := base64.URLEncoding.EncodeToString([]byte(fmt.Sprintf("%s:%s", pr.User, pr.Password)))
auth := base64.StdEncoding.EncodeToString([]byte(fmt.Sprintf("%s:%s", pr.User, pr.Password)))
auths[url] = authConfig{Auth: auth}
}
cfg, err := json.Marshal(dockerConfig{auths})