-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
builder: add more consistency and finer granularity to build status
Ensure that 'imagebuilder_status' is reported at all phases of build, and add a final "done" status. Ensure that all GET and HEAD requests to '/build' receive all x-headers regardless of build phase. After reading through all the FastAPI docs, it turns out you can put '@get' and '@Head' on the same function and it works just as you would expect. Reduces code size a bit. Extended the 'build_get' test to also include the HEAD request and confirm that sequential HEAD and GET requests receive the same data. Signed-off-by: Eric Fahlgren <[email protected]>
- Loading branch information
Showing
4 changed files
with
63 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters