소스 검색

Merge pull request #32653 from allencloud/add-empty-string-for-restartpolicy-in-swagger

add empty string for restart policy in swagger.yml
Brian Goff 8 년 전
부모
커밋
9752e41fd0
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      api/swagger.yaml

+ 2 - 0
api/swagger.yaml

@@ -308,10 +308,12 @@ definitions:
       Name:
         type: "string"
         description: |
+          - Empty string means not to restart
           - `always` Always restart
           - `unless-stopped` Restart always except when the user has manually stopped the container
           - `on-failure` Restart only when the container exit code is non-zero
         enum:
+          - ""
           - "always"
           - "unless-stopped"
           - "on-failure"