Skip to content
This repository was archived by the owner on May 26, 2026. It is now read-only.
This repository was archived by the owner on May 26, 2026. It is now read-only.

Add errors for metadata.annotations.olm fields to verify #168

Description

@jsm84

Having the following fields set in the CSV metadata will cause an operator to fail to deploy using OLM:

metadata:
  annotations:
    olm.operatorGroup: cloudera-pxs9f
    olm.operatorNamespace: cloudera
    olm.targetNamespaces: cloudera

I'm not sure why this occurs, but the actual error given by OLM (found under the installPlan) is:

status:
  conditions:
    - lastTransitionTime: '2019-10-01T18:19:47Z'
      lastUpdateTime: '2019-10-01T18:19:47Z'
      message: >-
        error generating ownerrefs for service account: cfm-operator:
        clusterserviceversions.operators.coreos.com "cfm-operator.v1.1.31" not
        found

It appears that by having these fields set, the CSV fails to get created by OLM. This is the second time I've come across this (the other instance was back in April for CrunchyData). The failure in OLM is easily reproducible by deploying an operator for which the metadata (CSV) has those fields set.

The operator-courier verify command should ideally catch this.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions