summaryrefslogtreecommitdiff
path: root/pkg/specgen/generate
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-10-06 05:18:04 +0200
committerGitHub <noreply@github.com>2020-10-06 05:18:04 +0200
commitf584d47a9d0c050c3b39793a73b0aba17b45e8ba (patch)
tree56f996fdefdfa8a83f6aba9eb98e6395364f8b60 /pkg/specgen/generate
parentea02d9c2668207523611efac67a1699f776c9147 (diff)
parent348f2df0c09e2e3b517add5271e6eee583800be3 (diff)
downloadpodman-f584d47a9d0c050c3b39793a73b0aba17b45e8ba.tar.gz
podman-f584d47a9d0c050c3b39793a73b0aba17b45e8ba.tar.bz2
podman-f584d47a9d0c050c3b39793a73b0aba17b45e8ba.zip
Merge pull request #7931 from rhatdan/size
Support max_size logoptions
Diffstat (limited to 'pkg/specgen/generate')
-rw-r--r--pkg/specgen/generate/container_create.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/specgen/generate/container_create.go b/pkg/specgen/generate/container_create.go
index 147450703..105e36bc6 100644
--- a/pkg/specgen/generate/container_create.go
+++ b/pkg/specgen/generate/container_create.go
@@ -260,6 +260,9 @@ func createContainerOptions(ctx context.Context, rt *libpod.Runtime, s *specgen.
if len(s.LogConfiguration.Path) > 0 {
options = append(options, libpod.WithLogPath(s.LogConfiguration.Path))
}
+ if s.LogConfiguration.Size > 0 {
+ options = append(options, libpod.WithMaxLogSize(s.LogConfiguration.Size))
+ }
if len(s.LogConfiguration.Options) > 0 && s.LogConfiguration.Options["tag"] != "" {
// Note: I'm really guessing here.
options = append(options, libpod.WithLogTag(s.LogConfiguration.Options["tag"]))