Skip to content

opm: diff is not pruning empty channels when an include config is provided #883

@jpower432

Description

@jpower432

opm alpha diff -i config.yaml is producing empty channels when an include config is provided and no old refs are specified.

Config:

packages:
  - name: rhacs-operator
    channels:
    - name: latest
    versions:
    - '3.67.0'

Results:

{
    "schema": "olm.channel",
    "name": "rhacs-3.66",
    "package": "rhacs-operator",
    "entries": []
}
opm validate of the catalog show this:

$ opm validate catalogs/
FATA[0000] invalid index:
└── invalid package "rhacs-operator":
    ├── invalid channel "rhacs-3.62":
    │   └── channel must contain at least one bundle
    ├── invalid channel "rhacs-3.64":
    │   └── channel must contain at least one bundle
    ├── invalid channel "rhacs-3.65":
    │   └── channel must contain at least one bundle
    └── invalid channel "rhacs-3.66":
        └── channel must contain at least one bundle

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