From d283bbbcc26598c97c7e1d837ce46b24cba15084 Mon Sep 17 00:00:00 2001 From: Li Yi Date: Tue, 10 Oct 2017 10:04:34 +0800 Subject: [PATCH] Fix the cpu limits and requests in generated deployment file Signed-off-by: Li Yi --- script/test/fixtures/v3/output-k8s-full-example.json | 2 +- script/test/fixtures/v3/output-memcpu-k8s.json | 4 ++-- script/test/fixtures/v3/output-os-full-example.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/script/test/fixtures/v3/output-k8s-full-example.json b/script/test/fixtures/v3/output-k8s-full-example.json index a7dc8208..fce1c23f 100644 --- a/script/test/fixtures/v3/output-k8s-full-example.json +++ b/script/test/fixtures/v3/output-k8s-full-example.json @@ -155,7 +155,7 @@ ], "resources": { "limits": { - "cpu": "1", + "cpu": "1m", "memory": "52428800" }, "requests": { diff --git a/script/test/fixtures/v3/output-memcpu-k8s.json b/script/test/fixtures/v3/output-memcpu-k8s.json index 67c9ba7d..c6227b14 100644 --- a/script/test/fixtures/v3/output-memcpu-k8s.json +++ b/script/test/fixtures/v3/output-memcpu-k8s.json @@ -64,11 +64,11 @@ "image": "redis", "resources": { "limits": { - "cpu": "10", + "cpu": "10m", "memory": "52428800" }, "requests": { - "cpu": "1", + "cpu": "1m", "memory": "20971520" } } diff --git a/script/test/fixtures/v3/output-os-full-example.json b/script/test/fixtures/v3/output-os-full-example.json index a7dc8208..fce1c23f 100644 --- a/script/test/fixtures/v3/output-os-full-example.json +++ b/script/test/fixtures/v3/output-os-full-example.json @@ -155,7 +155,7 @@ ], "resources": { "limits": { - "cpu": "1", + "cpu": "1m", "memory": "52428800" }, "requests": {