You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// as opposed to config write where different registries need to be addressed differently.
171
171
// It handles any changes in the authentication process across different Docker versions.
172
172
173
-
ifp.BaseImagePassword!="" {
174
-
varbaseConnectorLoginLogin
175
-
baseConnectorLogin.Registry=p.BaseImageRegistry
176
-
baseConnectorLogin.Username=p.BaseImageUsername
177
-
baseConnectorLogin.Password=p.BaseImagePassword
178
-
179
-
cmd:=commandLogin(baseConnectorLogin)
173
+
ifp.BaseImageRegistry!="" {
180
174
ifp.BaseImageUsername=="" {
181
175
returnfmt.Errorf("Username cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
182
176
}
183
177
ifp.BaseImagePassword=="" {
184
178
returnfmt.Errorf("Password cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
returnnil, fmt.Errorf("Username cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
55
+
returnnil, fmt.Errorf("Username must be specified for registry: %s", cred.Registry)
56
56
}
57
57
ifcred.Password=="" {
58
-
returnnil, fmt.Errorf("Password cannot be empty. The base image connector requires authenticated access. Please either use an authenticated connector, or remove the base image connector.")
58
+
returnnil, fmt.Errorf("Password must be specified for registry: %s", cred.Registry)
0 commit comments