@@ -12,7 +12,36 @@ description: |-
12
12
for a container to use more resource than its request for that resource specifies.
13
13
However, a container is not allowed to use more than its resource limit.
14
14
15
- # todo : better if we can keep openshift document link for this reference,
15
+ <p>
16
+ To exempt a namespace with no resource requests/limits allocated in the one or more deployments, the variable
17
+ {{.var_deployment_limit_namespaces_exempt_regex}} is being flagged.
18
+ Namespaces matching the variable <tt>ocp4-var-deployment-limit-namespaces-exempt-regex</tt> regex
19
+ are excluded from this check.
20
+ An example allowing an SCC named <tt>additional</tt> follows:
21
+ </p>
22
+ <pre>
23
+ apiVersion: compliance.openshift.io/v1alpha1
24
+ kind: TailoredProfile
25
+ metadata:
26
+ name: moderate-exempt-reource-request-limits
27
+ spec:
28
+ description: Allows an additional scc
29
+ setValues:
30
+ - name: ocp4-var-deployment-limit-namespaces-exempt-regex
31
+ rationale: set the value to namespaces to be exempted
32
+ value: "test1|test2"
33
+ extends: ocp4-moderate
34
+ title: Modified moderate to exempt a namespace with no resource requests/limits in deployment
35
+ </pre>
36
+ <p>
37
+ Finally, reference this <tt>TailoredProfile</tt> in a <tt>ScanSettingBinding</tt>
38
+ </p>
39
+
40
+ <p>
41
+ To configure resource requests/limits for a deployement, follow the directions in
42
+ {{{ weblink(link="https://docs.openshift.com/container-platform/latest/applications/deployments/managing-deployment-processes.html#deployments-setting-resources_deployment-operations",
43
+ text="the documentation") }}}
44
+ </p>
16
45
17
46
rationale : |-
18
47
Resource requests/limits provide constraints that limit aggregate resource consumption
0 commit comments