-
Notifications
You must be signed in to change notification settings - Fork 38.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
auth/gcp: capture stderr from gcloud config-helper #55843
auth/gcp: capture stderr from gcloud config-helper #55843
Conversation
Fixes kubernetes/client-go#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. Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
@ahmetb: Adding do-not-merge/release-note-label-needed because the release note process has not been followed. One of the following labels is required "release-note", "release-note-action-required", or "release-note-none". Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/release-note-none |
/lgtm |
ping @cjcullen |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahmetb, cjcullen, ericchiang Associated issue: 327 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
This is a bug fix so adding to the 1.9 milestone. |
[MILESTONENOTIFIER] Milestone Pull Request Current Note: If this pull request is not resolved or labeled as Pull Request Labels
|
/test pull-kubernetes-e2e-gce-device-plugin-gpu |
Flaking on #56166 /test pull-kubernetes-bazel-test |
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 here. |
Fixes kubernetes/client-go#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 unittest in gcp_test.go capturing this situation, too, in case someone decides to
replace this with CombinedOutput someday.
/assign @cjcullen