1
0
mirror of synced 2026-02-13 13:06:56 +00:00

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>
This commit is contained in:
Somtochi Onyekwere
2023-02-22 19:30:53 +01:00
committed by Hidde Beydals
parent 2589c90c25
commit 5b18289808
4 changed files with 904 additions and 0 deletions

1
go.mod
View File

@@ -14,6 +14,7 @@ require (
github.com/fluxcd/image-reflector-controller/api v0.26.0
github.com/fluxcd/kustomize-controller/api v0.35.0
github.com/fluxcd/notification-controller/api v0.33.0
github.com/fluxcd/pkg/apis/event v0.4.1
github.com/fluxcd/pkg/apis/meta v0.19.1
github.com/fluxcd/pkg/git v0.11.0
github.com/fluxcd/pkg/git/gogit v0.8.1