From 938fa3c2cf1da6c6f5fa0df39c8b91756f050b79 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Mon, 20 Nov 2017 18:46:55 +0100 Subject: [PATCH] validate: support old ipcmk versions Signed-off-by: Antonio Murdaca --- pkg/validate/security_context.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/validate/security_context.go b/pkg/validate/security_context.go index e649e518de..dc66472ad5 100644 --- a/pkg/validate/security_context.go +++ b/pkg/validate/security_context.go @@ -120,8 +120,8 @@ var _ = framework.KubeDescribe("Security Context", func() { It("runtime should support HostIpc is true", func() { By("create shared memory segment on the host") - out, err := exec.Command("ipcmk", "-M", "1M").Output() - framework.ExpectNoError(err, "failed to execute ipcmk -M 1M") + out, err := exec.Command("ipcmk", "-M", "1048576").Output() + framework.ExpectNoError(err, "failed to execute ipcmk -M 1048576") rawID := strings.TrimSpace(string(out)) segmentID := strings.TrimPrefix(rawID, "Shared memory id: ") @@ -153,8 +153,8 @@ var _ = framework.KubeDescribe("Security Context", func() { It("runtime should support HostIpc is false", func() { By("create shared memory segment on the host") - out, err := exec.Command("ipcmk", "-M", "1M").Output() - framework.ExpectNoError(err, "failed to execute ipcmk -M 1M") + out, err := exec.Command("ipcmk", "-M", "1048576").Output() + framework.ExpectNoError(err, "failed to execute ipcmk -M 1048576") rawID := strings.TrimSpace(string(out)) segmentID := strings.TrimPrefix(rawID, "Shared memory id: ")