From 5f20cdfb07e91c19ed88c9a6a6c41062a5f71fdd Mon Sep 17 00:00:00 2001 From: shuting Date: Mon, 13 Apr 2020 09:29:11 -0700 Subject: [PATCH] remove cpu limit in BP require_pod_requests_limits.yaml (#807) * remove cpu limit in BP require_pod_requests_limits.yaml * update test --- samples/RequirePodRequestsLimits.md | 1 - samples/best_practices/require_pod_requests_limits.yaml | 3 +-- .../samples/best_practices/require_pod_requests_limits.yaml | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/RequirePodRequestsLimits.md b/samples/RequirePodRequestsLimits.md index 173492b408..d49220391b 100644 --- a/samples/RequirePodRequestsLimits.md +++ b/samples/RequirePodRequestsLimits.md @@ -31,5 +31,4 @@ spec: cpu: "?*" limits: memory: "?*" - cpu: "?*" ```` diff --git a/samples/best_practices/require_pod_requests_limits.yaml b/samples/best_practices/require_pod_requests_limits.yaml index 3902b97c6b..175f5c01c7 100644 --- a/samples/best_practices/require_pod_requests_limits.yaml +++ b/samples/best_practices/require_pod_requests_limits.yaml @@ -26,5 +26,4 @@ spec: memory: "?*" cpu: "?*" limits: - memory: "?*" - cpu: "?*" \ No newline at end of file + memory: "?*" \ No newline at end of file diff --git a/test/scenarios/samples/best_practices/require_pod_requests_limits.yaml b/test/scenarios/samples/best_practices/require_pod_requests_limits.yaml index 31fa5d4df0..ee05cc8f5a 100644 --- a/test/scenarios/samples/best_practices/require_pod_requests_limits.yaml +++ b/test/scenarios/samples/best_practices/require_pod_requests_limits.yaml @@ -14,4 +14,4 @@ expected: rules: - name: validate-resources type: Validation - success: false + success: true