-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy-compliance-operator.yaml
63 lines (56 loc) · 2.06 KB
/
policy-compliance-operator.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
name: policy-compliance-operator
namespace: openshift-acm-policies
annotations:
policy.open-cluster-management.io/categories: Compliance
policy.open-cluster-management.io/controls: Install
policy.open-cluster-management.io/standards: General
spec:
disabled: false
remediationAction: enforce
policy-templates:
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: policy-compliance-operator-install
spec:
remediationAction: enforce
severity: low
namespaceSelector:
include: ["openshift-compliance"]
object-templates:
- complianceType: musthave
objectDefinition:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
labels:
operators.coreos.com/compliance-operator.openshift-compliance: ''
name: compliance-operator
namespace: openshift-compliance
spec:
channel: stable
installPlanApproval: Automatic
name: compliance-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
- complianceType: musthave
objectDefinition:
apiVersion: compliance.openshift.io/v1alpha1
kind: ScanSettingBinding
metadata:
name: cis-compliance
profiles:
- name: ocp4-cis-node
kind: Profile
apiGroup: compliance.openshift.io/v1alpha1
- name: ocp4-cis
kind: Profile
apiGroup: compliance.openshift.io/v1alpha1
settingsRef:
name: default
kind: ScanSetting
apiGroup: compliance.openshift.io/v1alpha1