Skip to content

Commit

Permalink
Fix swagger documentation
Browse files Browse the repository at this point in the history
* ContainerKillLibpod "signal" query default is SIGKILL.
* ContainerListLibpod "namespace" query is failed to show.
* SecretListLibpod parameters is duplicated.
* SecretList parameters is duplicated.

[NO NEW TESTS NEEDED]

Signed-off-by: Toshiki Sonoda <[email protected]>
  • Loading branch information
sstosh committed Sep 2, 2022
1 parent 9ab6449 commit 875fd48
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/api/server/register_containers.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,6 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// - in: query
// name: signal
// type: string
// default: TERM
// description: signal to be sent to container
// default: SIGKILL
// produces:
Expand Down Expand Up @@ -723,6 +722,7 @@ func (s *APIServer) registerContainersHandlers(r *mux.Router) error {
// type: boolean
// description: Include namespace information
// default: false
// - in: query
// name: pod
// type: boolean
// default: false
Expand Down
2 changes: 0 additions & 2 deletions pkg/api/server/register_secrets.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ func (s *APIServer) registerSecretHandlers(r *mux.Router) error {
// - `id=[id]` Matches for full or partial ID.
// produces:
// - application/json
// parameters:
// responses:
// '200':
// "$ref": "#/responses/SecretListResponse"
Expand Down Expand Up @@ -128,7 +127,6 @@ func (s *APIServer) registerSecretHandlers(r *mux.Router) error {
// - `id=[id]` Matches for full or partial ID.
// produces:
// - application/json
// parameters:
// responses:
// '200':
// "$ref": "#/responses/SecretListCompatResponse"
Expand Down

0 comments on commit 875fd48

Please sign in to comment.