summaryrefslogtreecommitdiff
path: root/pkg
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-23 10:12:19 -0400
committerGitHub <noreply@github.com>2022-05-23 10:12:19 -0400
commitbe255287c929999ff018d0b8319e644b4ea77064 (patch)
tree64c7e74e12ed03ae8594bfde1047905865d5a810 /pkg
parente11d8d4650a4ec50064aab416bebb364ac8ac4bf (diff)
parentd66288315df4d756295aaa2f4a98a36b309c2554 (diff)
downloadpodman-be255287c929999ff018d0b8319e644b4ea77064.tar.gz
podman-be255287c929999ff018d0b8319e644b4ea77064.tar.bz2
podman-be255287c929999ff018d0b8319e644b4ea77064.zip
Merge pull request #14292 from vrothberg/fix-14283
auto update: create an event
Diffstat (limited to 'pkg')
-rw-r--r--pkg/autoupdate/autoupdate.go3
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)