From 911e4a1389c6c0ae435d8dc36378fdc2bbfe3eee Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Mon, 5 Sep 2022 13:55:51 +0100 Subject: specgen/generate: Factor out setting resource limits from CompleteSpec This avoids setting values in the spec which are not supported on FreeBSD - including these values causes warning messages for the unsupported features. [NO NEW TESTS NEEDED] Signed-off-by: Doug Rabson --- pkg/specgen/resources_freebsd.go | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 pkg/specgen/resources_freebsd.go (limited to 'pkg/specgen/resources_freebsd.go') diff --git a/pkg/specgen/resources_freebsd.go b/pkg/specgen/resources_freebsd.go new file mode 100644 index 000000000..49e5976bb --- /dev/null +++ b/pkg/specgen/resources_freebsd.go @@ -0,0 +1,8 @@ +package specgen + +import ( + "github.com/containers/common/pkg/config" +) + +func (s *SpecGenerator) InitResourceLimits(rtc *config.Config) { +} -- cgit v1.2.3-54-g00ecf