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

Timestamps for deployment logs #4470

Closed
DobromirM opened this issue Sep 30, 2022 · 0 comments · Fixed by #4481
Closed

Timestamps for deployment logs #4470

DobromirM opened this issue Sep 30, 2022 · 0 comments · Fixed by #4481
Assignees
Milestone

Comments

@DobromirM
Copy link
Contributor

Is your enhancement related to a problem? Please describe

It should be possible to get timestamps for deployment logs the same way that you can get timestamps for pod logs.

KubernetesClient kubernetesClient = new KubernetesClientBuilder().build();

//Can get timestamps with .usingTimestamps() for pods
LogWatch podLogWatcher = kubernetesClient.pods().inNamespace("Foo").withName("Bar").usingTimestamps().watchLog();

//But not for deployments
LogWatch deploymentLogWatcher = kubernetesClient.apps().deployments().inNamespace("Foo").withName("Bar").watchLog();

Describe the solution you'd like

It should be possible to do:

LogWatch deploymentLogWatcher = kubernetesClient.apps().deployments().inNamespace("Foo").withName("Bar").usingTimestamps().watchLog();

Describe alternatives you've considered

No response

Additional context

No response

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

Successfully merging a pull request may close this issue.

2 participants