Skip to content

Commit 83ee930

Browse files
authored
Merge pull request #63316 from briantward/bugfix/OCPBUGS-17471
2 parents a136b71 + 059fbab commit 83ee930

File tree

2 files changed

+47
-71
lines changed

2 files changed

+47
-71
lines changed

modules/compliance-crd-scan-setting.adoc

Lines changed: 43 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -14,73 +14,49 @@ By default, the Compliance Operator creates the following `ScanSetting` objects:
1414
.Example `ScanSetting` object
1515
[source,yaml]
1616
----
17-
Name: default-auto-apply
18-
Namespace: openshift-compliance
19-
Labels: <none>
20-
Annotations: <none>
21-
API Version: compliance.openshift.io/v1alpha1
22-
Auto Apply Remediations: true
23-
Auto Update Remediations: true
24-
Kind: ScanSetting
25-
Metadata:
26-
Creation Timestamp: 2022-10-18T20:21:00Z
27-
Generation: 1
28-
Managed Fields:
29-
API Version: compliance.openshift.io/v1alpha1
30-
Fields Type: FieldsV1
31-
fieldsV1:
32-
f:autoApplyRemediations: <1>
33-
f:autoUpdateRemediations: <2>
34-
f:rawResultStorage:
35-
.:
36-
f:nodeSelector:
37-
.:
38-
f:node-role.kubernetes.io/master:
39-
f:pvAccessModes:
40-
f:rotation:
41-
f:size:
42-
f:tolerations:
43-
f:roles:
44-
f:scanTolerations:
45-
f:schedule:
46-
f:showNotApplicable:
47-
f:strictNodeScan:
48-
Manager: compliance-operator
49-
Operation: Update
50-
Time: 2022-10-18T20:21:00Z
51-
Resource Version: 38840
52-
UID: 8cb0967d-05e0-4d7a-ac1c-08a7f7e89e84
53-
Raw Result Storage:
54-
Node Selector:
55-
node-role.kubernetes.io/master:
56-
Pv Access Modes:
57-
ReadWriteOnce
58-
Rotation: 3 <3>
59-
Size: 1Gi <4>
60-
Tolerations:
61-
Effect: NoSchedule
62-
Key: node-role.kubernetes.io/master
63-
Operator: Exists
64-
Effect: NoExecute
65-
Key: node.kubernetes.io/not-ready
66-
Operator: Exists
67-
Toleration Seconds: 300
68-
Effect: NoExecute
69-
Key: node.kubernetes.io/unreachable
70-
Operator: Exists
71-
Toleration Seconds: 300
72-
Effect: NoSchedule
73-
Key: node.kubernetes.io/memory-pressure
74-
Operator: Exists
75-
Roles: <6>
76-
master
77-
worker
78-
Scan Tolerations:
79-
Operator: Exists
80-
Schedule: "0 1 * * *" <5>
81-
Show Not Applicable: false
82-
Strict Node Scan: true
83-
Events: <none>
17+
apiVersion: compliance.openshift.io/v1alpha1
18+
autoApplyRemediations: true <1>
19+
autoUpdateRemediations: true <2>
20+
kind: ScanSetting
21+
maxRetryOnTimeout: 3
22+
metadata:
23+
creationTimestamp: "2022-10-18T20:21:00Z"
24+
generation: 1
25+
name: default-auto-apply
26+
namespace: openshift-compliance
27+
resourceVersion: "38840"
28+
uid: 8cb0967d-05e0-4d7a-ac1c-08a7f7e89e84
29+
rawResultStorage:
30+
nodeSelector:
31+
node-role.kubernetes.io/master: ""
32+
pvAccessModes:
33+
- ReadWriteOnce
34+
rotation: 3 <3>
35+
size: 1Gi <4>
36+
tolerations:
37+
- effect: NoSchedule
38+
key: node-role.kubernetes.io/master
39+
operator: Exists
40+
- effect: NoExecute
41+
key: node.kubernetes.io/not-ready
42+
operator: Exists
43+
tolerationSeconds: 300
44+
- effect: NoExecute
45+
key: node.kubernetes.io/unreachable
46+
operator: Exists
47+
tolerationSeconds: 300
48+
- effect: NoSchedule
49+
key: node.kubernetes.io/memory-pressure
50+
operator: Exists
51+
roles: <6>
52+
- master
53+
- worker
54+
scanTolerations:
55+
- operator: Exists
56+
schedule: 0 1 * * * <5>
57+
showNotApplicable: false
58+
strictNodeScan: true
59+
timeout: 30m
8460
----
8561
<1> Set to `true` to enable auto remediations. Set to `false` to disable auto remediations.
8662
<2> Set to `true` to enable auto remediations for content updates. Set to `false` to disable auto remediations for content updates.

modules/running-compliance-scans.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ Namespace: openshift-compliance
105105
Labels: <none>
106106
Annotations: <none>
107107
API Version: compliance.openshift.io/v1alpha1
108-
Auto Apply Remediations: true
109-
Auto Update Remediations: true
108+
Auto Apply Remediations: true <1>
109+
Auto Update Remediations: true <1>
110110
Kind: ScanSetting
111111
Metadata:
112112
Creation Timestamp: 2022-10-18T20:21:00Z
@@ -115,8 +115,8 @@ Metadata:
115115
API Version: compliance.openshift.io/v1alpha1
116116
Fields Type: FieldsV1
117117
fieldsV1:
118-
f:autoApplyRemediations: <1>
119-
f:autoUpdateRemediations: <1>
118+
f:autoApplyRemediations:
119+
f:autoUpdateRemediations:
120120
f:rawResultStorage:
121121
.:
122122
f:nodeSelector:

0 commit comments

Comments
 (0)