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

Add flux events command #3628

Merged
merged 6 commits into from
Mar 9, 2023
Merged

Add flux events command #3628

merged 6 commits into from
Mar 9, 2023

Commits on Mar 9, 2023

  1. Add flux events command

    This adds a command to Flux which behaves similarly as `kubectl events`,
    including the Flux sources events when showing events for top level
    objects, thus making debugging easy for Flux users.
    
    For example, `flux events --for kustomization/<name>` includes the
    events of its source (e.g. a `GitRepository`, `OCIRepository` or
    `Bucket`).
    
    In addition, `flux events --for helmrelease/<name>` includes events of
    the `HelmChart` and `HelmRepository`. While `flux events --for
    alerts/<name>` includes the events of the `Provider`.
    
    Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
    somtochiama authored and hiddeco committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    5b18289 View commit details
    Browse the repository at this point in the history
  2. events: use constants for supported Flux kinds

    Signed-off-by: Hidde Beydals <hidde@hhh.computer>
    hiddeco committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    5b8f673 View commit details
    Browse the repository at this point in the history
  3. events: make --for case insensitive for kinds

    Signed-off-by: Hidde Beydals <hidde@hhh.computer>
    hiddeco committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    34220fd View commit details
    Browse the repository at this point in the history
  4. events: prevent defer in loop

    Signed-off-by: Hidde Beydals <hidde@hhh.computer>
    hiddeco committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    c0916ed View commit details
    Browse the repository at this point in the history
  5. events: reword error messages

    Signed-off-by: Hidde Beydals <hidde@hhh.computer>
    hiddeco committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    3f3d68a View commit details
    Browse the repository at this point in the history
  6. events: avoid having to keep individal kind maps

    Signed-off-by: Hidde Beydals <hidde@hhh.computer>
    hiddeco committed Mar 9, 2023
    Configuration menu
    Copy the full SHA
    af153ea View commit details
    Browse the repository at this point in the history