fix(api/compat): typo in the remove secret handle

Fixes https://github.com/containers/podman/issues/27548

Signed-off-by: axel7083 <42176370+axel7083@users.noreply.github.com>
This commit is contained in:
axel7083
2025-11-21 12:50:06 +01:00
parent af91cae1c5
commit d31f4e782d
2 changed files with 9 additions and 1 deletions

View File

@@ -236,7 +236,7 @@ func (s *APIServer) registerSecretHandlers(r *mux.Router) error {
// '500':
// "$ref": "#/responses/internalError"
r.Handle(VersionedPath("/secrets/{name}"), s.APIHandler(compat.RemoveSecret)).Methods(http.MethodDelete)
r.Handle("/secret/{name}", s.APIHandler(compat.RemoveSecret)).Methods(http.MethodDelete)
r.Handle("/secrets/{name}", s.APIHandler(compat.RemoveSecret)).Methods(http.MethodDelete)
r.Handle(VersionedPath("/secrets/{name}/update"), s.APIHandler(compat.UpdateSecret)).Methods(http.MethodPost)
r.Handle("/secrets/{name}/update", s.APIHandler(compat.UpdateSecret)).Methods(http.MethodPost)

View File

@@ -76,3 +76,11 @@ t DELETE secrets/bogus 404
# secret update not implemented
t POST secrets/mysecret/update 501
# compat api
t POST /secrets/create Name=foosecret Data=c2VjcmV0 200
t GET /secrets/foosecret 200 \
.Spec.Name=foosecret
t DELETE /secrets/foosecret 204