docker-stack-deploy icon indicating copy to clipboard operation
docker-stack-deploy copied to clipboard

docker-sdp support configs/secrets as list of strings

Open s4ke opened this issue 2 years ago • 1 comments

This does not work as it crashes the current code that expects a dictionary:

secrets:
   my_secret:
      file: /some/path

services:
   my_service:
      secrets:
         - my_secret

Instead one has to write

secrets:
   my_secret:
      file: /some/path

services:
   my_service:
      secrets:
         - source: my_secret
            target: my_secret

which will not work with the secret approach we currently take.

While we could rewrite the list to a dictionary, this feels like a bit much rewriting so we should instead throw a proper error that lets the user know that they should rewrite their yaml slightly.

s4ke avatar Jun 11 '22 21:06 s4ke