github.com/argoproj/argo-cd/v3@v3.2.1/resource_customizations/policy.open-cluster-management.io/OperatorPolicy/testdata/healthy_no_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    relatedObjects:
    54      - compliant: Compliant
    55        object:
    56          apiVersion: operators.coreos.com/v1alpha1
    57          kind: CatalogSource
    58          metadata:
    59            name: community-operators
    60            namespace: openshift-marketplace
    61        reason: Resource found as expected
    62      - compliant: Compliant
    63        object:
    64          apiVersion: operators.coreos.com/v1alpha1
    65          kind: Subscription
    66          metadata:
    67            name: argocd-operator
    68            namespace: openshift-operators
    69        properties:
    70          createdByPolicy: true
    71          uid: f3e6d8a7-eb73-4b29-b804-bf4609d2f7fb
    72        reason: Resource found as expected
    73    resolvedSubscriptionLabel: argocd-operator.openshift-operators