Merge pull request #27549 from axel7083/fix/api/compact/remove-secrets

fix(api/compact): typo in the remove secret handle
This commit is contained in:
openshift-merge-bot[bot]
2025-11-21 13:34:45 +00:00
committed by GitHub
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