From e111b651b393544766d59671e2312cee06112504 Mon Sep 17 00:00:00 2001 From: Guillaume Lours Date: Fri, 10 Jun 2022 11:05:17 +0200 Subject: [PATCH] add deploy.resourses.limits.pids to the managed resources Signed-off-by: Guillaume Lours --- pkg/compose/create.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/compose/create.go b/pkg/compose/create.go index d06499f97..4b0969d54 100644 --- a/pkg/compose/create.go +++ b/pkg/compose/create.go @@ -599,6 +599,9 @@ func setLimits(limits *types.Resource, resources *container.Resources) { resources.NanoCPUs = int64(f * 1e9) } } + if limits.PIds > 0 { + resources.PidsLimit = &limits.PIds + } } func setBlkio(blkio *types.BlkioConfig, resources *container.Resources) {