operator-framework / operator-registry

Operator Registry runs in a Kubernetes or OpenShift cluster to provide operator catalog data to Operator Lifecycle Manager.
Apache License 2.0
212 stars 247 forks source link

Feature request: opm diff should allow skipping dependencies at a package level #878

Open nschambu opened 2 years ago

nschambu commented 2 years ago

This is related to https://github.com/openshift/oc-mirror/issues/221.

Today, opm alpha diff allows for skipping dependencies at a global level using the --skip-deps flag. It would be nice to be able to also support it at a package level such that I could choose to not include dependencies for some packages while including dependencies for others.

/kind feature

dinhxuanvu commented 2 years ago

opm diff is a generic command that will focus on some limited set of use cases that are the most common. When it comes to dependency management, I feel opm diff is not in a position to deal with all corner cases. If the dependency knowledge is specific to you, then it is better to work directly with FBC API (aka modifying the FBC directly) to remove the dependent packages that you want to remove instead of relying on opm diff to pick and choose. FBC is designed to be modified at will.