|
| 1 | +--- |
| 2 | +apiVersion: policy.open-cluster-management.io/v1 |
| 3 | +kind: Policy |
| 4 | +metadata: |
| 5 | + annotations: |
| 6 | + policy.open-cluster-management.io/categories: CM Configuration Management |
| 7 | + policy.open-cluster-management.io/controls: CM-2 Baseline Configuration |
| 8 | + policy.open-cluster-management.io/standards: NIST SP 800-53 |
| 9 | + name: one |
| 10 | + namespace: my-policies |
| 11 | +spec: |
| 12 | + disabled: false |
| 13 | + policy-templates: |
| 14 | + - extraDependencies: |
| 15 | + - apiVersion: policy.open-cluster-management.io/v1 |
| 16 | + compliance: Compliant |
| 17 | + kind: Policy |
| 18 | + name: manifestextra |
| 19 | + namespace: my-policies |
| 20 | + objectDefinition: |
| 21 | + apiVersion: policy.open-cluster-management.io/v1 |
| 22 | + kind: ConfigurationPolicy |
| 23 | + metadata: |
| 24 | + name: one |
| 25 | + spec: |
| 26 | + object-templates: |
| 27 | + - complianceType: musthave |
| 28 | + objectDefinition: |
| 29 | + apiVersion: v1 |
| 30 | + data: |
| 31 | + game.properties: enemies=potato |
| 32 | + kind: ConfigMap |
| 33 | + metadata: |
| 34 | + name: my-configmap |
| 35 | + remediationAction: inform |
| 36 | + severity: low |
| 37 | + - extraDependencies: |
| 38 | + - apiVersion: policy.open-cluster-management.io/v1 |
| 39 | + compliance: Compliant |
| 40 | + kind: Policy |
| 41 | + name: defaultextradep |
| 42 | + namespace: my-policies |
| 43 | + objectDefinition: |
| 44 | + apiVersion: policy.open-cluster-management.io/v1 |
| 45 | + kind: ConfigurationPolicy |
| 46 | + metadata: |
| 47 | + name: one2 |
| 48 | + spec: |
| 49 | + object-templates: |
| 50 | + - complianceType: musthave |
| 51 | + objectDefinition: |
| 52 | + apiVersion: v1 |
| 53 | + data: |
| 54 | + game.properties: enemies=potato |
| 55 | + kind: ConfigMap |
| 56 | + metadata: |
| 57 | + name: my-configmap |
| 58 | + remediationAction: inform |
| 59 | + severity: low |
| 60 | + remediationAction: inform |
| 61 | +--- |
| 62 | +apiVersion: policy.open-cluster-management.io/v1 |
| 63 | +kind: Policy |
| 64 | +metadata: |
| 65 | + annotations: |
| 66 | + policy.open-cluster-management.io/categories: CM Configuration Management |
| 67 | + policy.open-cluster-management.io/controls: CM-2 Baseline Configuration |
| 68 | + policy.open-cluster-management.io/standards: NIST SP 800-53 |
| 69 | + name: two |
| 70 | + namespace: my-policies |
| 71 | +spec: |
| 72 | + disabled: false |
| 73 | + policy-templates: |
| 74 | + - extraDependencies: |
| 75 | + - apiVersion: policy.open-cluster-management.io/v1 |
| 76 | + compliance: Compliant |
| 77 | + kind: Policy |
| 78 | + name: policyextra |
| 79 | + namespace: my-policies |
| 80 | + objectDefinition: |
| 81 | + apiVersion: policy.open-cluster-management.io/v1 |
| 82 | + kind: ConfigurationPolicy |
| 83 | + metadata: |
| 84 | + name: two |
| 85 | + spec: |
| 86 | + object-templates: |
| 87 | + - complianceType: musthave |
| 88 | + objectDefinition: |
| 89 | + apiVersion: v1 |
| 90 | + data: |
| 91 | + game.properties: enemies=potato |
| 92 | + kind: ConfigMap |
| 93 | + metadata: |
| 94 | + name: my-configmap |
| 95 | + remediationAction: inform |
| 96 | + severity: low |
| 97 | + remediationAction: inform |
| 98 | +--- |
| 99 | +apiVersion: apps.open-cluster-management.io/v1 |
| 100 | +kind: PlacementRule |
| 101 | +metadata: |
| 102 | + name: placement-one |
| 103 | + namespace: my-policies |
| 104 | +spec: |
| 105 | + clusterSelector: |
| 106 | + matchExpressions: [] |
| 107 | +--- |
| 108 | +apiVersion: apps.open-cluster-management.io/v1 |
| 109 | +kind: PlacementRule |
| 110 | +metadata: |
| 111 | + name: placement-two |
| 112 | + namespace: my-policies |
| 113 | +spec: |
| 114 | + clusterSelector: |
| 115 | + matchExpressions: [] |
| 116 | +--- |
| 117 | +apiVersion: policy.open-cluster-management.io/v1 |
| 118 | +kind: PlacementBinding |
| 119 | +metadata: |
| 120 | + name: binding-one |
| 121 | + namespace: my-policies |
| 122 | +placementRef: |
| 123 | + apiGroup: apps.open-cluster-management.io |
| 124 | + kind: PlacementRule |
| 125 | + name: placement-one |
| 126 | +subjects: |
| 127 | + - apiGroup: policy.open-cluster-management.io |
| 128 | + kind: Policy |
| 129 | + name: one |
| 130 | +--- |
| 131 | +apiVersion: policy.open-cluster-management.io/v1 |
| 132 | +kind: PlacementBinding |
| 133 | +metadata: |
| 134 | + name: binding-two |
| 135 | + namespace: my-policies |
| 136 | +placementRef: |
| 137 | + apiGroup: apps.open-cluster-management.io |
| 138 | + kind: PlacementRule |
| 139 | + name: placement-two |
| 140 | +subjects: |
| 141 | + - apiGroup: policy.open-cluster-management.io |
| 142 | + kind: Policy |
| 143 | + name: two |
0 commit comments