35 lines
824 B
YAML
35 lines
824 B
YAML
suite: test deployment
|
|
templates:
|
|
- limit-range.yaml
|
|
tests:
|
|
- it: Should set namespace specific limits
|
|
set:
|
|
namespaces:
|
|
- name: staging
|
|
podMaximumResources:
|
|
cpu: 4
|
|
memory: "8Gi"
|
|
podDefaultResources:
|
|
cpu: "200m"
|
|
memory: "200Mi"
|
|
podResourceOvercommit:
|
|
cpu: 2
|
|
memory: 1
|
|
asserts:
|
|
- equal:
|
|
path: spec.limits
|
|
value:
|
|
- type: Container
|
|
max:
|
|
cpu: 4
|
|
memory: "8Gi"
|
|
default:
|
|
cpu: "200m"
|
|
memory: "200Mi"
|
|
defaultRequest:
|
|
cpu: "200m"
|
|
memory: "200Mi"
|
|
maxLimitRequestRatio:
|
|
cpu: 2
|
|
memory: 1
|