print registry and user name during image push (#1121)

This commit is contained in:
Gunjan Vyas 2022-07-18 16:41:59 +05:30 committed by GitHub
parent 8eaa17b4bf
commit 0d0953aa1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ func (n *Pusher) Push(ctx context.Context, f fn.Function) (digest string, err er
if err != nil {
return "", fmt.Errorf("failed to get credentials: %w", err)
}
n.progressListener.Increment("Pushing function image to the registry")
n.progressListener.Increment(fmt.Sprintf("Pushing function image to the registry %q using the %q user credentials", registry, credentials.Username))
// if the registry is not cluster private do push directly from daemon
if _, err = net.DefaultResolver.LookupHost(ctx, registry); err == nil {