|  | 
|  | 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: configpolicy-my-configmap | 
|  | 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 | +    - objectDefinition: | 
|  | 38 | +        apiVersion: policy.open-cluster-management.io/v1 | 
|  | 39 | +        kind: ConfigurationPolicy | 
|  | 40 | +        metadata: | 
|  | 41 | +          name: one2 | 
|  | 42 | +        spec: | 
|  | 43 | +          object-templates: | 
|  | 44 | +            - complianceType: musthave | 
|  | 45 | +              objectDefinition: | 
|  | 46 | +                apiVersion: v1 | 
|  | 47 | +                data: | 
|  | 48 | +                  game.properties: enemies=potato | 
|  | 49 | +                kind: ConfigMap | 
|  | 50 | +                metadata: | 
|  | 51 | +                  name: my-configmap | 
|  | 52 | +          remediationAction: inform | 
|  | 53 | +          severity: low | 
|  | 54 | +  remediationAction: inform | 
|  | 55 | +--- | 
|  | 56 | +apiVersion: policy.open-cluster-management.io/v1 | 
|  | 57 | +kind: Policy | 
|  | 58 | +metadata: | 
|  | 59 | +  annotations: | 
|  | 60 | +    policy.open-cluster-management.io/categories: CM Configuration Management | 
|  | 61 | +    policy.open-cluster-management.io/controls: CM-2 Baseline Configuration | 
|  | 62 | +    policy.open-cluster-management.io/standards: NIST SP 800-53 | 
|  | 63 | +  name: two | 
|  | 64 | +  namespace: my-policies | 
|  | 65 | +spec: | 
|  | 66 | +  disabled: false | 
|  | 67 | +  policy-templates: | 
|  | 68 | +    - objectDefinition: | 
|  | 69 | +        apiVersion: policy.open-cluster-management.io/v1 | 
|  | 70 | +        kind: ConfigurationPolicy | 
|  | 71 | +        metadata: | 
|  | 72 | +          name: two | 
|  | 73 | +        spec: | 
|  | 74 | +          object-templates: | 
|  | 75 | +            - complianceType: musthave | 
|  | 76 | +              objectDefinition: | 
|  | 77 | +                apiVersion: v1 | 
|  | 78 | +                data: | 
|  | 79 | +                  game.properties: enemies=potato | 
|  | 80 | +                kind: ConfigMap | 
|  | 81 | +                metadata: | 
|  | 82 | +                  name: my-configmap | 
|  | 83 | +          remediationAction: inform | 
|  | 84 | +          severity: low | 
|  | 85 | +  remediationAction: inform | 
|  | 86 | +--- | 
|  | 87 | +apiVersion: apps.open-cluster-management.io/v1 | 
|  | 88 | +kind: PlacementRule | 
|  | 89 | +metadata: | 
|  | 90 | +  name: placement-one | 
|  | 91 | +  namespace: my-policies | 
|  | 92 | +spec: | 
|  | 93 | +  clusterSelector: | 
|  | 94 | +    matchExpressions: [] | 
|  | 95 | +--- | 
|  | 96 | +apiVersion: apps.open-cluster-management.io/v1 | 
|  | 97 | +kind: PlacementRule | 
|  | 98 | +metadata: | 
|  | 99 | +  name: placement-two | 
|  | 100 | +  namespace: my-policies | 
|  | 101 | +spec: | 
|  | 102 | +  clusterSelector: | 
|  | 103 | +    matchExpressions: [] | 
|  | 104 | +--- | 
|  | 105 | +apiVersion: policy.open-cluster-management.io/v1 | 
|  | 106 | +kind: PlacementBinding | 
|  | 107 | +metadata: | 
|  | 108 | +  name: binding-one | 
|  | 109 | +  namespace: my-policies | 
|  | 110 | +placementRef: | 
|  | 111 | +  apiGroup: apps.open-cluster-management.io | 
|  | 112 | +  kind: PlacementRule | 
|  | 113 | +  name: placement-one | 
|  | 114 | +subjects: | 
|  | 115 | +  - apiGroup: policy.open-cluster-management.io | 
|  | 116 | +    kind: Policy | 
|  | 117 | +    name: one | 
|  | 118 | +--- | 
|  | 119 | +apiVersion: policy.open-cluster-management.io/v1 | 
|  | 120 | +kind: PlacementBinding | 
|  | 121 | +metadata: | 
|  | 122 | +  name: binding-two | 
|  | 123 | +  namespace: my-policies | 
|  | 124 | +placementRef: | 
|  | 125 | +  apiGroup: apps.open-cluster-management.io | 
|  | 126 | +  kind: PlacementRule | 
|  | 127 | +  name: placement-two | 
|  | 128 | +subjects: | 
|  | 129 | +  - apiGroup: policy.open-cluster-management.io | 
|  | 130 | +    kind: Policy | 
|  | 131 | +    name: two | 
0 commit comments