github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/Policy/testdata/healthy_replicated.yaml (about) 1 apiVersion: policy.open-cluster-management.io/v1 2 kind: Policy 3 metadata: 4 name: open-cluster-management-global-set.argo-example 5 generation: 4 6 namespace: local-cluster 7 labels: 8 policy.open-cluster-management.io/cluster-name: local-cluster 9 policy.open-cluster-management.io/cluster-namespace: local-cluster 10 policy.open-cluster-management.io/root-policy: open-cluster-management-global-set.argo-example 11 spec: 12 disabled: false 13 policy-templates: 14 - objectDefinition: 15 apiVersion: policy.open-cluster-management.io/v1 16 kind: ConfigurationPolicy 17 metadata: 18 name: example-namespace 19 spec: 20 object-templates: 21 - complianceType: musthave 22 objectDefinition: 23 apiVersion: v1 24 kind: Namespace 25 metadata: 26 name: example 27 remediationAction: inform 28 severity: low 29 - objectDefinition: 30 apiVersion: policy.open-cluster-management.io/v1 31 kind: ConfigurationPolicy 32 metadata: 33 name: example-pod 34 spec: 35 namespaceSelector: 36 exclude: 37 - kube-* 38 include: 39 - default 40 object-templates: 41 - complianceType: musthave 42 objectDefinition: 43 apiVersion: v1 44 kind: Pod 45 metadata: 46 name: foobar 47 spec: 48 containers: 49 - image: 'registry.redhat.io/rhel9/httpd-24:latest' 50 name: httpd 51 securityContext: 52 allowPrivilegeEscalation: false 53 capabilities: 54 drop: 55 - ALL 56 privileged: false 57 runAsNonRoot: true 58 remediationAction: inform 59 severity: low 60 remediationAction: inform 61 status: 62 compliant: Compliant 63 details: 64 - compliant: Compliant 65 history: 66 - eventName: open-cluster-management-global-set.argo-example.17e703831ab809b3 67 lastTimestamp: '2024-07-30T14:20:44Z' 68 message: 'Compliant; notification - namespaces [example] found as specified' 69 - eventName: open-cluster-management-global-set.argo-example.17e703810146765a 70 lastTimestamp: '2024-07-30T14:20:35Z' 71 message: 'Compliant; notification - namespaces [example] was created successfully' 72 - eventName: open-cluster-management-global-set.argo-example.17e701cc5101e3a4 73 lastTimestamp: '2024-07-30T13:49:19Z' 74 message: 'NonCompliant; violation - namespaces [example] not found' 75 templateMeta: 76 creationTimestamp: null 77 name: example-namespace 78 - compliant: Compliant 79 history: 80 - eventName: open-cluster-management-global-set.argo-example.17e7034ea145078e 81 lastTimestamp: '2024-07-30T14:16:58Z' 82 message: 'Compliant; notification - pods [foobar] found as specified in namespace default' 83 - eventName: open-cluster-management-global-set.argo-example.17e7034c879045a3 84 lastTimestamp: '2024-07-30T14:16:49Z' 85 message: 'Compliant; notification - pods [foobar] was created successfully in namespace default' 86 - eventName: open-cluster-management-global-set.argo-example.17e7020b47782ddc 87 lastTimestamp: '2024-07-30T13:53:49Z' 88 message: 'NonCompliant; violation - pods [foobar] not found in namespace default' 89 templateMeta: 90 creationTimestamp: null 91 name: example-pod