github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/OperatorPolicy/testdata/progressing_old_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: NonCompliant 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:20:48Z' 36 message: 'NonCompliant; the policy spec is valid, the policy does not specify an OperatorGroup but one already exists in the namespace - assuming that OperatorGroup is correct, the Subscription required by the policy was not found, there are no relevant InstallPlans in the namespace, the ClusterServiceVersion required by the policy was not found, no CRDs were found for the operator, there are no relevant deployments because the ClusterServiceVersion is missing, CatalogSource was found' 37 reason: NonCompliant 38 status: 'False' 39 type: Compliant 40 - lastTransitionTime: '2024-07-29T15:20:48Z' 41 message: the Subscription required by the policy was not found 42 reason: SubscriptionMissing 43 status: 'False' 44 type: SubscriptionCompliant 45 observedGeneration: 1 46 relatedObjects: 47 - compliant: Compliant 48 object: 49 apiVersion: operators.coreos.com/v1alpha1 50 kind: CatalogSource 51 metadata: 52 name: community-operators 53 namespace: openshift-marketplace 54 reason: Resource found as expected 55 - compliant: NonCompliant 56 object: 57 apiVersion: operators.coreos.com/v1alpha1 58 kind: Subscription 59 metadata: 60 name: argocd-operator 61 namespace: openshift-operators 62 reason: Resource not found but should exist 63 resolvedSubscriptionLabel: argocd-operator.openshift-operators