Skip to content

Commit 23e535b

Browse files
authored
Merge pull request #64016 from sheriff-rh/OCPBUGS-18279
2 parents 83ee930 + 183436e commit 23e535b

File tree

1 file changed

+16
-9
lines changed

1 file changed

+16
-9
lines changed

modules/compliance-new-tailored-profiles.adoc

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
[id="compliance-new-tailored-profiles_{context}"]
77
= Creating a new tailored profile
88

9-
You can write a tailored profile from scratch using the `TailoredProfile` object. Set an appropriate `title` and `description` and leave the `extends` field empty. Indicate to the Compliance Operator what type of scan will this custom profile generate:
9+
You can write a tailored profile from scratch by using the `TailoredProfile` object. Set an appropriate `title` and `description` and leave the `extends` field empty. Indicate to the Compliance Operator what type of scan this custom profile will generate:
1010

1111
* Node scan: Scans the Operating System.
12-
* Platform scan: Scans the OpenShift configuration.
12+
* Platform scan: Scans the {product-title} configuration.
1313
1414
.Procedure
1515

16-
Set the following annotation on the `TailoredProfile` object:
17-
+
16+
* Set the following annotation on the `TailoredProfile` object:
17+
1818
.Example `new-profile.yaml`
1919
[source,yaml]
2020
----
@@ -25,13 +25,20 @@ metadata:
2525
annotations:
2626
compliance.openshift.io/product-type: Node <1>
2727
spec:
28-
extends:
29-
description: My custom profile <2>
30-
title: Custom profile <3>
28+
extends: ocp4-cis-node <2>
29+
description: My custom profile <3>
30+
title: Custom profile <4>
31+
enableRules:
32+
- name: ocp4-etcd-unique-ca
33+
rationale: We really need to enable this
34+
disableRules:
35+
- name: ocp4-file-groupowner-cni-conf
36+
rationale: This does not apply to the cluster
3137
----
3238
<1> Set `Node` or `Platform` accordingly.
33-
<2> Use the `description` field to describe the function of the new `TailoredProfile` object.
34-
<3> Give your `TailoredProfile` object a title with the `title` field.
39+
<2> The `extends` field is optional.
40+
<3> Use the `description` field to describe the function of the new `TailoredProfile` object.
41+
<4> Give your `TailoredProfile` object a title with the `title` field.
3542
+
3643
[NOTE]
3744
====

0 commit comments

Comments
 (0)