You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Deployer needs to inline hook pod logs into container output #5199
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.
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.
Activity
ironcladlou commentedon Oct 21, 2015
I started working on this and found myself needing to plumb through a concrete k8s
*unversioned.Clientfrom the client command downward. Theclientcmd.Config.Clients()function gives me interfaces. I could try and set up the concrete clients myself, but I wouldn't be doing the same thingClients()does (which uses a privatebindEnv()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.ironcladlou commentedon Oct 21, 2015
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.
ironcladlou commentedon Oct 21, 2015
I figured out how to get a concrete client safely, at least. I'm going to roll with that for now.
0xmichalis commentedon Nov 4, 2015
This is fixed now
ironcladlou commentedon Nov 4, 2015
Woops, I botched the description of the linked PR so this didn't auto-close.