github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/OperatorPolicy/testdata/progressing_no_compliance.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:47:45Z'
    36        message: the Subscription matches what is required by the policy
    37        reason: SubscriptionMatches
    38        status: 'True'
    39        type: SubscriptionCompliant
    40    observedGeneration: 2
    41    relatedObjects:
    42      - compliant: Compliant
    43        object:
    44          apiVersion: operators.coreos.com/v1alpha1
    45          kind: CatalogSource
    46          metadata:
    47            name: community-operators
    48            namespace: openshift-marketplace
    49        reason: Resource found as expected
    50      - compliant: Compliant
    51        object:
    52          apiVersion: operators.coreos.com/v1alpha1
    53          kind: Subscription
    54          metadata:
    55            name: argocd-operator
    56            namespace: openshift-operators
    57        properties:
    58          createdByPolicy: true
    59          uid: f3e6d8a7-eb73-4b29-b804-bf4609d2f7fb
    60        reason: Resource found as expected
    61    resolvedSubscriptionLabel: argocd-operator.openshift-operators