Skip to content

Commit d1e2692

Browse files
committed
Quadlet installation code refactoring
- Cleanup the code to install quadlets - Fix `podman quadlet install` output message (see #28335 (comment)) - Update libpod quadlet endpoint documentation Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
1 parent 5cc79ac commit d1e2692

5 files changed

Lines changed: 247 additions & 171 deletions

File tree

pkg/api/server/register_quadlets.go

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,15 +84,22 @@ func (s *APIServer) registerQuadletHandlers(r *mux.Router) error {
8484
// summary: Install quadlet files
8585
// description: |
8686
// Install one or more files for a quadlet application. Each request should contain a single quadlet file
87-
// and optionally more files such as containerfile, kube yaml or configuration files. Supports both tar
88-
// archives and multipart form data uploads.
87+
// and optionally more files such as containerfile, kube yaml or configuration files. When additional
88+
// files are passed, the application query parameter should be specified. Supports both tar archives and
89+
// multipart form data uploads.
8990
// consumes:
9091
// - application/x-tar
9192
// - multipart/form-data
9293
// produces:
9394
// - application/json
9495
// parameters:
9596
// - in: query
97+
// name: application
98+
// type: string
99+
// description: |
100+
// Group quadlet and associated files in a directory with the application name.
101+
// Required when additional files are passed.
102+
// - in: query
96103
// name: replace
97104
// type: boolean
98105
// default: false

0 commit comments

Comments
 (0)