Skip to content
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

get build logs through the kube-apiserver, not the kubelet #19476

Merged
merged 2 commits into from Apr 25, 2018

Conversation

deads2k
Copy link
Contributor

@deads2k deads2k commented Apr 23, 2018

Go through the kube-apiserver instead of running direct to the kubelet for easier composition.

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Apr 23, 2018
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 23, 2018
@@ -340,38 +313,17 @@ func (r *REST) New() runtime.Object {
// pipeLogs retrieves the logs for a particular container and streams them into the provided writer.
func (r *REST) pipeLogs(ctx apirequest.Context, namespace, buildPodName string, containerLogOpts *kapi.PodLogOptions, writer io.Writer) error {
glog.V(4).Infof("pulling build pod logs for %s/%s, container %s", namespace, buildPodName, containerLogOpts.Container)
location, transport, err := pod.LogLocation(r.PodGetter, r.ConnectionInfo, ctx, buildPodName, containerLogOpts)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bparees I didn't find any unit tests for this. That's not like you. Are they in another package? I made a mock for the easy path (which works), but not this path and nothing failed....

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a unit test for what specifically?

mostly the build logs flows are exercised by the extended build tests.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a unit test for what specifically?

For the "stitch multiple log streams into a single log stream" flow.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah i relied on our extended tests which are all highly dependent on build log output checking.

@deads2k deads2k changed the title [WIP] get build logs through the kube-apiserver, not the kubelet get build logs through the kube-apiserver, not the kubelet Apr 24, 2018
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Apr 24, 2018
@deads2k
Copy link
Contributor Author

deads2k commented Apr 24, 2018

got my answer about the tests. Removing wip

Copy link
Member

@soltysh soltysh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Apr 24, 2018
@openshift-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: deads2k, soltysh

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@deads2k
Copy link
Contributor Author

deads2k commented Apr 24, 2018

/retest

2 similar comments
@deads2k
Copy link
Contributor Author

deads2k commented Apr 24, 2018

/retest

@deads2k
Copy link
Contributor Author

deads2k commented Apr 24, 2018

/retest

@openshift-merge-robot openshift-merge-robot merged commit b467ab2 into openshift:master Apr 25, 2018
@deads2k deads2k deleted the build-01-kubelet branch July 3, 2018 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants