Skip to content

Deployer needs to inline hook pod logs into container output #5199

Closed

Description

@smarterclayton

Hook pods are incredibly hard to debug.

Activity

  1. ironcladlou commented on Oct 21, 2015

    @ironcladlou
    Contributor

    I started working on this and found myself needing to plumb through a concrete k8s *unversioned.Client from the client command downward. The clientcmd.Config.Clients() function gives me interfaces. I could try and set up the concrete clients myself, but I wouldn't be doing the same thing Clients() does (which uses a private bindEnv() call before instantiating the clients).

    Is there some other stable way to obtain a concrete client from a command entrypoint? Alternatively, is there a way to get to the log stream for a pod using just client.Interface? I couldn't find a way.

  2. ironcladlou commented on Oct 21, 2015

    @ironcladlou
    Contributor

    Quick clarification: I only needed to plumb the concrete client down into various constructors, which is fine IMO. The library code that does the really useful stuff works with either the client interfaces or private interfaces.

  3. ironcladlou commented on Oct 21, 2015

    @ironcladlou
    Contributor

    I figured out how to get a concrete client safely, at least. I'm going to roll with that for now.

  4. 0xmichalis commented on Nov 4, 2015

    @0xmichalis
    Contributor

    This is fixed now

  5. ironcladlou commented on Nov 4, 2015

    @ironcladlou
    Contributor

    Woops, I botched the description of the linked PR so this didn't auto-close.

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