summaryrefslogtreecommitdiff
path: root/pkg/domain/entities
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-07-15 10:50:13 -0400
committerGitHub <noreply@github.com>2021-07-15 10:50:13 -0400
commit5d6a36601776fee55ce3d491f96b620aa3b43218 (patch)
tree182bb6035d67378b5d4ee52a1cc081c305515f51 /pkg/domain/entities
parentbc98c2003d36f9ce5650c1e0f4445be97ca0fa18 (diff)
parent59f31d86acdf54019b081ca86340d5c33dbcf3b9 (diff)
downloadpodman-5d6a36601776fee55ce3d491f96b620aa3b43218.tar.gz
podman-5d6a36601776fee55ce3d491f96b620aa3b43218.tar.bz2
podman-5d6a36601776fee55ce3d491f96b620aa3b43218.zip
Merge pull request #10937 from vrothberg/auto-update
auto-update: add --dry-run
Diffstat (limited to 'pkg/domain/entities')
-rw-r--r--pkg/domain/entities/auto-update.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkg/domain/entities/auto-update.go b/pkg/domain/entities/auto-update.go
index d74462b86..eed617bf8 100644
--- a/pkg/domain/entities/auto-update.go
+++ b/pkg/domain/entities/auto-update.go
@@ -4,6 +4,10 @@ package entities
type AutoUpdateOptions struct {
// Authfile to use when contacting registries.
Authfile string
+ // Only check for but do not perform any update. If an update is
+ // pending, it will be indicated in the Updated field of
+ // AutoUpdateReport.
+ DryRun bool
}
// AutoUpdateReport contains the results from running auto-update.
@@ -18,7 +22,7 @@ type AutoUpdateReport struct {
Policy string
// SystemdUnit running a container configured for auto updates.
SystemdUnit string
- // Indicates whether the image was updated and the container (and
- // systemd unit) restarted.
+ // Indicates the update status: true, false, failed, pending (see
+ // DryRun).
Updated string
}