open-cluster-management.io/governance-policy-propagator@v0.13.0/test/resources/case10_policyset_propagation/case10-test-multiple-policies-policysets-single-pb.yaml (about)

     1  apiVersion: policy.open-cluster-management.io/v1
     2  kind: Policy
     3  metadata:
     4    name: case10-test-policy1
     5  spec:
     6    remediationAction: inform
     7    disabled: false
     8    policy-templates:
     9      - objectDefinition:
    10          apiVersion: policies.open-cluster-management.io/v1alpha1
    11          kind: FakePolicy
    12          metadata:
    13            name: case10-test-policy1-fakepolicy
    14          spec:
    15            severity: low
    16            namespaceSelector:
    17              include: ["default"]
    18              exclude: ["kube-system"]
    19            remediationAction: inform
    20            imageRegistry: quay.io
    21  ---
    22  apiVersion: policy.open-cluster-management.io/v1
    23  kind: Policy
    24  metadata:
    25    name: case10-test-policy2
    26  spec:
    27    remediationAction: inform
    28    disabled: false
    29    policy-templates:
    30      - objectDefinition:
    31          apiVersion: policies.open-cluster-management.io/v1alpha1
    32          kind: FakePolicy
    33          metadata:
    34            name: case10-test-policy2-fakepolicy
    35          spec:
    36            severity: low
    37            namespaceSelector:
    38              include: ["default"]
    39              exclude: ["kube-system"]
    40            remediationAction: inform
    41            imageRegistry: quay.io
    42  ---
    43  apiVersion: policy.open-cluster-management.io/v1beta1
    44  kind: PolicySet
    45  metadata:
    46    name: case10-test-policyset1
    47  spec:
    48    policies:
    49    - case10-test-policy1
    50  ---
    51  apiVersion: policy.open-cluster-management.io/v1beta1
    52  kind: PolicySet
    53  metadata:
    54    name: case10-test-policyset2
    55  spec:
    56    policies:
    57    - case10-test-policy2
    58  ---
    59  apiVersion: policy.open-cluster-management.io/v1
    60  kind: PlacementBinding
    61  metadata:
    62    name: case10-test-policyset-pb
    63  placementRef:
    64    apiGroup: apps.open-cluster-management.io
    65    kind: PlacementRule
    66    name: case10-test-policyset-plr
    67  subjects:
    68  - apiGroup: policy.open-cluster-management.io
    69    kind: Policy
    70    name: case10-test-policy1
    71  - apiGroup: policy.open-cluster-management.io
    72    kind: PolicySet
    73    name: case10-test-policyset1
    74  - apiGroup: policy.open-cluster-management.io
    75    kind: PolicySet
    76    name: case10-test-policyset2
    77  - apiGroup: policy.open-cluster-management.io
    78    kind: Policy
    79    name: case10-test-policy1
    80  ---
    81  apiVersion: apps.open-cluster-management.io/v1
    82  kind: PlacementRule
    83  metadata:
    84    name: case10-test-policyset-plr
    85  spec:
    86    clusterConditions:
    87    - status: "True"
    88      type: ManagedClusterConditionAvailable
    89    clusterSelector:
    90      matchExpressions:
    91        []