Merge pull request #117448 from cartermckinnon/cred-provider-stderr

Include stderr in cred provider plugin errors
This commit is contained in:
Kubernetes Prow Robot 2023-05-03 09:54:33 -07:00 committed by GitHub
commit 44e3306323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -410,7 +410,7 @@ func (e *execPlugin) ExecPlugin(ctx context.Context, image string) (*credentialp
cmd.Env = mergeEnvVars(e.environ(), configEnvVars)
if err = e.runPlugin(ctx, cmd, image); err != nil {
return nil, err
return nil, fmt.Errorf("%w: %s", err, stderr.String())
}
data = stdout.Bytes()