-
Notifications
You must be signed in to change notification settings - Fork 0
/
policyGenerator.yaml
53 lines (53 loc) · 1.31 KB
/
policyGenerator.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
apiVersion: policy.open-cluster-management.io/v1
kind: PolicyGenerator
metadata:
name: policy-generator-name
placementBindingDefaults:
name: my-placement-binding
policyDefaults:
# categories: []
# complianceType: "musthave"
controls:
- PR.DS-1 Data-at-rest
namespace: my-policies
# Use an existing placement rule so that placement bindings can be consolidated
placement:
placementPath: input/placement.yaml
# Example of using labelSelector to generate a placement
# placement:
# labelSelector:
# cloud: red hat
remediationAction: inform
severity: medium
# standards: []
policies:
- name: policy-app-config-aliens
disabled: false
manifests:
- path: input/configmap-aliens.yaml
patches:
- apiVersion: v1
kind: ConfigMap
metadata:
labels:
chandler: bing
remediationAction: enforce
- name: policy-app-config-others
disabled: true
manifests:
- path: input-folder/
patches:
- apiVersion: v1
kind: ConfigMap
metadata:
name: game-config-toads
namespace: default
labels:
monica: geller
- name: policy-require-labels
disabled: true
manifests:
- path: input-kyverno/
- name: policy-require-ns-labels
manifests:
- path: input-gatekeeper/