Skip to content

Commit

Permalink
Remove warning about unsupported "uid", "gid" and "mode" for configs …
Browse files Browse the repository at this point in the history
…and secrets
  • Loading branch information
schaubl committed Feb 18, 2025
1 parent d9e531d commit f9611db
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pkg/compose/create.go
Original file line number Diff line number Diff line change
@@ -994,10 +994,6 @@ func checkContainerConfigs(p types.Project, s types.ServiceConfig) error {
continue
}

if config.UID != "" || config.GID != "" || config.Mode != nil {
logrus.Warn("config `uid`, `gid` and `mode` are not supported, they will be ignored")
}

if _, err := os.Stat(definedConfig.File); os.IsNotExist(err) {
logrus.Warnf("config file %s does not exist", definedConfig.Name)
}
@@ -1024,10 +1020,6 @@ func checkContainerSecrets(p types.Project, s types.ServiceConfig) error {
continue
}

if secret.UID != "" || secret.GID != "" || secret.Mode != nil {
logrus.Warn("secrets `uid`, `gid` and `mode` are not supported, they will be ignored")
}

if _, err := os.Stat(definedSecret.File); os.IsNotExist(err) {
logrus.Warnf("secret file %s does not exist", definedSecret.Name)
}

0 comments on commit f9611db

Please sign in to comment.