From 7e6ce7c1768335600abc82a2fe933f19af70bad4 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Mon, 20 Feb 2017 16:29:51 -0800 Subject: [PATCH] Add missing Secrets in Swagger docs This fix tries to address the issue in 31179 where secrets fields is missing for `docker service create` or `docker service update`. This fix adds Secrets for `ContainerSpec` in Swagger docs. This fix fixes 31179. Signed-off-by: Yong Tang --- api/swagger.yaml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/api/swagger.yaml b/api/swagger.yaml index 90ca79162d..bd558c9142 100644 --- a/api/swagger.yaml +++ b/api/swagger.yaml @@ -1923,6 +1923,38 @@ definitions: type: "array" items: type: "string" + Secrets: + description: "Secrets contains references to zero or more secrets that will be exposed to the service." + type: "array" + items: + type: "object" + properties: + File: + description: "File represents a specific target that is backed by a file." + type: "object" + properties: + Name: + description: "Name represents the final filename in the filesystem." + type: "string" + UID: + description: "UID represents the file UID." + type: "string" + GID: + description: "GID represents the file GID." + type: "string" + Mode: + description: "Mode represents the FileMode of the file." + type: "integer" + format: "uint32" + SecretID: + description: "SecretID represents the ID of the specific secret that we're referencing." + type: "string" + SecretName: + description: | + SecretName is the name of the secret that this references, but this is just provided for + lookup/display purposes. The secret in the reference will be identified by its ID. + type: "string" + Resources: description: "Resource requirements which apply to each individual container created as part of the service." type: "object"