We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents da3afdf + 32bd30b commit add4febCopy full SHA for add4feb
1 file changed
pkg/devspace/pullsecrets/init.go
@@ -1,6 +1,7 @@
1
package pullsecrets
2
3
import (
4
+ "strings"
5
"time"
6
7
devspacecontext "github.com/loft-sh/devspace/pkg/devspace/context"
@@ -171,6 +172,12 @@ func (r *client) createPullSecret(ctx devspacecontext.Context, dockerClient dock
171
172
if password == "" && authConfig.IdentityToken != "" {
173
password = authConfig.IdentityToken
174
}
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
+ }
181
182
183
0 commit comments