forked from stolostron/policy-collection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
policy-rhoda-operator.yaml
95 lines (94 loc) · 3.34 KB
/
policy-rhoda-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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# This policy installs the IDP operator in the namespace idp-mgmt-config
# PRE-REQS: This assumes pre-reqs listed in IDP management docs are already applied on the hub cluster
# mainly replacing default ingress with signed certs,
# see https://identitatem.github.io/idp-mgmt-docs/requirements.html#requirements-and-recommendations
apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
annotations:
policy.open-cluster-management.io/standards: NIST SP 800-53
policy.open-cluster-management.io/categories: CM Configuration Management
policy.open-cluster-management.io/controls: CM-2 Baseline Configuration
name: policy-rhoda-operator
spec:
disabled: false
policy-templates:
- objectDefinition:
apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
name: policy-rhoda-operator
spec:
object-templates:
- complianceType: musthave
objectDefinition:
apiVersion: v1
kind: Namespace
metadata:
name: openshift-dbaas-operator
- complianceType: musthave
objectDefinition:
apiVersion: operators.coreos.com/v1alpha1
kind: CatalogSource
metadata:
name: dbaas-operator
namespace: openshift-marketplace
spec:
sourceType: grpc
image: quay.io/osd-addons/dbaas-operator-index@sha256:feac28aae2c33fa77122c1a0663a258b851db83beb2c33a281d6b50eab8b96e4
displayName: DBaaS Operator
- complianceType: musthave
objectDefinition:
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: dbaas-operator
namespace: openshift-dbaas-operator
spec:
- complianceType: musthave
objectDefinition:
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
labels:
operators.coreos.com/dbaas-operator.openshift-dbaas-operator: ""
name: dbaas-operator
namespace: openshift-dbaas-operator
spec:
channel: alpha
installPlanApproval: Automatic
name: dbaas-operator
source: dbaas-operator
sourceNamespace: openshift-marketplace
startingCSV: dbaas-operator.v0.1.4
remediationAction: inform
severity: medium
remediationAction: enforce
---
apiVersion: policy.open-cluster-management.io/v1
kind: PlacementBinding
metadata:
name: binding-policy-rhoda-operator
placementRef:
apiGroup: apps.open-cluster-management.io
kind: PlacementRule
name: placement-policy-rhoda-operator
subjects:
- apiGroup: policy.open-cluster-management.io
kind: Policy
name: policy-rhoda-operator
---
apiVersion: apps.open-cluster-management.io/v1
kind: PlacementRule
metadata:
name: placement-policy-rhoda-operator
spec:
clusterConditions:
- status: 'True'
type: ManagedClusterConditionAvailable
clusterSelector:
matchExpressions:
- key: local-cluster
operator: In
values:
- 'true'