Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend API to check the state after calling /v1/update #1796

Open
JensWinkler91 opened this issue Oct 11, 2023 · 1 comment
Open

Extend API to check the state after calling /v1/update #1796

JensWinkler91 opened this issue Oct 11, 2023 · 1 comment

Comments

@JensWinkler91
Copy link

Is your feature request related to a problem? Please describe.

I update my docker container by sending a request from a react app to <domain>/v1/update.
This works fine.

However, I don't receive any response whether it finished with success or failed.
I also don't know the version of each container.

I can't provide any feedback (.e.g. if the update succeeded or not) to the user without any information about the current state.

Describe the solution you'd like

The request /v1/update can return the state of the update for each image:

E.G.

{
     "errors": [
           "image": "mongo",
           "tag": "6.0.0" 
     ],
    "success": [
               "image": "nginx",
               "tag_before": "2.0.0"
               "tag_after": "3.1.8" 
      ]
}

Describe alternatives you've considered

Change the request /v1/update from blocking to non blocking.
Add another route GET /v1/update/state to fetch the current state of the triggered update.

Additional context

Thanks for your work!

@github-actions
Copy link

Hi there! 👋🏼 As you're new to this repo, we'd like to suggest that you read our code of conduct as well as our contribution guidelines. Thanks a bunch for opening your first issue! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant