* Adds k8s events to the gitopts controller
Adds events for failures so the user gets information faster when there's no access to logs.
Adds also events when we get a new commit, then the gitjob is recreated or deleted
Refers to: https://github.com/rancher/fleet/issues/2674
Co-authored-by: Corentin Néau <tan.neau@suse.com>
Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
---------
Signed-off-by: Xavi Garcia <xavi.garcia@suse.com>
Co-authored-by: Corentin Néau <tan.neau@suse.com>