mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-11-06 07:57:31 +00:00
Add a --dry-run flag to `podman auto-update` which will look for new images but won't perform any pull or restart any service or container. The "UPDATED" column will now indicate the availability of a newer image via "pending". ``` $ podman auto-update --dry-run UNIT CONTAINER IMAGE POLICY UPDATED container-test.service 08fd34e533fd (test) localhost:5000/busybox registry false ``` Fixes: #9949 Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
28 lines
848 B
Go
28 lines
848 B
Go
package entities
|
|
|
|
// AutoUpdateOptions are the options for running auto-update.
|
|
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.
|
|
type AutoUpdateReport struct {
|
|
// ID of the container *before* an update.
|
|
ContainerID string
|
|
// Name of the container *before* an update.
|
|
ContainerName string
|
|
// Name of the image.
|
|
ImageName string
|
|
// The configured auto-update policy.
|
|
Policy string
|
|
// SystemdUnit running a container configured for auto updates.
|
|
SystemdUnit string
|
|
// Indicates the update status: true, false, failed, pending (see
|
|
// DryRun).
|
|
Updated string
|
|
}
|