Browse code

Merge pull request #31204 from yongtang/31179-Swagger-Secrets

Add missing Secrets in Swagger docs

Sebastiaan van Stijn authored on 2017/02/23 08:45:32
Showing 1 changed files
... ...
@@ -1930,6 +1930,38 @@ definitions:
1930 1930
                 type: "array"
1931 1931
                 items:
1932 1932
                   type: "string"
1933
+          Secrets:
1934
+            description: "Secrets contains references to zero or more secrets that will be exposed to the service."
1935
+            type: "array"
1936
+            items:
1937
+              type: "object"
1938
+              properties:
1939
+                File:
1940
+                  description: "File represents a specific target that is backed by a file."
1941
+                  type: "object"
1942
+                  properties:
1943
+                    Name:
1944
+                      description: "Name represents the final filename in the filesystem."
1945
+                      type: "string"
1946
+                    UID:
1947
+                      description: "UID represents the file UID."
1948
+                      type: "string"
1949
+                    GID:
1950
+                      description: "GID represents the file GID."
1951
+                      type: "string"
1952
+                    Mode:
1953
+                      description: "Mode represents the FileMode of the file."
1954
+                      type: "integer"
1955
+                      format: "uint32"
1956
+                SecretID:
1957
+                  description: "SecretID represents the ID of the specific secret that we're referencing."
1958
+                  type: "string"
1959
+                SecretName:
1960
+                  description: |
1961
+                    SecretName is the name of the secret that this references, but this is just provided for
1962
+                    lookup/display purposes. The secret in the reference will be identified by its ID.
1963
+                  type: "string"
1964
+
1933 1965
       Resources:
1934 1966
         description: "Resource requirements which apply to each individual container created as part of the service."
1935 1967
         type: "object"