We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using the kubernetes/client-go one can use the PodExpansion interface to obtain the logs inside a pod:
kubernetes/client-go
PodExpansion
// The PodExpansion interface allows manually adding extra methods to the PodInterface. type PodExpansion interface { Bind(binding *v1.Binding) error Evict(eviction *policy.Eviction) error GetLogs(name string, opts *v1.PodLogOptions) *restclient.Request }
A code to get the logs would look like:
options := &corev1.PodLogOptions{ Container: logID, } request := pods.GetLogs(pod.Name, options) buff, err := request.DoRaw() if err != nil { // Handle error. }
Is there a way to do the same with the controller-runtime client?
controller-runtime
The text was updated successfully, but these errors were encountered:
Just found this issue #452. Closing as this is a dup.
Sorry, something went wrong.
No branches or pull requests
Using the
kubernetes/client-go
one can use thePodExpansion
interface to obtain the logs inside a pod:A code to get the logs would look like:
Is there a way to do the same with the
controller-runtime
client?The text was updated successfully, but these errors were encountered: