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

omc events ? #183

Open
schabrolles opened this issue Nov 4, 2024 · 2 comments
Open

omc events ? #183

schabrolles opened this issue Nov 4, 2024 · 2 comments
Labels
RFE Request for enhancement

Comments

@schabrolles
Copy link

Could it be possible to have: omc events

Like oc events, it brings options that oc get event doesn't have

Like event type filtering:

oc events --types=Warning
LAST SEEN                  TYPE      REASON                            OBJECT                                            MESSAGE
3m27s (x3279 over 2d20h)   Warning   FailedToRetrieveImagePullSecret   Pod/common-service-db-1                           Unable to retrieve some image pull secrets (ibm-entitlement-key); attempting to pull the image may not succeed.
2m26s (x3234 over 2d19h)   Warning   FailedToRetrieveImagePullSecret   Pod/elasticsea-0ac3-ib-6fb9-es-server-esnodes-2   Unable to retrieve some image pull secrets (ibm-entitlement-key); attempting to pull the image may not succeed.
2m10s (x3237 over 2d19h)   Warning   FailedToRetrieveImagePullSecret   Pod/elasticsea-0ac3-ib-6fb9-es-server-esnodes-0   Unable to retrieve some image pull secrets (ibm-entitlement-key); attempting to pull the image may not succeed.
99s (x3248 over 2d19h)     Warning   FailedToRetrieveImagePullSecret   Pod/elasticsea-0ac3-ib-6fb9-es-server-esnodes-1   Unable to retrieve some image pull secrets (ibm-entitlement-key); attempting to pull the image may not succeed.
90s (x3268 over 2d20h)     Warning   FailedToRetrieveImagePullSecret   Pod/common-service-db-2                           Unable to retrieve some image pull secrets (ibm-entitlement-key); attempting to pull the image may not succeed.

And object filtering:

oc events --types=Warning --for=Pod/common-service-db-2
LAST SEEN                  TYPE      REASON                            OBJECT                    MESSAGE
2m28s (x3268 over 2d20h)   Warning   FailedToRetrieveImagePullSecret   Pod/common-service-db-2   Unable to retrieve some image pull secrets (ibm-entitlement-key); attempting to pull the image may not succeed.

giving omc the same possibility could be nice. What do you think ?

@oarribas
Copy link

oarribas commented Nov 8, 2024

oc events adds several features, including output automatically sorted by "LAST SEEN". It was introduced in oc binary 4.13.
More info about the events sub-command in [1].

[1] https://github.com/kubernetes/enhancements/tree/master/keps/sig-cli/1440-kubectl-events#limitations-of-the-existing-design

@gmeghnag gmeghnag added the RFE Request for enhancement label Jan 5, 2025
@clarku
Copy link
Contributor

clarku commented Jan 12, 2025

Hi everyone,

I'm going to take a look at this one and see what I can do.

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

No branches or pull requests

4 participants