github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/OperatorPolicy/testdata/degraded.yaml (about)

     1  apiVersion: policy.open-cluster-management.io/v1beta1
     2  kind: OperatorPolicy
     3  metadata:
     4    name: install-argocd
     5    generation: 1
     6    namespace: local-cluster
     7  spec:
     8    complianceConfig:
     9      catalogSourceUnhealthy: Compliant
    10      deploymentsUnavailable: NonCompliant
    11      upgradesAvailable: Compliant
    12    complianceType: musthave
    13    remediationAction: inform
    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: None
    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: >-
    37          NonCompliant; 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 required by the policy was
    40          not found, there are no relevant InstallPlans in the namespace, the
    41          ClusterServiceVersion required by the policy was not found, no CRDs were
    42          found for the operator, there are no relevant deployments because the 
    43          ClusterServiceVersion is missing, CatalogSource was found
    44        reason: NonCompliant
    45        status: 'False'
    46        type: Compliant
    47      - lastTransitionTime: '2024-07-29T15:20:48Z'
    48        message: the Subscription required by the policy was not found
    49        reason: SubscriptionMissing
    50        status: 'False'
    51        type: SubscriptionCompliant
    52    relatedObjects:
    53      - compliant: Compliant
    54        object:
    55          apiVersion: operators.coreos.com/v1alpha1
    56          kind: CatalogSource
    57          metadata:
    58            name: community-operators
    59            namespace: openshift-marketplace
    60        reason: Resource found as expected
    61      - compliant: NonCompliant
    62        object:
    63          apiVersion: operators.coreos.com/v1alpha1
    64          kind: Subscription
    65          metadata:
    66            name: argocd-operator
    67            namespace: openshift-operators
    68        reason: Resource not found but should exist
    69    resolvedSubscriptionLabel: argocd-operator.openshift-operators