github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/OperatorPolicy/testdata/healthy_with_generation.yaml (about) 1 apiVersion: policy.open-cluster-management.io/v1beta1 2 kind: OperatorPolicy 3 metadata: 4 name: install-argocd 5 generation: 2 6 namespace: local-cluster 7 spec: 8 complianceConfig: 9 catalogSourceUnhealthy: Compliant 10 deploymentsUnavailable: NonCompliant 11 upgradesAvailable: Compliant 12 complianceType: musthave 13 remediationAction: enforce 14 removalBehavior: 15 clusterServiceVersions: Delete 16 customResourceDefinitions: Keep 17 operatorGroups: DeleteIfUnused 18 subscriptions: Delete 19 severity: high 20 subscription: 21 channel: alpha 22 name: argocd-operator 23 source: community-operators 24 sourceNamespace: openshift-marketplace 25 upgradeApproval: Automatic 26 versions: [] 27 status: 28 compliant: Compliant 29 conditions: 30 - lastTransitionTime: '2024-07-29T15:20:48Z' 31 message: CatalogSource was found 32 reason: CatalogSourcesFound 33 status: 'False' 34 type: CatalogSourcesUnhealthy 35 - lastTransitionTime: '2024-07-29T15:48:20Z' 36 message: >- 37 Compliant; the policy spec is valid, the policy does not specify an 38 OperatorGroup but one already exists in the namespace - assuming that 39 OperatorGroup is correct, the Subscription matches what is required by 40 the policy, no InstallPlans requiring approval were found, 41 ClusterServiceVersion (argocd-operator.v0.11.0) - install strategy 42 completed with no errors, there are CRDs present for the operator, all 43 operator Deployments have their minimum availability, CatalogSource was 44 found 45 reason: Compliant 46 status: 'True' 47 type: Compliant 48 - lastTransitionTime: '2024-07-29T15:47:45Z' 49 message: the Subscription matches what is required by the policy 50 reason: SubscriptionMatches 51 status: 'True' 52 type: SubscriptionCompliant 53 observedGeneration: 2 54 relatedObjects: 55 - compliant: Compliant 56 object: 57 apiVersion: operators.coreos.com/v1alpha1 58 kind: CatalogSource 59 metadata: 60 name: community-operators 61 namespace: openshift-marketplace 62 reason: Resource found as expected 63 - compliant: Compliant 64 object: 65 apiVersion: operators.coreos.com/v1alpha1 66 kind: Subscription 67 metadata: 68 name: argocd-operator 69 namespace: openshift-operators 70 properties: 71 createdByPolicy: true 72 uid: f3e6d8a7-eb73-4b29-b804-bf4609d2f7fb 73 reason: Resource found as expected 74 resolvedSubscriptionLabel: argocd-operator.openshift-operators