mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Include stderr in cred provider plugin errors
This commit is contained in:
parent
1f0e718585
commit
766f6c3ad4
@ -410,7 +410,7 @@ func (e *execPlugin) ExecPlugin(ctx context.Context, image string) (*credentialp
|
|||||||
cmd.Env = mergeEnvVars(e.environ(), configEnvVars)
|
cmd.Env = mergeEnvVars(e.environ(), configEnvVars)
|
||||||
|
|
||||||
if err = e.runPlugin(ctx, cmd, image); err != nil {
|
if err = e.runPlugin(ctx, cmd, image); err != nil {
|
||||||
return nil, err
|
return nil, fmt.Errorf("%w: %s", err, stderr.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
data = stdout.Bytes()
|
data = stdout.Bytes()
|
||||||
|
Loading…
Reference in New Issue
Block a user