Skip to content

Commit f9611db

Browse files
committed
Remove warning about unsupported "uid", "gid" and "mode" for configs and secrets
1 parent d9e531d commit f9611db

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

pkg/compose/create.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -994,10 +994,6 @@ func checkContainerConfigs(p types.Project, s types.ServiceConfig) error {
994994
continue
995995
}
996996

997-
if config.UID != "" || config.GID != "" || config.Mode != nil {
998-
logrus.Warn("config `uid`, `gid` and `mode` are not supported, they will be ignored")
999-
}
1000-
1001997
if _, err := os.Stat(definedConfig.File); os.IsNotExist(err) {
1002998
logrus.Warnf("config file %s does not exist", definedConfig.Name)
1003999
}
@@ -1024,10 +1020,6 @@ func checkContainerSecrets(p types.Project, s types.ServiceConfig) error {
10241020
continue
10251021
}
10261022

1027-
if secret.UID != "" || secret.GID != "" || secret.Mode != nil {
1028-
logrus.Warn("secrets `uid`, `gid` and `mode` are not supported, they will be ignored")
1029-
}
1030-
10311023
if _, err := os.Stat(definedSecret.File); os.IsNotExist(err) {
10321024
logrus.Warnf("secret file %s does not exist", definedSecret.Name)
10331025
}

0 commit comments

Comments
 (0)