diff options
author | Valentin Rothberg <vrothberg@redhat.com> | 2022-05-19 13:46:10 +0200 |
---|---|---|
committer | Valentin Rothberg <vrothberg@redhat.com> | 2022-05-23 14:11:29 +0200 |
commit | d66288315df4d756295aaa2f4a98a36b309c2554 (patch) | |
tree | 7225d83c732da653e2e28c11c5a6e0b16fd7ba9e /pkg | |
parent | 769e777656e62172ccdd1b98989627d6dae57a96 (diff) | |
download | podman-d66288315df4d756295aaa2f4a98a36b309c2554.tar.gz podman-d66288315df4d756295aaa2f4a98a36b309c2554.tar.bz2 podman-d66288315df4d756295aaa2f4a98a36b309c2554.zip |
auto update: create an event
Create an auto-update event for each invocation, independent if images
and containers are updated or not. Those events will be indicated in
the events already but users will now know why.
Fixes: #14283
Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/autoupdate/autoupdate.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/autoupdate/autoupdate.go b/pkg/autoupdate/autoupdate.go index ee530528e..0c795faed 100644 --- a/pkg/autoupdate/autoupdate.go +++ b/pkg/autoupdate/autoupdate.go @@ -12,6 +12,7 @@ import ( "github.com/containers/image/v5/transports/alltransports" "github.com/containers/podman/v4/libpod" "github.com/containers/podman/v4/libpod/define" + "github.com/containers/podman/v4/libpod/events" "github.com/containers/podman/v4/pkg/domain/entities" "github.com/containers/podman/v4/pkg/systemd" systemdDefine "github.com/containers/podman/v4/pkg/systemd/define" @@ -142,6 +143,8 @@ func AutoUpdate(ctx context.Context, runtime *libpod.Runtime, options entities.A } defer conn.Close() + runtime.NewSystemEvent(events.AutoUpdate) + // Update all images/container according to their auto-update policy. var allReports []*entities.AutoUpdateReport updatedRawImages := make(map[string]bool) |