mirror of
https://github.com/kubernetes/client-go.git
synced 2025-07-16 16:21:11 +00:00
Merge pull request #55843 from ahmetb/gcpauth-error-output
Automatic merge from submit-queue (batch tested with PRs 56021, 55843, 55088, 56117, 55859). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. auth/gcp: capture stderr from gcloud config-helper Fixes https://github.com/kubernetes/client-go/issues/327 Currently we're not capturing stderr when shelling out to "gcloud config config-helper --format=json" fails. This patch is capturing the stderr in the error message returned. This gcloud command sometimes returns an upgrade reminder (in stderr) so using `cmd.CombinedOutput()` is not an option here. Maybe we should also add an unit test in gcp_test.go capturing this situation, too, in case someone decides to replace this with CombinedOutput someday. /assign @cjcullen Kubernetes-commit: ff012614ca67891f8a934354c824269b3dfd655e
This commit is contained in:
commit
005b26dbdf
160
Godeps/Godeps.json
generated
160
Godeps/Godeps.json
generated
@ -372,323 +372,323 @@
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/admissionregistration/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/apps/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/apps/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/apps/v1beta2",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/authentication/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/authentication/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/authorization/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/authorization/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/autoscaling/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/autoscaling/v2beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/batch/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/batch/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/batch/v2alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/certificates/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/core/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/extensions/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/imagepolicy/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/networking/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/policy/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/rbac/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/rbac/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/rbac/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/scheduling/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/settings/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/storage/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/storage/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/api/storage/v1beta1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/equality",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/errors",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/meta",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/resource",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/fuzzer",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/api/testing/roundtrip",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/announced",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apimachinery/registered",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/fuzzer",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/internalversion",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1/unstructured",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/apis/meta/v1alpha1",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/conversion/queryparams",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/fields",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/labels",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/schema",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/json",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/protobuf",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/recognizer",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/streaming",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/runtime/serializer/versioning",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/selection",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/types",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/cache",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/clock",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/diff",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/errors",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/framer",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/httpstream/spdy",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/intstr",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/json",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/mergepatch",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/net",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/remotecommand",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/runtime",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/sets",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/strategicpatch",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/validation/field",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/wait",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/util/yaml",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/version",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/pkg/watch",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/json",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/netutil",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/apimachinery/third_party/forked/golang/reflect",
|
||||
"Rev": "ee50df89e1d51862db9e60e3f2d731ca25da5576"
|
||||
"Rev": "89823107ac34d28589e61a8e8a52b282df0c3f9e"
|
||||
},
|
||||
{
|
||||
"ImportPath": "k8s.io/kube-openapi/pkg/common",
|
||||
|
@ -228,9 +228,11 @@ func newCmdTokenSource(cmd string, args []string, tokenKey, expiryKey, timeFmt s
|
||||
func (c *commandTokenSource) Token() (*oauth2.Token, error) {
|
||||
fullCmd := strings.Join(append([]string{c.cmd}, c.args...), " ")
|
||||
cmd := execCommand(c.cmd, c.args...)
|
||||
var stderr bytes.Buffer
|
||||
cmd.Stderr = &stderr
|
||||
output, err := cmd.Output()
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("error executing access token command %q: err=%v output=%s", fullCmd, err, output)
|
||||
return nil, fmt.Errorf("error executing access token command %q: err=%v output=%s stderr=%s", fullCmd, err, output, string(stderr.Bytes()))
|
||||
}
|
||||
token, err := c.parseTokenCmdOutput(output)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user