Skip to content

How to detect if a bundle exists #286

@jdockter

Description

@jdockter

Currently if I try to build an index with bundles that already exist in my --from-index I get the following error: Error adding package error loading bundle into db: UNIQUE constraint failed: operatorbundle.name, operatorbundle.version, operatorbundle.bundlepath

  1. Is that error expected or am I potentially do something wrong?
  2. If it is expected, how do I properly detect if a bundle exists so I know what bundles I can to an existing catalog index image?

I'm not seeing anything in the api.Registry where I can just send in the operator bundle path to see if it exists, ie

grpcurl -plaintext -d '{"bundlepath": "quay.io/jondockter/memcached-operator-bundle@sha256:4d87aea66488957a0211c70d8e79533977d11122e13f1638a63e092a25f4592f"}' localhost:50051 api.Registry.GetBundle

Any insight or guidance on this would be appreciated, thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triage/unresolvedIndicates an issue that can not or will not be resolved.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions