summaryrefslogtreecommitdiff
path: root/pkg/api/server
diff options
context:
space:
mode:
authorAshley Cui <acui@redhat.com>2021-03-02 16:14:10 -0500
committerAshley Cui <acui@redhat.com>2021-03-02 16:55:21 -0500
commit9391bfc520c55ff66c1547561bd3189dd911c8cb (patch)
tree31ca1e5dabfdc3b8abc1c92c72052125db74c0ba /pkg/api/server
parent426178a49991106ffe222f12cc42409ae78dd257 (diff)
downloadpodman-9391bfc520c55ff66c1547561bd3189dd911c8cb.tar.gz
podman-9391bfc520c55ff66c1547561bd3189dd911c8cb.tar.bz2
podman-9391bfc520c55ff66c1547561bd3189dd911c8cb.zip
Add version field to secret compat list/inspect api
Docker api expects secrets endpoint to have a version field. So, the version field is added into the compat endpoint only. The version field is always 1, since Docker uses the version to keep track of updates to the secret, and currently we cannot update a secret. Signed-off-by: Ashley Cui <acui@redhat.com>
Diffstat (limited to 'pkg/api/server')
-rw-r--r--pkg/api/server/register_secrets.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/api/server/register_secrets.go b/pkg/api/server/register_secrets.go
index 1c5f5954b..531623845 100644
--- a/pkg/api/server/register_secrets.go
+++ b/pkg/api/server/register_secrets.go
@@ -115,7 +115,7 @@ func (s *APIServer) registerSecretHandlers(r *mux.Router) error {
// parameters:
// responses:
// '200':
- // "$ref": "#/responses/SecretListResponse"
+ // "$ref": "#/responses/SecretListCompatResponse"
// '500':
// "$ref": "#/responses/InternalError"
r.Handle(VersionedPath("/secrets"), s.APIHandler(compat.ListSecrets)).Methods(http.MethodGet)
@@ -158,7 +158,7 @@ func (s *APIServer) registerSecretHandlers(r *mux.Router) error {
// - application/json
// responses:
// '200':
- // "$ref": "#/responses/SecretInspectResponse"
+ // "$ref": "#/responses/SecretInspectCompatResponse"
// '404':
// "$ref": "#/responses/NoSuchSecret"
// '500':