Skip to content

BuildLogOptions drifting from PodLogOptions #5070

Closed

Description

@deads2k

PodLogOptions has more and better options than BuildLogOptions. See https://github.com/kubernetes/kubernetes/blob/master/pkg/api/types.go#L1614.

I'd like to embed PodLogOptions into BuildLogOptions for congruence that will stay up to date with rebases as we simply copy fields through. The alternative is to create a reflective unit test that requires matching fields so that we don't keep slipping.

@bparees @Kargakis @csrwng

Activity

  1. 0xmichalis commented on Oct 12, 2015

    @0xmichalis
    Contributor

    I'd like to embed PodLogOptions into BuildLogOptions

    I was thinking about this yesterday. +1

  2. 0xmichalis commented on Oct 22, 2015

    @0xmichalis
    Contributor

    We need this for DeploymentLogOptions too

    @deads2k this is the issue that needs to be fixed for your bugs in bugzilla

  3. 0xmichalis commented on Oct 22, 2015

    @0xmichalis
    Contributor

    oc logs pod --timestamps --tail 2 works fine

  4. 0xmichalis commented on Oct 22, 2015

    @0xmichalis
    Contributor

    oc logs pod --timestamps --tail 2 works fine

    Actually it works fine with #5233. Not sure about master

  5. 0xmichalis commented on Oct 23, 2015

    @0xmichalis
    Contributor

    Be sure to keep Follow backwards compatible.

    @deads2k if we embed PodLogOptions and remove our own Follow field, is there any problem?

  6. 0xmichalis commented on Oct 23, 2015

    @0xmichalis
    Contributor

    @deads2k if we embed PodLogOptions and remove our own Follow field, is there any problem?

    Hmmm, I think we are going to break start-build -f on older clients if we do this...

  7. deads2k commented on Oct 23, 2015

    @deads2k
    ContributorAuthor

    Hmmm, I think we are going to break start-build -f on older clients if we do this...

    I don't think so if the deserialization can still interpret the old fields. I think that

    type BuildLogOptions struct{
        PodLogOptions // ick
        NoWait bool
    }

    Old clients will still put follow in the correct location in query params.

  8. 0xmichalis commented on Oct 23, 2015

    @0xmichalis
    Contributor

    Actually you are right, inlining PodLogOptions will preserve follow

  9. 0xmichalis commented on Oct 24, 2015

    @0xmichalis
    Contributor

    @deads2k this needs to be reprioritized

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions