Skip to content

auto-update: allow to use custom command when stopping container #14413

@gdesmott

Description

@gdesmott

/kind feature

Description

I manually implemented a script very similar to podman-auto-update. The only thing blocking me from switching to it is the ability to use a custom command to stop the running container.
I send a request to my server telling it to set itself in "maintenance" mode so it will stop accepting new requests from clients and automatically shutdown itself when all the clients have been disconnected. This ensure seamless upgrades as clients are not disconnected right away when upgrading.

Would it be possible to have something like this with auto-update? Something a bit similar to watchtower's hooks may do.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.locked - please file new issue/PRAssist humans wanting to comment on an old issue or PR with locked comments.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions