File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 11package pullsecrets
22
33import (
4+ "strings"
45 "time"
56
67 devspacecontext "github.com/loft-sh/devspace/pkg/devspace/context"
@@ -171,6 +172,12 @@ func (r *client) createPullSecret(ctx devspacecontext.Context, dockerClient dock
171172 if password == "" && authConfig .IdentityToken != "" {
172173 password = authConfig .IdentityToken
173174 }
175+
176+ // Handle Azure Container Registry (ACR) when credentials helper does not provide a username
177+ // https://learn.microsoft.com/en-us/azure/container-registry/container-registry-authentication?tabs=azure-cli#az-acr-login-with---expose-token
178+ if username == "" && strings .HasSuffix (authConfig .ServerAddress , "azurecr.io" ) {
179+ username = "00000000-0000-0000-0000-000000000000"
180+ }
174181 }
175182 }
176183
You can’t perform that action at this time.
0 commit comments