apiVersion: policy.open-cluster-management.io/v1
kind: Policy
metadata:
  name: case9-test-policy
spec:
  remediationAction: inform
  disabled: false
  policy-templates:
    - objectDefinition:
        apiVersion: policy.open-cluster-management.io/v1
        kind: ConfigurationPolicy
        metadata:
          name: case9-test-configpolicy
        spec:
          remediationAction: inform
          namespaceSelector:
            exclude: ["kube-*"]
            include: ["default"]
          object-templates:
            - complianceType: musthave
              objectDefinition:
                kind: ConfigMap
                apiVersion: v1
                metadata:
                  name: case9-test-configmap
                  namespace: test
                data:
                  Clustername: managed1
                  Clusterid: '{{ fromClusterClaim id.openshift.io }}'
                  Vlanid: 123
                  indent-test: |
                    Do.
                    Or do not.
                    There is no try.
                  autoindent-test: |
                    Do.
                    Or do not.
                    There is no try.
