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

Revamp event and log examples to allow more parameters #1287

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Conversation

clux
Copy link
Member

@clux clux commented Aug 24, 2023

We already have clap in the dependency tree so thought it would be useful to show how to do some more things in the kubectl style.

  • event_watcher now has an optional flag to limit to one object (ala kubectl events --for)
  • log_stream now supports the basic flags that kubectl logs do
  • kubectl helpers for formatting duration are aligned across examples

(Clippy issues warned about here comes from 1.72 and are fixed in #1288)

@clux clux added the changelog-exclude changelog excluded prs label Aug 24, 2023
@clux clux added this to the 0.86.0 milestone Aug 24, 2023
We already have `clap` in the dependency tree so thought it would be useful
to show how to do some more things in the kubectl style.

- `event_watcher` now has an optional flag to limit to one object (ala `kubectl events --for`)
- `log_stream` now supports the basic flags that `kubectl logs` do
- `kubectl` helpers for formatting duration are aligned across examples

Signed-off-by: clux <[email protected]>
@clux clux marked this pull request as ready for review August 24, 2023 18:58
@codecov
Copy link

codecov bot commented Aug 24, 2023

Codecov Report

Merging #1287 (46678d7) into main (9685bc1) will decrease coverage by 0.09%.
Report is 1 commits behind head on main.
The diff coverage is n/a.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1287      +/-   ##
==========================================
- Coverage   72.27%   72.19%   -0.09%     
==========================================
  Files          75       75              
  Lines        6259     6258       -1     
==========================================
- Hits         4524     4518       -6     
- Misses       1735     1740       +5     

see 3 files with indirect coverage changes

@clux clux requested review from Dav1dde and mateiidavid August 24, 2023 19:00
@clux clux merged commit 259ed96 into main Sep 7, 2023
@clux clux deleted the example-revamp branch September 7, 2023 23:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog-exclude changelog excluded prs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant