github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/ConfigurationPolicy/testdata/healthy_found.yaml (about) 1 apiVersion: policy.open-cluster-management.io/v1 2 kind: ConfigurationPolicy 3 metadata: 4 name: policy-namespace 5 generation: 3 6 namespace: local-cluster 7 spec: 8 object-templates: 9 - complianceType: musthave 10 objectDefinition: 11 apiVersion: v1 12 kind: Namespace 13 metadata: 14 name: argo-example 15 recreateOption: None 16 - complianceType: musthave 17 objectDefinition: 18 apiVersion: v1 19 kind: Namespace 20 metadata: 21 name: argo-example-2 22 recreateOption: None 23 pruneObjectBehavior: None 24 remediationAction: enforce 25 severity: low 26 status: 27 compliancyDetails: 28 - Compliant: Compliant 29 Validity: {} 30 conditions: 31 - lastTransitionTime: '2024-07-29T16:58:59Z' 32 message: 'namespaces [argo-example] found as specified' 33 reason: K8s `must have` object already exists 34 status: 'True' 35 type: notification 36 - Compliant: Compliant 37 Validity: {} 38 conditions: 39 - lastTransitionTime: '2024-07-29T16:58:59Z' 40 message: 'namespaces [argo-example-2] found as specified' 41 reason: K8s `must have` object already exists 42 status: 'True' 43 type: notification 44 compliant: Compliant 45 lastEvaluated: '2024-07-29T16:59:26Z' 46 lastEvaluatedGeneration: 3 47 relatedObjects: 48 - compliant: Compliant 49 object: 50 apiVersion: v1 51 kind: Namespace 52 metadata: 53 name: argo-example 54 properties: 55 createdByPolicy: true 56 uid: 782f50ee-4fa9-41d6-900e-66d9eaf8b111 57 reason: Resource found as expected 58 - compliant: Compliant 59 object: 60 apiVersion: v1 61 kind: Namespace 62 metadata: 63 name: argo-example-2 64 properties: 65 createdByPolicy: true 66 uid: ce34051f-a0dc-4db2-9f8f-64cc9223d4d7 67 reason: Resource found as expected