apiVersion: policy.open-cluster-management.io/v1
kind: ConfigurationPolicy
metadata:
  name: policy-namespace
  generation: 3
  namespace: local-cluster
spec:
  object-templates:
    - complianceType: musthave
      objectDefinition:
        apiVersion: v1
        kind: Namespace
        metadata:
          name: argo-example
      recreateOption: None
    - complianceType: musthave
      objectDefinition:
        apiVersion: v1
        kind: Namespace
        metadata:
          name: argo-example-2
      recreateOption: None
  pruneObjectBehavior: None
  remediationAction: enforce
  severity: low
status:
  compliancyDetails:
    - Compliant: Compliant
      Validity: {}
      conditions:
        - lastTransitionTime: '2024-07-29T16:58:50Z'
          message: 'namespaces [argo-example] was created successfully'
          reason: K8s creation success
          status: 'True'
          type: notification
    - Compliant: Compliant
      Validity: {}
      conditions:
        - lastTransitionTime: '2024-07-29T16:58:50Z'
          message: 'namespaces [argo-example-2] was created successfully'
          reason: K8s creation success
          status: 'True'
          type: notification
  compliant: Compliant
  lastEvaluated: '2024-07-29T16:58:50Z'
  lastEvaluatedGeneration: 3
  relatedObjects:
    - compliant: Compliant
      object:
        apiVersion: v1
        kind: Namespace
        metadata:
          name: argo-example
      properties:
        createdByPolicy: true
        uid: 782f50ee-4fa9-41d6-900e-66d9eaf8b111
      reason: K8s creation success
    - compliant: Compliant
      object:
        apiVersion: v1
        kind: Namespace
        metadata:
          name: argo-example-2
      properties:
        createdByPolicy: true
        uid: ce34051f-a0dc-4db2-9f8f-64cc9223d4d7
      reason: K8s creation success
