From 150449bbd250fea3b619fc576e4f8763932be3e2 Mon Sep 17 00:00:00 2001 From: Nicolas De Loof Date: Wed, 16 Aug 2023 12:05:05 +0200 Subject: [PATCH] warn user secret uid/gid/mode is not supported Signed-off-by: Nicolas De Loof --- pkg/compose/create.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index f82f8f23f..4d35bb704 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -867,6 +867,10 @@ func buildContainerConfigMounts(p types.Project, s types.ServiceConfig) ([]mount target = configsBaseDir + config.Target } + if config.UID != "" || config.GID != "" || config.Mode != nil { + logrus.Warn("config `uid`, `gid` and `mode` are not supported, they will be ignored") + } + definedConfig := p.Configs[config.Source] if definedConfig.External.External { return nil, fmt.Errorf("unsupported external config %s", definedConfig.Name) @@ -902,6 +906,10 @@ func buildContainerSecretMounts(p types.Project, s types.ServiceConfig) ([]mount target = secretsDir + secret.Target } + if secret.UID != "" || secret.GID != "" || secret.Mode != nil { + logrus.Warn("secrets `uid`, `gid` and `mode` are not supported, they will be ignored") + } + definedSecret := p.Secrets[secret.Source] if definedSecret.External.External { return nil, fmt.Errorf("unsupported external secret %s", definedSecret.Name)