mirror of
https://github.com/docker/compose.git
synced 2025-07-22 13:14:29 +02:00
Add a warning for unsupported secret fields.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
4053adc7d3
commit
0d609b68ac
@ -575,6 +575,12 @@ def get_secrets(service, service_secrets, secret_defs):
|
|||||||
"docker-compose.".format(service=service, secret=secret.source))
|
"docker-compose.".format(service=service, secret=secret.source))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if secret.uid or secret.gid or secret.mode:
|
||||||
|
log.warn("Service \"{service}\" uses secret \"{secret}\" with uid, "
|
||||||
|
"gid, or mode. These fields are not supported by this "
|
||||||
|
"implementation of the Compose file".format(
|
||||||
|
service=service, secret=secret.source))
|
||||||
|
|
||||||
secrets.append({'secret': secret, 'file': secret_def.get('file')})
|
secrets.append({'secret': secret, 'file': secret_def.get('file')})
|
||||||
|
|
||||||
return secrets
|
return secrets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user